Touch coordinates offset in QMessageBox when Qt::FramelessWindowHint is set
-
This is a followup to a bug report posted here:
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).