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. popup on click for a TableView itemDelegate

popup on click for a TableView itemDelegate

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 821 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.
  • C Offline
    C Offline
    caligoliv
    wrote on last edited by
    #1

    Lets have following QML code snippet:

    @
    Component {
    Rectangle{
    id: delegate
    anchors.fill:parent
    property var editableWidget;

        Text {
           anchors.fill:parent
            anchors.margins: 3
            anchors.centerIn: parent
            elide: Text.ElideRight
            wrapMode: Text.Wrap 
            text:  styleData.value 
            color: "black"
        }
    
        MouseArea{
            anchors.fill:parent
            onClicked: {
               editableWidget=Qt.createComponent("MyBigPopup.qml").createObject(delegate)
               // The widget is not displayed outside the item "delegate" even with a higher z-index to the  tableView
            }
        }
    }
    

    }
    @

    I would like to use a larger popup ( editableWidget) than the tableview cell.

    The widget "editableWidget" is not displayed outside the item "delegate" even with a higher z-index than the tableView.

    To place the item, I would like to use the system of anchors of the parent's widget.
    I can of course attach the object directly to the tableView and use mapToItem but in this case, if the value of the scrollbar changed, the widget is not in the right place

    Do you have a solution to see the entire popup with anchors system?

    P.S.: Sorry if this is a duplicate. I didn’t find a similar thread.

    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