Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. messagedialog does not show: Binding on contentItem is not deferred (...)

messagedialog does not show: Binding on contentItem is not deferred (...)

Scheduled Pinned Locked Moved Unsolved Qt 6
1 Posts 1 Posters 355 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.
  • T Offline
    T Offline
    Ttberg
    wrote on last edited by
    #1

    When I try to show a message dialog (using Qt 6.3 and ubuntu 20), I get the following error:
    Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id

    The following sample code replicates this issue:

    Item {
        Rectangle {
            color: "blue"
            anchors.fill: parent
    
            Button {
                anchors.centerIn: parent
                width: 50
                height: 50
                onPressed: {
                    messageDialogReady.open()
                }
            }
    
            MessageDialog {
                id: messageDialogReady
                title: "Ready"
                text: "The calibration procedure is ready. Press the save button to save this calibration"
                buttons: MessageDialog.Ok
                onAccepted: {
                    close()
                }
            }
        }
    }
    

    what am I missing?

    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