What is equivalent of view.viewport()->setAttribute(Qt::WA_NoSystemBackground) in QQmlApplicationEngine??
-
hi.
I have frameless QML application, when im resizing it, it flickers.
find this link in google
https://blog.rburchell.com/2011/11/avoiding-graphics-flicker-in-qt-qml.htmlthe problem is thas in my code i have
QGuiApplication app(argc, argv); QQmlApplicationEngine engine;
but in example there is
QApplication application(argc, argv); QDeclarativeView view;
how Can i use
view.setAttribute(Qt::WA_OpaquePaintEvent);
view.setAttribute(Qt::WA_NoSystemBackground);
view.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
view.viewport()->setAttribute(Qt::WA_NoSystemBackground);these with QQmlApplicationEngine???
is ther any equivalent for setAttribute in QQmlApplicationEngine? -
I code in python, but I'm very sure you don't need to set any of those attributes. Completely do away with them and have something like:
QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl("qrc:/qml/main.qml"));
I expect it to work, ok.
-
He needs it, read docs about these two attributes