hasnatzaidi
29th September 2009, 21:28
hello, how i call sub window "window2.ui" in main window
thanks in advance
yogeshgokul
30th September 2009, 05:31
Assume that the dialog name is testDialog.ui.
Just include that UI file in your project and code like this:
#include <QApplication>
#include <QDialog>
#include "ui_testDialog.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Ui::testDialog ui;
QDialog *dialog = new QDialog;
ui.setupUi(dialog);
dialog->show();
return app.exec();
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.