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. How can I get Popups in Window without this warning?

How can I get Popups in Window without this warning?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 45 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.
  • A Offline
    A Offline
    Ashley Paul
    wrote last edited by
    #1

    so i want to filter Popups in Window object and the way i can think of is the following, it works and i get them but i get this warning when i run this command:

    qml-qt6 main.qml
    
    QQmlExpression: Expression qs:@/qs/Test5.qml:9:5 depends on non-bindable properties:
         QQuickRootItem::resources
    

    here's how to recreate it

    import QtQuick
    import QtQuick.Controls
    
    Window {
      id: root
      visible: true
    
      Text {
        text: root.contentItem.resources.filter(r => r instanceof Popup).toString()
      }
    
      Popup {
        // ...
      }
    
      Popup {
        // ...
      }
    }
    ``
    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