Qt best way to invoke methods of QMainWindow from other widget
I have main window from type QMainWindow, then I set some widget and give this widget the QMainWindow as parent in its constructor , the QMainWindow passed as Object. now I need from this widget invoke method from the QMainWindow. what will be the best way to do it ?
this is how the widget looks like:
- {
- // here I like to invoke some QMainWindow method?
- //can I cast somehow the parent ? or use some pointer ?
- }
2 replies
You must log in to post a reply. Not a member yet? Register here!



