HW acceleration of QWidget
-
As far as I understand this article http://doc.qt.io/qt-5/embedded-linux.html, the QWidget is software rendered if EGL is used.
However I would like to have my Qt GUI applications HW accelerated if the device provides HW accelerated graphics. Is it possible to configure Qt to HW accelerate QWidget class? I know I can use QOpenGLWidget class, but this means to at least conditionally compile the Qt application depending on the target platform capabilities.
-
Hi,
@Radim said:
However I would like to have my Qt GUI applications HW accelerated if the device provides HW accelerated graphics. Is it possible to configure Qt to HW accelerate QWidget class? I know I can use QOpenGLWidget class, but this means to at least conditionally compile the Qt application depending on the target platform capabilities.
QWidget is an old technology that is software-rendered in general. (Note: It's old but mature, stable, and still widely used) It was not designed with hardware acceleration in mind.
To take advantage of hardware acceleration, use Qt Quick: