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. [SOLVED] Font color in Stylesheet?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Font color in Stylesheet?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 26.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.
  • M Offline
    M Offline
    maximus
    wrote on 20 Oct 2013, 13:11 last edited by
    #1

    Hi,

    I want to change my application looks so that the background is black.
    With that in mind, I would like all my labels, text, etc, to be white by default

    Is there an easy way to do that with stylesheet? I have not found anything related to color with "font" attribute.
    Thank you!

    Here my current interface :
    https://www.dropbox.com/s/on1vehtgshu2nil/font1.png


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • X Offline
      X Offline
      XGuy
      wrote on 20 Oct 2013, 13:48 last edited by
      #2

      ui->LineEdit1->setStyleSheet("color: white;");

      1 Reply Last reply
      1
      • M Offline
        M Offline
        maximus
        wrote on 20 Oct 2013, 19:19 last edited by
        #3

        Thank you

        QLabel {
        color: white;
        }


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply
        0

        1/3

        20 Oct 2013, 13:11

        • Login

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