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