dreamer
10th May 2008, 21:53
I use the static method
QInputDialog::getText ( QWidget * parent, const QString & title, const QString & label,
QLineEdit::EchoMode mode = QLineEdit::Normal,
const QString & text = QString(), bool * ok = 0, Qt::WindowFlags f = 0 )
I use it, into a slot. This slot is called, when an action emits the triggered() signal. This Action is activated in a contextmenu.
The strange behaviour, is that the slot is called two times for each mouse press........i have other slots in the same contextmenu that work well.
QInputDialog::getText ( QWidget * parent, const QString & title, const QString & label,
QLineEdit::EchoMode mode = QLineEdit::Normal,
const QString & text = QString(), bool * ok = 0, Qt::WindowFlags f = 0 )
I use it, into a slot. This slot is called, when an action emits the triggered() signal. This Action is activated in a contextmenu.
The strange behaviour, is that the slot is called two times for each mouse press........i have other slots in the same contextmenu that work well.