KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In particular, I am implementing a QWizardPage ("MyWizardPage") for a QWizard, and I want to emit a signal ("sigLog") from my override of the QWizardPage::nextId virtual method. Like so: class MyWizardPage : public QWizardPage { Q_OBJECT public: MyWizardPage(); virtual int nextId() const; Q_SIGNALS: void sigLog(QString text); }; int MyWizardPage::nextId() const { Q_EMIT sigLog("Something interesting happened"); } But when I try this, I get the following compile error on the Q_EMIT line: Error 1 error C2662: 'MyWizardPage::sigLog' : cannot convert 'this' pointer from 'const MyWizardPage' to 'MyWizardPage &'
Tags (comma-separated)
Save Edits
Cancel