hello.
I'm read about the behaviour of signal/slot in qt.
My problem is that i have created a custom widget and the emission of the signal(emit pressed()) is in a custom delegate of my project.
How i can "take out" the signal for invoke the "pressedButton()" slot that is in the main window?
i must send the main window pointer(m_pMainWindow) and transport it to the delegate?
where i can do:
connect(this, SIGNAL(pressed()),
m_pMainWindow, SLOT(prssedButton())));
connect(this, SIGNAL(pressed()),
m_pMainWindow, SLOT(prssedButton())));
To copy to clipboard, switch view to plain text mode
is correct?
thanks.
Bookmarks