Hello.
I don't find any example about creating multiple windows in QT4.
as,
Form1, Form2, Form3.
click Button in form1 then open form2
Can You give me some advice or example how to create multiple windows ?
Thanks
Hello.
I don't find any example about creating multiple windows in QT4.
as,
Form1, Form2, Form3.
click Button in form1 then open form2
Can You give me some advice or example how to create multiple windows ?
Thanks
Sure there is:
http://doc.qt.nokia.com/4.6/tutorials-addressbook.html
Yes it is!
Here it is, another one:
You can replace the QWidget and QDialog with classes you inherit from them (with or without ui)Qt Code:
#include <QApplication> #include <QWidget> #include <QDialog> #include <QPushButton> #include <QLabel> int main(int argc, char** argv) { l->setText("Hi, I'm a instance of QDialog class"); w->show(); int r = a.exec(); delete w; return r; }To copy to clipboard, switch view to plain text mode
It's possible I don't understand what you ask. I regularly have that problem.
But in the addressbook tutorial, they create a find dialog:
http://doc.qt.nokia.com/4.6/tutorial...ook-part5.html
Hmmm, this doesn't have anything to do with multiple windows.
Please, next time try to ask a better question.
What you want is a listwidget on the left and a stacked widget on the right.
When you click on a listwidgetitem in the list, you can bring a certain widget in the stacked widgets to the front.
http://doc.qt.nokia.com/4.6/dialogs-configdialog.html
Bookmarks