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. Best way to have a custom style UI
Forum Updated to NodeBB v4.3 + New Features

Best way to have a custom style UI

Scheduled Pinned Locked Moved General and Desktop
3 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.
  • K Offline
    K Offline
    kevina67
    wrote on last edited by
    #1

    Hello there,

    I'd like to create an app with a unique style. I know some tools like Maya or similar use Qt and I'd like to have such an UI. I'm not sure wether to use QStyle or Styling sheets.
    Is any of these options going to die / to be deprecated? Wich option will give me the best results?

    Thanks in advance,
    Kevina

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Much can be done with qss and they're definitely easier.
      QStyle is more powerful since you basically draw everything yourself, but that also means more work.
      Another way is to use existing style (like "fusion") and play around with palette.

      It depends on your needs. I would start with the easier solution and only move to heavier stuff if you can't achieve your desired look.

      As an example I have an app that uses a dark, kinda photoshop-ish theme. I use the palette approach and it's about 30 lines of .setColor() and a couple lines of qss for a little more detailed control.

      None of these will go away as long as Qt maintains widgets module (however long that may be), but none is also gaining any new features (though qss could very much use some).

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xander84
        wrote on last edited by
        #3

        I was always wondering how apps like EA Origin or Battle.net, which are both Qt apps, do their completely unique style. Looking at the DLL's I think both are Qt Quick apps in the latest version at least, but I think EA Origin also uses Qt widgets for their layout and webkit stuff, hard to say.

        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