From: rnv Date: Thu, 23 May 2013 13:26:19 +0000 (+0000) Subject: Fix problem with slow rendering of the qt widgets on the remote host. X-Git-Tag: B4KillOfAutomake~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b5803afe8fd8383a7b3ba716f9148a0ce3bc565;p=modules%2Fgui.git Fix problem with slow rendering of the qt widgets on the remote host. --- diff --git a/src/SUITApp/SUITApp.cxx b/src/SUITApp/SUITApp.cxx index 7b471bfc0..725a53ec1 100644 --- a/src/SUITApp/SUITApp.cxx +++ b/src/SUITApp/SUITApp.cxx @@ -191,6 +191,13 @@ int main( int argc, char* argv[] ) QString qtdir( ::getenv( "QTDIR" ) ); if ( !qtdir.isEmpty() ) QApplication::addLibraryPath( QDir( qtdir ).absoluteFilePath( "plugins" ) ); + + //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")); + } SUITApp_Application app( argc, argv ); QString cfgAppName = getAppName( argList.isEmpty() ? QString() : argList.first() );