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. QML Application Button Click Alignment not proper for touch screen
Qt 6.11 is out! See what's new in the release blog

QML Application Button Click Alignment not proper for touch screen

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

    Hi

    I have developed some sample app GUI using QML for embedded linux . However facing one issue related to exact touch location .
    ![alt text](0_1506183839287_screenshot.PNG image url)

    Instead of center of any button click , it works always when touched above it . e.g if i need to invoke 104 , almost i need to touch at area between below play button and above 104. Same issue is observed in almost all button and touch. Same app is working fine in linux with Mouse. clicks

    Code snippet:

    Button {
        id: button2
        x: 120
        y: 150
        z: 3
        width: 80
        height: 40
        text: qsTr("104")
        onClicked: {
           // call here invokable c++ function 
        }
    }
    

    Any pointers will be helpful .

    PS: I have done the calibration and wayland display is used.

    Thanks

    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