Qt
Fernkopie
Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) (Info) http://qt-project.org/downloads http://qt.mirror.constant.com/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe wget --restrict-file-names=windows -c "-O qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe" "http://qt.mirror.constant.com/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe"
Installation
Welcome
- [ Next > ]
- Installation Folder
- C:\Qt\Qt5.1.1
- [ ✓ ] Associate Common File Types with Qt Creator
- [ Next > ]
- Select Components
- [ ✓ ] Qt 5.1.1
- [ ✓ ] Tools
- [ Next > ]
- License Agreement
- ( ● ) I have read and agree …
- [ Next > ]
- Start Menu Shortcuts
- [ Next > ]
- Ready to Install
- [ Install ]
- Do you want to allow … (Windows Admin)
- [ Yes ]
- Installation finished!
- [ Next > ]
- Completing the Qt 5.1.1 Wizard
- [ ✓ ] Launch Qt Creator
- [ ✓ ] Open Qt 5.1.1 ReadMe
- [ Finish ]
Qt Creator
Create Project
Qt Gui Application
- [ Next > ]
- [ Next > ]
- [ Next > ]
- [ Finish ]
- [ F5 ]
Dev-C++
Alle include-Verzeichnisse angeben
lib-Verzeichnis angeben
libs einbinden (Dateinamen enden mit ».a«) (etwa wie: -lqtmain -lQtGui4 -lQtCore4 )
Beispiel
#include <QApplication> #include <QFont> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton quit("Quit!"); quit.resize(600, 30); quit.setFont(QFont("Arial", 18, QFont::Bold)); QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit())); quit.show(); return app.exec(); }