Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Invalid property name "color". (M16) For custom property of PieChart in the example project "extending-qml".
QtWS25 Last Chance

Invalid property name "color". (M16) For custom property of PieChart in the example project "extending-qml".

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 2.5k 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.
  • J Offline
    J Offline
    Jiabin
    wrote on last edited by Jiabin
    #1

    I'm a Qt beginner and is learning the example "extending-qml". Seems the custom type 'color' in class PieChart is not recognized by the designer and I can not switch to the Form Editor.
    Anyone knowns how the solve this problem? Thanks.
    0_1529919823013_InvalidPropertyName_M16.png

    DiracsbracketD 1 Reply Last reply
    0
    • J Jiabin

      I'm a Qt beginner and is learning the example "extending-qml". Seems the custom type 'color' in class PieChart is not recognized by the designer and I can not switch to the Form Editor.
      Anyone knowns how the solve this problem? Thanks.
      0_1529919823013_InvalidPropertyName_M16.png

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #2

      @Jiabin
      Hi...
      Have a look at this:
      https://forum.qt.io/topic/56207/how-to-load-custom-qml-controls-into-the-qml-designer
      and:
      http://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html

      1 Reply Last reply
      2
      • J Offline
        J Offline
        Jiabin
        wrote on last edited by
        #3

        It seems that I installed two versions of Qt, 5.10 and 5.11. I removed 5.11 and the problem be solved.
        @Diracsbracket Thanks for your reply.

        DiracsbracketD 1 Reply Last reply
        0
        • J Jiabin

          It seems that I installed two versions of Qt, 5.10 and 5.11. I removed 5.11 and the problem be solved.
          @Diracsbracket Thanks for your reply.

          DiracsbracketD Offline
          DiracsbracketD Offline
          Diracsbracket
          wrote on last edited by
          #4

          @Jiabin said in Invalid property name "color". (M16) For custom property of PieChart in the example project "extending-qml".:

          I installed two versions of Qt, 5.10 and 5.11. I removed 5.11 and the problem be solved

          Glad it is sorted out. What is strange though is that having multiple Qt versions installed really shouldn't be a problem. Switching between multiple installed kits works pretty well usually.

          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