diff --git a/examples/qmake/precompile/main.cpp b/examples/qmake/precompile/main.cpp index ece87dccb3..58050df603 100644 --- a/examples/qmake/precompile/main.cpp +++ b/examples/qmake/precompile/main.cpp @@ -15,7 +15,8 @@ int main(int argc, char **argv) MyObject obj; MyDialog dialog; - dialog.connect(dialog.aButton, SIGNAL(clicked()), SLOT(close())); + QObject::connect(dialog.aButton, &QPushButton::clicked, + &dialog, &MyDialog::close); dialog.show(); return app.exec();