PDA

View Full Version : QInputDialog::getText - showing twice



TorAn
3rd December 2009, 17:36
I am sure I overlooked something, but can't figure out what. When following code is invoked:


void dlgTest::findValue()
{
QString item = QInputDialog::getText (NULL, tr("Find item"), tr("item"));
}


input dialog shows normally. When I click on either Ok or Cancel it shows up again and closes only after the second click.

What could be the problem? I am using 4.6 on Windows.

wysota
3rd December 2009, 23:27
Maybe you have a doubled signal/slot connection somewhere?

TorAn
4th December 2009, 01:57
Brilliant! That was it. Shame on me...