Skip to content

Commit

Permalink
Build with Qt 6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Nov 17, 2024
1 parent ade89f4 commit e209afa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.7.0'
version: '6.8.0'
target: 'desktop'
cache: true
modules: 'qt3d qtcharts qtconnectivity qtdatavis3d qtgraphs qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtlottie qtmultimedia qtnetworkauth qtpdf qtpositioning qtquick3dphysics qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtvirtualkeyboard qtwebchannel qtwebengine qtwebsockets qtwebview qt5compat qtquick3d qtquicktimeline qtshadertools'
Expand Down
14 changes: 8 additions & 6 deletions playground/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ int main(int argc, char* argv[]) {
const QUrl url(u"qrc:/qt/qml/playground/Main.qml"_qs);
QObject::connect(
&engine, &QQmlApplicationEngine::objectCreationFailed, &app, [](QUrl url) {
QCoreApplication::exit(-1);
},
Qt::QueuedConnection);
QTextStream(stderr) << "Object creation failed";
QTextStream(stderr) << url.toString();
QCoreApplication::exit(1);
}, Qt::QueuedConnection);
QObject::connect(
&engine, &QQmlApplicationEngine::warnings, &app, [](const QList<QQmlError>& warnings) {

},
Qt::QueuedConnection);
for (auto warning : warnings) {
QTextStream(stderr) << "QML: " << warning.toString();
}
}, Qt::QueuedConnection);
engine.load(url);

return app.exec();
Expand Down

0 comments on commit e209afa

Please sign in to comment.