Coding, Linux, Hacking Security, Learning!
Qt for beginning
Beginner for Qt programming, simple example for pushbutton/QPushButton
Sep 3rd
//here is the very simple example for qt programming
//how to run the code,
//first copy the code and save as hello.cpp or whatever name that you prefer
//in the same directory,
//===============================
//how to compile hello.cpp
//type: qmake -projrect
//type: qmake
//then type: make
//================================
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello(“Hello World”);
hello.click();
hello.show();
return app.exec();
}