PDA

View Full Version : Accessing QMainWindow methods



vieraci
20th April 2009, 23:51
Hi,
Is there a built-in macro in Qt that can gain access to the public methods of QMainWindow from it's child windows, or is it something that the programmer implements ?

Like, it means for every child window it needs the QMainWindow header file included. This can get very repetitive when there is lots of child windows.

vieraci
21st April 2009, 03:19
Found my solution, use Signals and Slots. :o

aamer4yu
21st April 2009, 08:38
Alternatively, you could pass main windows pointer to child windows.. if it suits your design implementation.