It is possible when you click a QCheckBox the text () is sent to a QTextEdit?
It is possible when you click a QCheckBox the text () is sent to a QTextEdit?
Yes, you can program anything you like in a slot connected to the clicked() or stateChanged() signal.
I was not plain in my question. Sorry my English.
It would be something like:
Qt Code:
To copy to clipboard, switch view to plain text mode
Clicking on QCheckBox it sends your text() to QTextEdit.
You can do this without derive the class QTextEdit to create a new SLOT?
No, it's impossible, because signatures of signal and slot are not match. (see http://doc.qt.nokia.com/stable/signalsandslots.html - fifth paragraph)
You have to define your own slot with signature (void) or (), then connect clicked() signal to this slot. Inside you slot you can create any action.The signature of a signal must match the signature of the receiving slot
Bookmarks