Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47474

frameless QMessageBox: Buttons not usable via Touchscreen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.0
    • None
    • LUbuntu 15.04 64bit; WindowManager: LXDE

    Description

      Buttons in a frameless QMessageBox are not usable via TouchScreen @ LUbuntu 15.04 64bit; WindowManager: LXDE

      Test-Application:

      main.cpp
      #include "mainwindow.h"
      #include <QApplication>
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          MainWindow w;
          w.show();
      
          return a.exec();
      }
      
      mainwindow.cpp
      #include "mainwindow.h"
      #include "ui_mainwindow.h"
      
      #include <QMessageBox>
      
      MainWindow::MainWindow(QWidget *parent) :
          QMainWindow(parent),
          ui(new Ui::MainWindow)
      {
          ui->setupUi(this);
      
          QMessageBox box;
          box.setText("box");
          box.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
          box.setWindowFlags(Qt::FramelessWindowHint);
          box.exec();
      }
      MainWindow::~MainWindow()
      {
          delete ui;
      }
      

      Using them via mouse is no problem.
      In some extremely rarely cases it was possible to use them via touch interface, but i could not distinguish these cases.
      Qt::AA_SynthesizeMouseForUnhandledTouchEvents is enabled by default!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            cmoench Christoph Mönch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes