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"?
Forum Updated to NodeBB v4.3 + New Features

"unknown property text color"?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 4.5k Views 2 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.
  • Q Offline
    Q Offline
    qtpi
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Do you use a stylesheet?

      Q 1 Reply Last reply
      0
      • Yves MaurischatY Offline
        Yves MaurischatY Offline
        Yves Maurischat
        wrote on 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
        • mrjjM mrjj

          Hi
          Do you use a stylesheet?

          Q Offline
          Q Offline
          qtpi
          wrote on 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
          • Yves MaurischatY Yves Maurischat

            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 last edited by
            #5

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

            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