Skip to content

Instantly share code, notes, and snippets.

@wavewave
Created March 19, 2013 17:06
Show Gist options
  • Select an option

  • Save wavewave/5197973 to your computer and use it in GitHub Desktop.

Select an option

Save wavewave/5197973 to your computer and use it in GitHub Desktop.
qt5 simplest example
g++ -fPIC `pkg-config --cflags --libs Qt5Widgets Qt5Core Qt5Gui` -o hello hello.cpp
#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