We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cfbf04 + a16dcff commit 3a980f5Copy full SHA for 3a980f5
examples/full_features/mainwindow.cpp
@@ -125,8 +125,13 @@ void MainWindowPrivate::setSomeIcons()
125
126
void MainWindowPrivate::setupQuickWidget()
127
{
128
+#if (QT_VERSION > QT_VERSION_CHECK(6,0,0))
129
+ ui.quickWidget->engine()->addUrlInterceptor(
130
+ new acss::CQmlStyleUrlInterceptor(AdvancedStyleSheet));
131
+#else
132
ui.quickWidget->engine()->setUrlInterceptor(
133
new acss::CQmlStyleUrlInterceptor(AdvancedStyleSheet));
134
+#endif
135
ui.quickWidget->setStyleSheet(AdvancedStyleSheet->styleSheet());
136
ui.quickWidget->setSource(QUrl("qrc:/full_features/qml/simple_demo.qml"));
137
ui.quickWidget->setAttribute(Qt::WA_AlwaysStackOnTop);
0 commit comments