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. How to set text color of all text in central widget?
Forum Updated to NodeBB v4.3 + New Features

How to set text color of all text in central widget?

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

    Hey,
    I want to set the textcolor of all actions, buttons, Groupboxes etc. etc. in my main window to white.
    I tried it with the palette of the central widget (and main widnow and also single buttons) in the designer but that does not change anything. The text is still black.
    How can I change that?
    Thanks for answers

    1 Reply Last reply
    0
    • NiagarerN Offline
      NiagarerN Offline
      Niagarer
      wrote on last edited by
      #2

      Oh, found it!
      I just had to add

      color: #ffffff
      

      to the stylesheet of main window

      1 Reply Last reply
      1
      • ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        color: "#ffffff" *

        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