Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved ToolTip placement adjustment

    QML and Qt Quick
    1
    1
    247
    Loading More Posts
    • 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.
    • I
      igor_stravinsky last edited by

      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)
                      }
      
              }
      
          }
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post