the problem is that there is no change in the output .In the code shown below:
#include <QApplication>
//! [1] //! [2]
#include <QPushButton>
//! [2]
//! [3]
int main(int argc, char *argv[])
{
//! [3] //! [4]
//! [4]
//! [5]
//! [5]
//! [6]
hello.show();
//! [6] //! [7]
return app.exec();
}
#include <QApplication>
//! [1] //! [2]
#include <QPushButton>
//! [2]
//! [3]
int main(int argc, char *argv[])
{
//! [3] //! [4]
QApplication app(argc, argv);
//! [4]
//! [5]
QPushButton hello("Hello qt");
//! [5]
//! [6]
hello.show();
//! [6] //! [7]
return app.exec();
}
To copy to clipboard, switch view to plain text mode
I made following change:
//! [5]
//! [5]
//! [5]
QPushButton hello("Hello world");
//! [5]
To copy to clipboard, switch view to plain text mode
but in the output it is showing Hello qt as before even after saving & compiling
Bookmarks