[Interest] QGraphicsView/QGraphicsScene viewport to QRHIWidget in some future Qt6.x?
Alex Tutubalin
alex.tutubalin at gmail.com
Sat Dec 9 10:39:58 CET 2023
Hi all,
This message is inspired by the 'QGraphicsView and OpenGL in Qt6' topic.
We also still use Qt5 for our 2D image viewer/adjustment/inspection apps
(several ones) because of QGraphicsView/Scene API:
- image rendering is performed by OpenGL or OpenGL-over-ANGLE (so
DirectX9/11 rendering is possible, this is a vital option for some buggy
Windows OpenGL implementations)
- QGraphicItem(s) are used to provide user interaction with displayed
image: crop area, selection, text labels, etc, etc, etc
So, there is a lot of QGraphicsView-related code in our apps...
The time to migrate to QRhi* is definitely here:
- OpenGL is deprecated on macOS (and we can’t say that it works well
there, Metal is much better)
- OpenGL over ANGLE is ugly, it is much better to use DX11/12 directly
(and use compute shaders if allowed by implementation)
So, my question is: are there any plans to provide
QGraphicsView::setViewPort(QRHiWidget*) in some coming Qt6 version? Maybe
Qt 6.8 or 6.9?
If so: we'll need to port/convert our OpenGL-related code to QRHI-based
QGraphicsScene::drawBackground (or so).
If not: a lot more code will require changes.
It would be great to know about plans to transfer QGraphsView to a new QRHI
rendering framework, this will allow us to plan more correctly for the next
year or two.
Thanks in advance,
Alex Tutubalin
alex.tutubalin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20231209/2e7748b1/attachment.htm>
More information about the Interest
mailing list