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

Qt::Drawer kills key-events

    XMLWordPrintable

Details

    Description

      If you run this file on Mac, you're unable to insert any characters into the line edit. I did a little bit of debugging and I were not able to find a working breakpoint in Qt, but modifiers like shift and alt are working.

      #include <QtGui/QApplication>
      #include <QMainWindow>
      #include <QLineEdit>
      
      class MainWindow : public QMainWindow {
      public:
      	MainWindow(QWidget *parent = 0) : QMainWindow(parent) {
      		setCentralWidget(new QLineEdit(this));
      		new QWidget(this, Qt::Drawer);
      	}
      };
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      	MainWindow w;
      	w.show();
      	return a.exec();
      }

      We're building our qt with these parameters:

      ./configure -no-qt3support -no-accessibility -no-cups  -no-dbus -no-phonon -arch x86 -sdk /Developer/SDKs/MacOSX10.5.sdk

      If you remove the Qt::Drawer flag, it's working like any other widget.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sebastianphilipp Sebastian Philipp
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes