[Qt-interest] How to detect the graphicssystem at runtime
Giuseppe D'Angelo
dangelog at gmail.com
Tue May 31 17:35:21 CEST 2011
On Tue, May 31, 2011 at 5:05 PM, Uwe Rathmann <Uwe.Rathmann at tigertal.de> wrote:
>
> Does someone has an idea how to find out if an application runs with
> "native" or "raster" on X11 ?
Ugly hack:
#include <QtGui>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QPixmap pixmap(1, 1);
qDebug() << pixmap.paintEngine()->type();
return 0;
}
$ ./foo -graphicssystem raster
10
$ ./foo -graphicssystem native
0
--
Giuseppe D'Angelo
More information about the Qt-interest-old
mailing list