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. Fonts do not match on app when running as root

Fonts do not match on app when running as root

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 674 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.
  • K Offline
    K Offline
    Kyle H
    wrote on last edited by
    #1

    Hello,

    I have noticed an unusual issue with my app (Qt 4.8) running on Fedora 20. Everything works as intended when running my app as a normal user, but the font on my application changes when running the application as root.

    The GUI didn't match as well, but I was able to correct that issue after making appropriate changes using "sudo qtconfig". However, the font still didn't match after making changes on the "Fonts" tab.

    The closest thing I found online was on stackoverflow, but the guy asking the question only wanted the GUI to match : http://stackoverflow.com/questions/30981436/qt-application-changes-font-when-run-as-root

    I have tried using QFontInfo to see if the information did not match, but unfortunately, everything matched 100%.

    Can someone give me a few pointers on how this issue can be fixed?

    Thank you.
    -Kyle

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's a question I'd recommend bringing to the Fedora folks. It's likely a setting from the root account. While it might not be pretty, at least it gives you a hint that you are not running your application with your user rights which IMHO is not something bad. Take for example the difference between Konsole and Konsole in root mode, it clearly make a distinction to help you avoid doing something like rm -rf /*.

      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
      1

      • Login

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