Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt theme problem
Forum Updated to NodeBB v4.3 + New Features

Qt theme problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 659 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Pang
    wrote on 22 Jan 2018, 07:35 last edited by
    #1

    Hi,
    I am writing a GUI program with Qt. It look nice in my linux plasma5 desktop. But when I run as root user, or run on remote linux through x11 forwarding, it has an ugly style.
    Does any one know how to pack plasma5 theme (maybe call oxygen theme? ) into executeble, so I can have a uniform style?

    Thanks a lot!!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jan 2018, 22:41 last edited by
      #2

      Hi,

      It's normal that the application looks different when running as root, it allows the user to notice that it's not using a "normal" application. Note that it's usually a bad idea to run applications as root. You should ask for credentials when need but otherwise not allow things to be done by root unless it's for a very specific purpose.

      As for the remote, it depends on what is available on that machine since you run your application on it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      1/2

      22 Jan 2018, 07:35

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved