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

QTextEdit shortcut Alt+Wheel does not work on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.1
    • 5.0.2, 5.1.0 Beta 1
    • None
    • Windows 7 Pro

    Description

      From the documentation (https://qt-project.org/doc/qt-5.0/qtwidgets/qtextedit.html)
      The shortcut Alt+Wheel should scroll the page horizontally, in read-only mode at least.

      This was working with Qt 4.8.4 but does not work from Qt 5.

      Test case:

      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QTextEdit w;
          w.setText("Selection of text is handled by the QTextCursor class, which provides functionality for creating selections, retrieving the text contents or deleting selections. You can retrieve the object that corresponds with the user-visible cursor using the textCursor() method. If you want to set a selection in QTextEdit just create one on a QTextCursor object and then make that cursor the visible cursor using setTextCursor(). The selection can be copied to the clipboard with copy(), or cut to the clipboard with cut(). The entire text can be selected using selectAll().");
          w.setLineWrapMode(QTextEdit::NoWrap);
          w.setReadOnly(true);
          w.show();
          return a.exec();
      }
      

      When doing Alt+Wheel, the text area is not scrolled on Windows 7. It was with Qt 4.8.4.

      Note: It works fine on Ubuntu 11.10

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-30833
          # Subject Branch Project Status CR V

          Activity

            People

              andysh Andy Shaw
              carochao Caroline Chao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes