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 alias reference. Unable to find id ... But, ID is True!
Forum Updated to NodeBB v4.3 + New Features

Invalid alias reference. Unable to find id ... But, ID is True!

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 353 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.
  • V Offline
    V Offline
    VioletVE
    wrote on last edited by VioletVE
    #1

    Just like the title says.
    I tried rebuilding and restarting QtCreator.
    I can't understand.

    Help me, Thanks!

    Qt Version : 6.6 MingW11.2.0 QtCreator 9.0.1(Community)
    Windows:Win11
    78c34405-dafb-45f6-896a-683adf23cefe-image.png

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      It is a delegate ID(in a combobox), not a specific ID. It is the same for all items in the combox. You have to use the id of your combox, not delegate.
      Use property to define this color inside combobox and use combox id to access it.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VioletVE
        wrote on last edited by
        #3

        Yes, you're right, I realized that after the trial.

        Simply put, the problematic ID is on an Object that is not instantiated, so it would be inaccessible.

        It's like in C++, you access a non-static member variable of a class but don't newit

        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