OS: WINXP
Compiler: MINGW 4.1.1
QT: QT 4.1.1
Hello everybody,
Its really time to make a important step in my live...jump from qt3 to 4
I have read some docs and tried tutorials..
I have a question about using designer in the right steps:
1. I have created a widget, connection in the designer and save it "test1.ui"
2. I have created by hand a "test1.pro":
TEMPLATE = app
FORMS = test1.ui
SOURCES = main.cpp
TEMPLATE = app
FORMS = test1.ui
SOURCES = main.cpp
To copy to clipboard, switch view to plain text mode
3. I have created a main.cpp:
#include "ui_test1.h"
#include <QApplication>
int main(int argc, char *argv[])
{
Ui::Dialog ui;
ui.setupUi(window);
window->show();
return app.exec();
}
#include "ui_test1.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDialog *window = new QDialog;
Ui::Dialog ui;
ui.setupUi(window);
window->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
4. compile and get exe file
My Question: how to get a cpp file to implement my functions?And are my steps correct?Have i to create by hand the cpp? Its right that if i include "ui_test.h" in main.cpp the file will created?Have i to create the main.cpp by hand?
I want to use the designer to design my app
Bookmarks