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. ToolTip placement adjustment
Forum Updated to NodeBB v4.3 + New Features

ToolTip placement adjustment

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

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved