I am wondering if it is possible to capture an event that is generated when all Qt Objects are initialized and ready?
It seems that some things cannot be done in the window constructor. And they work great in the implementation of the slot.
For example, when I want to access the root window of my application, I do it like this
// in *.h MainWindow* rootWindow // in *.cpp rootWindow = qobject_cast<MainWindow *>(this->window());
If this is done in contructor, I cannot use the rootWindow object - this is a couses runtime error.
There is no corresponding slot for implementation. And creating an event in the QMainWindow class is not virtual.
Thanks for the help:)
c ++ events qt qt4
user660975
source share