I use the static method
const QString & text
= QString(),
bool * ok
= 0, Qt
::WindowFlags f
= 0 )
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 )
To copy to clipboard, switch view to plain text mode
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.
Bookmarks