Created
March 19, 2013 17:06
-
-
Save wavewave/5197973 to your computer and use it in GitHub Desktop.
qt5 simplest example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| g++ -fPIC `pkg-config --cflags --libs Qt5Widgets Qt5Core Qt5Gui` -o hello hello.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <QApplication> | |
| #include <QLabel> | |
| int main(int argc, char ** argv) | |
| { | |
| QApplication app(argc,argv); | |
| QLabel hello("Hello world"); | |
| hello.show(); | |
| return app.exec(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment