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. Cannot assign to non-existent property "states"

Cannot assign to non-existent property "states"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 609 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.
  • Z Offline
    Z Offline
    Zunneh
    wrote on last edited by
    #1

    1_1540139070114_Capture d’écran 2018-10-21 à 17.23.52.png 0_1540139070113_Capture d’écran 2018-10-21 à 17.24.06.png

    Hi guys , i copy this program from tutorial in internet and there is a problem "Cannot assign to non-existent property "states" i think the problem came from window , how i can solve this thanks :
    P.S: the error is in line 49

    my english is average, please use simple words and try to be the most explicit, thank you

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      states property comes from Item. Window is not inherited from Item. Put all the state information inside the rectangle. It should solve the problem.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      Z 1 Reply Last reply
      0
      • dheerendraD dheerendra

        states property comes from Item. Window is not inherited from Item. Put all the state information inside the rectangle. It should solve the problem.

        Z Offline
        Z Offline
        Zunneh
        wrote on last edited by
        #3

        @dheerendra it solve my problem , thanks dude :)

        my english is average, please use simple words and try to be the most explicit, thank you

        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