From 9ec3f146b23de6bbf2bf08e7797141d3c2163a29 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 23 May 2013 13:12:01 +0000 Subject: [PATCH] Fix a problem with slow rendering of the qt widgets on remote host. --- src/Session/SALOME_Session_Server.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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" ) ); -- 2.39.2