[Qt-interest] How to detect the graphicssystem at runtime
Girish Ramakrishnan
girish at forwardbias.in
Wed Jun 1 06:23:41 CEST 2011
Hi Uwe,
On Tue, May 31, 2011 at 11:12 PM, Uwe Rathmann <Uwe.Rathmann at tigertal.de> wrote:
> Giuseppe D'Angelo wrote:
>
>>> Does someone has an idea how to find out if an application runs with
>>> "native" or "raster" on X11 ?
>> QPixmap pixmap(1, 1);
>> qDebug() << pixmap.paintEngine()->type();
>
> I had tried to check the paint engine of the widget, what gives a different
> result than the pixmap with graphics system "raster".
>
> AFAIR in an earlier version of Qt it was not safe to call
> QPaintDevice::paintEngine() and I had to create a QPainter on this device
> first to get the paint engine, but this seems to be gone with Qt 4.7 ( or my
> memory is wrong ).
>
See http://bugreports.qt.nokia.com/browse/QTBUG-13735.
Girish
More information about the Qt-interest-old
mailing list