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. Stylization

Stylization

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 718 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.
  • T Offline
    T Offline
    Tikani
    wrote on last edited by
    #1

    Does QtWidget's stylesheet set globally with QApplication::setStyleSheet() affect only controls declared in ui files? Or controls that are created dynamically with new and satisfies selectors will be styilized too?

    kshegunovK 1 Reply Last reply
    0
    • T Tikani

      Does QtWidget's stylesheet set globally with QApplication::setStyleSheet() affect only controls declared in ui files? Or controls that are created dynamically with new and satisfies selectors will be styilized too?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      They should affect any widget as far as I know. There's no real difference between what's generated by the ui files and what you write manually, it boils down to the same C++ code.

      Read and abide by the Qt Code of Conduct

      T 1 Reply Last reply
      3
      • kshegunovK kshegunov

        They should affect any widget as far as I know. There's no real difference between what's generated by the ui files and what you write manually, it boils down to the same C++ code.

        T Offline
        T Offline
        Tikani
        wrote on last edited by
        #3

        @kshegunov
        I was an idiot :D It turned out that I totally forgot to clean and rebuild project from time to time and files specified in the resource file were not recompiled and embedded to the executable. But thanks anyway for clarifying.

        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