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. GUI problem (kinda)
Qt 6.11 is out! See what's new in the release blog

GUI problem (kinda)

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.7k 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.
  • D Offline
    D Offline
    dan415
    wrote on last edited by
    #1

    im new to developing gui applications and new to Qt. i wrote a simple program and it works fine, but when i build and run the application, it does not have that "Ubuntu theme" feel. i know that this is just a cosmetic difference. here is a picture of the application next to the gui design

    http://db.tt/4ni2OTTN

    ps: i had problems trying to upgrade from qt4 to qt5 and fixed it best i could. im sure my problem has something to do with the settings. happy to join the Qt community

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      So you are now on Qt5, right? There were some changes in QStyles for Qt5. I'm not up to speed in that department, but I think "this blog":http://blog.qt.digia.com/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/ might help you. In short, try forcing your app to use Cleanlooks or Fusion style (many ways to do that, for testing you can just pass -style cleanlooks to your app in command line).

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Serenity
        wrote on last edited by
        #3

        Does it also doesn't work, if you start the program "normal" and not in QtCreator?
        I am only asking, because it could be, that you start your program as root and then, it may happen, that the style guides are not in use.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dan415
          wrote on last edited by
          #4

          sierdzio: i tried changing the style in option menu of Qt and i used the command line and both dont change the look of the program

          Serenity: the program still looks weird when i run the program outside of Qt

          i dont know if this helps but i have two different qmake files in different folder locations. does qmake matter in terms of the program gui styles?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dan415
            wrote on last edited by
            #5

            problem solved. tweaked kits and build setting and it looks like it should

            1 Reply Last reply
            0

            • Login

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