|
From: Daniel J S. <dan...@ie...> - 2012-01-07 22:06:59
|
On 01/07/2012 03:00 PM, Daniel J Sebald wrote:
> On 01/07/2012 02:52 PM, Daniel J Sebald wrote:
>
> + * QT_GRAPHICSSYSTEM but this requires qt >= 4.7
>
> I assume you are saying that although Qt added the setGraphicsSystem()
> routine in version 4.5, it wasn't until version 4.7 that an environment
> variable was added. But I think that is an easy fix if gnuplot Qt term
> were to program it:
I guess this doesn't make enough sense because it is only 4.5 where
setGraphicsSystem exists:
get version from aboutQt
if version >= Qt 4.5
if QT_GRAPHICSSYSTEM does not exist
pick highest rendering in order of
"openvg", "opengl", "raster", "native"
else
setGraphicsSystem(QT_GRAPHICSSYSTEM);
endif
endif
The version test could be dropped.
If one doesn't want to force the upgrade of Qt then:
#if QT_VERSION >= 0x040500
if QT_GRAPHICSSYSTEM does not exist
pick highest rendering in order of
"openvg", "opengl", "raster", "native"
else
setGraphicsSystem(QT_GRAPHICSSYSTEM);
endif
#endif
|