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
Qt Code:
  1. signals:
  2. void showFrame(QFrame);
To copy to clipboard, switch view to plain text mode 
and
Qt Code:
  1. emit showFrame(frameH);
To copy to clipboard, switch view to plain text mode 
and in the second class I have
Qt Code:
  1. connect(pb1Functions, SIGNAL(showFrame(QFrame)), this, SLOT(slotShowFrame(QFrame)));
To copy to clipboard, switch view to plain text mode 
and
Qt Code:
  1. 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