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. "unknown property text color"?
QtWS25 Last Chance

"unknown property text color"?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 4.4k 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.
  • Q Offline
    Q Offline
    qtpi
    wrote on 1 Feb 2016, 12:12 last edited by
    #1

    hey folks. When I run my program the console keeps popping out "unknown property text-color".

    what does it mean? In my program the only place which could have something to do with it is the label text color and I set it as white.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 1 Feb 2016, 12:21 last edited by
      #2

      Hi
      Do you use a stylesheet?

      Q 1 Reply Last reply 1 Feb 2016, 14:36
      0
      • Y Offline
        Y Offline
        Yves Maurischat
        wrote on 1 Feb 2016, 12:22 last edited by
        #3

        You need to be more specific. Is ist a QML application? Do you use the Label QML type? if yes: the Label doesn't have a property named "text-color", us the "color" property.

        Q 1 Reply Last reply 1 Feb 2016, 14:43
        1
        • M mrjj
          1 Feb 2016, 12:21

          Hi
          Do you use a stylesheet?

          Q Offline
          Q Offline
          qtpi
          wrote on 1 Feb 2016, 14:36 last edited by
          #4

          @mrjj hi, yes I'm using stylesheet, Yves is right, I replaced text-color with "color" in stylesheet, it seems that was the problem.

          1 Reply Last reply
          0
          • Y Yves Maurischat
            1 Feb 2016, 12:22

            You need to be more specific. Is ist a QML application? Do you use the Label QML type? if yes: the Label doesn't have a property named "text-color", us the "color" property.

            Q Offline
            Q Offline
            qtpi
            wrote on 1 Feb 2016, 14:43 last edited by
            #5

            @Yves-Maurischat I'm writing in c++. Thanks for the help, that was the problem.

            1 Reply Last reply
            0

            1/5

            1 Feb 2016, 12:12

            • Login

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