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. Weird stylesheet behavior for ui form designer
Qt 6.11 is out! See what's new in the release blog

Weird stylesheet behavior for ui form designer

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

    Hello everyone,
    while I was trying to edit a QLabel, i really don't know why it happened so but everything (qlabels, qpushbuttons, qspinbox and even my custom qpushbuttons) had the same style sheet. I know that while setting stylesheet programmatically, using QLabel {} etc. affects stylesheets target, but this is in form designer. Stylesheet of all of the affected elements have their stylesheet field empty. I deleted the tested label but nothing changed. Beside, I tried to search about the issue over the internet but keywords are so generic, i couldn't reach any information that is useful. Any help will be appreciated.

    Even setting these ui elements' stylesheet smtg. else programmatically does not fix this.

    Thanks in advance,

    qtsty.jpg

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      How about the styleSheet of "VideoMonitoringForm"?
      The styleSheet you set on a widget will also apply to all his children.

      B 1 Reply Last reply
      3
      • B Bonnie

        How about the styleSheet of "VideoMonitoringForm"?
        The styleSheet you set on a widget will also apply to all his children.

        B Offline
        B Offline
        brsr
        wrote on last edited by brsr
        #3

        @Bonnie Wouv that's it! You ve got the point. It seems that i clicked over an empty field next to my qlabel (which corresponds the form) and then set its stylesheet but i didn't notice that it is not my qlabel.

        With your correct answer, my question now seems to be a very foolish one :) but thanks a lot, you saved my day

        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