[Interest] Qt 5.8 Software Backend Bug on Windows? - Window fails to copmpletly update after closing it and opening it again
Nuno Santos
nunosantos at imaginando.pt
Tue Feb 21 13:21:39 CET 2017
Will do!
Thanks!
Nuno Santos
Founder / CEO / CTO
www.imaginando.pt <http://www.imaginando.pt/>
+351 91 621 69 62
> On 21 Feb 2017, at 11:45, Laszlo Agocs <laszlo.agocs at qt.io <mailto:laszlo.agocs at qt.io>> wrote:
>
> Certainly. And please include a minimal example to reproduce the problem.
>
> Cheers,
> Laszlo
>
> From: Interest <interest-bounces+laszlo.agocs=qt.io at qt-project.org <mailto:interest-bounces+laszlo.agocs=qt.io at qt-project.org>> on behalf of Nuno Santos <nunosantos at imaginando.pt <mailto:nunosantos at imaginando.pt>>
> Sent: Monday, February 20, 2017 1:16:02 PM
> To: interest at qt-project.org <mailto:interest at qt-project.org>
> Subject: [Interest] Qt 5.8 Software Backend Bug on Windows? - Window fails to copmpletly update after closing it and opening it again
>
> Hi,
>
> I was updating a desktop tool of mine to use Qt 5.8. In this tool I use
> software backend to render its contents.
>
> Since I need to have a system tray icon to open it again when it is
> closed, I instantiate it as a QQuickView. This is what I do:
>
> // on Qt 5.7
> qputenv("QMLSCENE_DEVICE","softwarecontext");
> QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
>
> // on Qt 5.8
> QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
>
> QQuickView view;
>
> view.setSource(QUrl("qrc:/qml/main.qml"));
> view.setResizeMode(QQuickView::SizeRootObjectToView);
>
> QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit()));
>
> view.show();
>
> QAction *quitAction = new QAction(app.tr <http://app.tr/>("&Quit"), &view);
> QAction *openAction = new QAction(app.tr <http://app.tr/>("&Open"), &view);
>
> app.connect(quitAction, SIGNAL(triggered()), &app, SLOT(quit()));
> app.connect(openAction, SIGNAL(triggered()), &view, SLOT(show()));
>
> With Qt 5.7 when I close and open the window, it appears correctly. With
> Qt 5.8, after closing and opening the window again, everything goes
> white. The controls are there and get updated if I interact with them
> but it seems lacking a fullscreen refresh.
>
> If I disable the SoftwareBackend everything works as expected. I suspect
> this is a bug from Qt 5.8 software backend implementation.
>
> Should I report a bug?
>
> Regards,
>
> Nuno
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest <http://lists.qt-project.org/mailman/listinfo/interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170221/78766325/attachment.html>
More information about the Interest
mailing list