[Kst] [Kst-plot/kst] 5be7ab: graphics system needs to be set before QApplicatio...
Nicolas Brisset
nicolas.brisset at free.fr
Sat Mar 15 12:25:32 UTC 2014
Nice try, but when I do this (OpenSUE 13.1 with NVIDIA binary drivers) I get empty menus (translucent boxes).
The rest seems to work (dialogs) but I haven't looked further neither checked performance as this would be a no-go.
Can you see the same effect?
I also checked the Qt doc and found this:
void QApplication::setGraphicsSystem ( const QString & system ) [static]
Sets the default graphics backend to system, which will be used for on-screen widgets and QPixmaps. The available systems are "native", "raster" and "opengl".
There are several ways to set the graphics backend, in order of decreasing precedence:
the application commandline -graphicssystem switch
QApplication::setGraphicsSystem()
the QT_GRAPHICSSYSTEM environment variable
the Qt configure -graphicssystem switch
If the highest precedence switch sets an invalid name, the error will be ignored and the default backend will be used.
Warning: This function is only effective before the QApplication constructor is called.
Note: The "opengl" option is currently experimental.
So I don't know how it works for marble, but I'm not sure this is the right way to do it. Maybe we rather need to check the QGraphicsView doc...
Nicolas
----- Mail original -----
> De: "Peter Kümmel" <syntheticpp at gmx.net>
> À: kst at kde.org
> Envoyé: Samedi 15 Mars 2014 12:00:13
> Objet: [Kst] [Kst-plot/kst] 5be7ab: graphics system needs to be set before QApplicatio...
>
> Branch: refs/heads/master
> Home: https://github.com/Kst-plot/kst
> Commit: 5be7abc3a3923dfce68f646a141c2100c426d537
> https://github.com/Kst-plot/kst/commit/5be7abc3a3923dfce68f646a141c2100c426d537
> Author: Peter Kümmel <syntheticpp at gmx.net>
> Date: 2014-03-15 (Sat, 15 Mar 2014)
>
> Changed paths:
> M cmake/src/kst/CMakeLists.txt
> M src/kst/main.cpp
> M src/libkstapp/generaltab.ui
>
> Log Message:
> -----------
> graphics system needs to be set before QApplication is constructed
>
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
More information about the Kst
mailing list