Why does my Qt application appear different when using NoMachine

Forum / NoMachine for Linux / Why does my Qt application appear different when using NoMachine

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34608
    dk
    Participant

    I built a UI in QtCreator and I am trying to run it remotely. If I SSH into the machine with the application using -Y, the UI appears like it did in the designer window. If I use NoMachine with the NX protocol, the UI renders differently – all of the line edit widgets are cut short, fonts are different, etc. In my application, I am using set style according to the documentation found here: https://doc.qt.io/qt-5/qapplication.html#setStyle

    Is there a graphics setting in NoMachine that needs to be adjusted? Or is there another cause, possibly related to the source code itself?

     

    #34651
    Tor
    Participant

    Hi. Qt is using the X server properties and system environment to determine how to paint widgets, so we could compare the two different working environments to understand how to fix your issue.
    Are you connecting to a virtual or to a physical desktop? What is the server operating system version?
    You can run the commands xdpyinfo and env in your local or SSH terminal (where the application has the correct style) and in the remote NoMachine desktop, then attach the outputs here or to an email to forum[at]nomachine[dot]com. I’ll gladly check them to answer your doubts.

Viewing 2 posts - 1 through 2 (of 2 total)

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.