X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSession%2FSALOME_Session_Server.cxx;h=c8465bfd0b5d1e01b283b6442b5466a9e85c2c91;hb=630432f662544c0b3928874eb6825ba3bffa668b;hp=4389fb8ebb24a9b8261f28fd37c03cde644a1bf7;hpb=6ced19dc7cbc117e8eaa8735167edf0ec931a1fb;p=modules%2Fgui.git diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 4389fb8eb..c8465bfd0 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -77,6 +77,9 @@ #include #include #include +#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) +#include +#endif /*! - read arguments, define list of server to launch with their arguments. * - wait for naming service @@ -366,6 +369,15 @@ int main( int argc, char **argv ) QLocale::setDefault( QLocale::system() ); } } + +#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) + // initialization of the X11 visual on Linux + QSurfaceFormat format; + format.setDepthBufferSize(16); + format.setStencilBufferSize(1); + format.setProfile(QSurfaceFormat::CompatibilityProfile); + QSurfaceFormat::setDefaultFormat(format); +#endif // Create Qt application instance; // this should be done the very first!