Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Touch coordinates offset in QMessageBox when Qt::FramelessWindowHint is set
Forum Updated to NodeBB v4.3 + New Features

Touch coordinates offset in QMessageBox when Qt::FramelessWindowHint is set

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 166 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.
  • J Offline
    J Offline
    Jdo300
    wrote on last edited by Jdo300
    #1

    This is a followup to a bug report posted here:

    https://bugreports.qt.io/browse/QTBUG-47474?focusedCommentId=287643&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel

    I found that my QMessageBox was not responding to touch events whenever the Qt::FramelessWindowHint window flag is set. When cleared, the dialog responds normally.

    After some additional testing, I found that the touch DOES work, but it is registering the coordinates in the wrong place on the window. The QMessageBox is drawn centered on the screen, but it appears that the OS thinks that the dialog is positioned in the upper-left hand corner of the screen.

    Does anyone know of a viable workaround for this? I'm developing my Qt application to run on a Raspberry PI 3. Either I need some way to counteract the coordinate offset, or I need a different way to make the window look frameless (I don't want the titebar and buttons displayed at the top).

    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