Spirit thanks for your interest.
First I shall describe the reason for doing such a thing. I have created a custom widget and part of it hides all the windows related to the widget it is located. So I connect one of its clicked() signals to the underlying QMainWindow but the level of the QMainWindow is not known to the widget. So I traverse the parents.
On the constructor of the widget, I traverse the parents but since during the construction, the page is not added to the tab widget, and so the parent is absent.
So, what I have to do is I should trigger a slot of my custom widget to make the connections to the QMainWindow when setupUi is finished.
Is it possible to achieve this? Or can I change the order of the construction of the ui_XXX.h files.




Reply With Quote


Bookmarks