From: rnv Date: Thu, 23 May 2013 13:12:01 +0000 (+0000) Subject: Fix a problem with slow rendering of the qt widgets on remote host. X-Git-Tag: B4KillOfAutomake~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ec3f146b23de6bbf2bf08e7797141d3c2163a29;p=modules%2Fgui.git Fix a problem with slow rendering of the qt widgets on remote host. --- diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index ef6412c69..9fbb1542d 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -403,6 +403,13 @@ int main( int argc, char **argv ) { // Install Qt debug messages handler qInstallMsgHandler( MessageOutput ); + + //Set a "native" graphic system in case if application runs on the remote host + QString remote(getenv("REMOTEHOST")); + QString client(getenv("SSH_CLIENT")); + if(remote.length() > 0 || client.length() > 0 ) { + QApplication::setGraphicsSystem(QLatin1String("native")); + } // add $QTDIR/plugins to the pluins search path for image plugins QString qtdir( ::getenv( "QTDIR" ) );