Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.0.0
-
None
Description
XCB platform plugin is currently the default Qt 5 platform on Linux. XCB plugin doesn't apparently support threaded rendering, which causes QSGCanvas to print following warnings every time a new canvas object is created:
QWARN : tst_myclass::testcase1() QSGCanvas: platform does not support threaded rendering! QWARN : tst_myclass::testcase1() QSGCanvas: using non-threaded render loop. Be very sure to not access scene graph objects outside the QSGItem::updatePaintNode() call. Failing to do so will cause your code to crash on other platforms! PASS : tst_myclass::testcase1() QWARN : tst_myclass::testcase2() QSGCanvas: platform does not support threaded rendering! QWARN : tst_myclass::testcase2() QSGCanvas: using non-threaded render loop. Be very sure to not access scene graph objects outside the QSGItem::updatePaintNode() call. Failing to do so will cause your code to crash on other platforms! ...
Printed out warning lines are long and make the command line trace outputs unreadable without applying some additional filtering. This is especially apparent and annoying when executing autotests, where often each test case creates it's own canvas. Either warnings should be turned off or XCB plugin fixed.