Hi,
I have defined a QFrame item in one class "frameH"
and I want to "show" this frame in another class
In the first class I have
signals:
signals:
void showFrame(QFrame);
To copy to clipboard, switch view to plain text mode
and
emit showFrame(frameH);
emit showFrame(frameH);
To copy to clipboard, switch view to plain text mode
and in the second class I have
connect(pb1Functions,
SIGNAL(showFrame
(QFrame)),
this,
SLOT(slotShowFrame
(QFrame)));
connect(pb1Functions, SIGNAL(showFrame(QFrame)), this, SLOT(slotShowFrame(QFrame)));
To copy to clipboard, switch view to plain text mode
and
void slotShowFrame
(QFrame H
) { H.
show();
}
void slotShowFrame(QFrame H) { H.show(); }
To copy to clipboard, switch view to plain text mode
and when compiling I get
bp1.cpp:51:error no matching function for call to 'PB1::showFrame(QFrame*&)'
bp1.h:51:note:canadates are: void PB1::showFrame(QFrame)
I am totally confused as what the code should actually look like in each class.
Thanks
Bookmarks