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. Is using Style for customising look and feel reliable across the platforms?

Is using Style for customising look and feel reliable across the platforms?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 187 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.
  • prinzkmP Offline
    prinzkmP Offline
    prinzkm
    wrote on last edited by
    #1

    Since QProxyStyle uses QPalette and its functionalities and I saw the following warning from their official documentation.

    Warning: Some styles do not use the palette for all drawing, for instance, if they make use of native theme engines. This is the case for both the Windows Vista and the macOS styles.

    What is this warning?Is using stylesheets a better alternative.I wanted to use QStyle, since it is faster.Please give me a design suggestion.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      The warning is correct. You can force Fusion style that works on all platform and customise from there: QApplication::setStyle(QStyleFactory::create("Fusion"));

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @prinzkm said in Is using Style for customising look and feel reliable across the platforms?:

        Warning: Some styles do not use the palette for all drawing, for instance, if they make use of native theme engines.

        The warning means several things:

        • On some platforms, some themes use operating system supplied items (e.g. file open or colour picker dialog). These elements are drawn entirely by the operating system and do not know anything of Qt palette or style sheets.
        • Some styles implemented in Qt, where all drawing is done by Qt, may not use all the components available to ensure that they present a single, unified style. Properly/completely implemented Qt-only styles accommodates changed palettes or style sheets; but not all are properly/completely implemented.
        1 Reply Last reply
        2

        • Login

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