Important: Please read the Qt Code of Conduct -

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
                if (toolTipText.length > 0){
                    ToolTip.delay = 1000
                    ToolTip.timeout =2000
                    ToolTip.bottomPadding = 0

Log in to reply