I have placed a button on a dialog and I cant figure out how to make it link to another dialog under the same project. I have figured out how to make the window close with the button but not to open up the next one.
Thanks for any help.
This post has been edited 1 times, last edit by "gn6" (Jul 26th 2007, 9:37pm)
You need to create the object of the dialog to be opened and call the appropriate methods to display.
Sample Code:
// CDialog1 is the class/dialog name of dialg.
CDialog1 *m_ptrCDialog1;
m_ptrCDialog1 = new CDialog1();
m_ptrCDialog1->setWindowFlags(Qt::Window);
m_ptrCDialog1->showMaximized();
m_ptrCDialog1->exec();
So what do you mean by: CDialog1 is the class/dialog name of dialog. I am afraid i dont understand. The name of the button I am pressing is "next" and the class is QPushButton. I think it is supposed to be a function but Im not sure and it is named "nextbutton_clicked()". I am trying to make open the "nodegrouplister" widget. I appreciate any clarification.
I guess what I really want to know is the idea or logic of how you use the slots and such in order to open a new window. I will end up writing it in PerlQT so I do not really need to see the c++ stuff unless you think it will help me understand the process better. Thanks again for any help!
This post has been edited 1 times, last edit by "gn6" (Jul 31st 2007, 9:06pm)
nvm, I have found an easier way to acomplish this. Thanks for your help though!
Could you show us how you did it? Ive been dealing with this same problem for about two months now, and i just cant seem to figure out how to solve it.
Is it really that hard to open an new window from your mainwindow?