The question about configure Qt Creator
-
Hello,
I used Qt Creator to create a Qt Widget project.here is my code:
main.cpp
@#include <QtGui>int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget widget;
QLineEdit *lineEdit = new QLineEdit;
QLabel *label = new QLabel;
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget( lineEdit );
layout->addWidget( label );
widget.setLayout( layout );
widget.show();return a.exec();
}@
When I compiled the project,nothing happened.I don't why.
Thank you for your attention. -
My Qt Creator is 2.4.1.My step is as default.Now I create an empty project and compile the code,it works well.