@HenrikSt.
in your Kobi class, add a setter method:
class Kobi : public ...
{
public:
...
void setButtonWidget( QPushButton* button )
{
m_PushButton = button;
}
void Kobi::FullScreen ()
{
tableWidget->hide ();
// OR EMIT A SIGNAL HERE AND CONNECT IT TO THE PUSHBUTTON'S hide() SLOT
if( m_PushButton )
m_PushButton->hide();
}
private:
QPointer<QPushButton*> m_PushButton;
}
Easiest would be when you could already create the button in this class?