Hi, I created a dialog.ui.h from desinger (with some widgets); now I need, eg when I check a spinBox in this dialog, take some things in myMainForm; I'd like to obtain a pointer
like this: "myMainForm* w" in dialog.ui.h, but how? Thanks
Hi, I created a dialog.ui.h from desinger (with some widgets); now I need, eg when I check a spinBox in this dialog, take some things in myMainForm; I'd like to obtain a pointer
like this: "myMainForm* w" in dialog.ui.h, but how? Thanks
Regards
Normally you don't need a pointer, just use myMainForm::yourWidget which is defined in window.ui.h... But maybe I did not understand your question correctly
you can access it by "this" pointer.
"this" is available in ui.h file.
this is pointer on current used class . You always can write just someMethod() instead this->someMethod()Originally Posted by sumsin
2 mickey:
Use subclassing method for using designer generated code instead use *ui.h ...and all problem will be clearly
a life without programming is like an empty bottle
Bookmarks