qt
Qt is a cross-platform application and UI framework for developers
Sample C++ Qt program in Slackware Linux
1 /*
2 Include path in Slackware 14:
3 /usr/lib/qt/include/Qt
4
5 Compile on Slackware 14:
6 g++ -lQtCore -lQtGui -I/usr/lib/qt/include/Qt helloWorldQt.cpp -o helloWorldQt
7
8 Run with ./helloWorldQt
9 */
10
11 #include <qapplication.h>
12 #include <qmainwindow.h>
13 #include <qpushbutton.h>
14
15 int main(int argc,char** argv){
16 QApplication app(argc,argv);
17 QMainWindow mw;
18 mw.setMinimumSize(200,100);
19 mw.setMaximumSize(200,100);
20
21 QPushButton pb("Push it, Hello world",&mw);
22 pb.setGeometry(20,20,160,60);
23 mw.setCentralWidget(&pb);
24 mw.show();
25 return app.exec();
26 }