PDA

View Full Version : Qt and X11 forwarding issues



ycyclop
27th January 2016, 14:27
Hi,

I'm having problems with forwarding Qt applications (Qt 5.5.1) windows. This was not a problem with Qt 4.8
After connecting the remote machine (CentOS 6.6) with putty and Xming and testing the the X11 forwarding is working correctly with an openGL application (glxgears for example) I'm tryin gto run my Qt application
The application is running and I see one black screen with the title set correctly.

I think this issue appeared in my tests since Qt versions added the platforms (I did not check that too often but now this is something more critical for me). Any idea what is going on or how to solve this?

Thank you

anda_skoa
27th January 2016, 15:06
What kind of Qt application?
One that is using QtWidgets or one that is using QtQuick?

Cheers,
_

ycyclop
28th January 2016, 06:03
An application that uses QtWidgets

anda_skoa
28th January 2016, 09:21
Hmm, strange.
Widget based applications basically just render into a pixel buffer and display that, no special extensions required.

Can you try a very trivial application? something like



#include <QtWidgets>

int main(int argc, char ** argv)
{
QApplication app(argc, argv);
QPushButton button("Click to Quit");
QObject::connect(&button, SIGNAL(clicked()), &app, SLOT(quit()));
button.show();
return app.exec();
}


Cheers,
_