ToolTip placement adjustment



  • How can I adjust the placement of a tool tip to be closer to the button or mouse area it's associated with? I tried changing the bottom padding to 0, without success. I can't seem to set the x or y position directly...

    MouseArea {
            id: imageMouse
            anchors.fill: parent
            hoverEnabled: true
            cursorShape: Qt.PointingHandCursor
    
            onEntered:{
                if (toolTipText.length > 0){
                    ToolTip.delay = 1000
                    ToolTip.timeout =2000
                    ToolTip.bottomPadding = 0
                    ToolTip.show(toolTipText,2000)
                    }
    
            }
    
        }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.