Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Qt for beginners tutorial problem

$
0
0
Hi, I’m currently trying out the tutorial, but I can’t seem to compile this piece of code and I have no idea why. The error I’m getting is: “expected ‘,’ before ‘button2’”, can someone help me out?     #include <QApplication>     #include <QPushButton>           int main(int argc, char **argv)     {         QApplication app (argc, argv);               QPushButton button1 ("test");         new QPushButton button2 ("other", &button1);               button1.show();               return app.exec();     } I’m running the latest Ubuntu with Qt5 Tutorial: http://qt-project.org/wiki/Qt_for_beginners_pretty_button [qt-project.org]

Viewing all articles
Browse latest Browse all 13965

Trending Articles