Originally Posted by
ugluk
Well, I can't switch the signatures, as the slot signature inside QLabel is fixed.
No, you don't understand. I mean that instead of:
connect(this,
SIGNAL(setGUILabel
(QString)), label,
SLOT(setText
(QString const
&)), Qt
::QueuedConnection);
connect(this, SIGNAL(setGUILabel(QString)), label, SLOT(setText(QString const&)), Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
you can write:
connect(this,
SIGNAL(setGUILabel
(const QString &)), label,
SLOT(setText
(QString)), Qt
::QueuedConnection);
connect(this, SIGNAL(setGUILabel(const QString &)), label, SLOT(setText(QString)), Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
or even:
connect(this,
SIGNAL(setGUILabel
(QString)), label,
SLOT(setText
(QString)), Qt
::QueuedConnection);
connect(this, SIGNAL(setGUILabel(QString)), label, SLOT(setText(QString)), Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
You don't need to modify the methods themselves.
Bookmarks