It seems ok;
I have a problem. In mywidget.cpp constructor I have:
connect(this, SIGNAL(myUpdate()), w, SLOT(myUpdateWidgets()) );
connect(this, SIGNAL(myUpdate()), w, SLOT(myUpdateWidgets()) );
To copy to clipboard, switch view to plain text mode
in main.cpp:
myMainForm w; a.setMainWidget(&w);....
myMainForm w; a.setMainWidget(&w);....
To copy to clipboard, switch view to plain text mode
When I launch app appear this message:
QObject::connect: No such
slot MainForm
::myUpdateWidgets() QObject::connect: (sender name
: 'myWidget1') QObject::connect: (receiver name
: 'MainForm')
QObject::connect: No such slot MainForm::myUpdateWidgets()
QObject::connect: (sender name: 'myWidget1')
QObject::connect: (receiver name: 'MainForm')
To copy to clipboard, switch view to plain text mode
myUpdateWidgets() is a SLOT of myMainForm! And not MainForm (base class)
Why doesn't it work? Thanks
Bookmarks