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

Scroll bar erases border set with Qt style sheets

    XMLWordPrintable

    Details

      Description

      Test case attached really explains everything
      If you try to resize window or let it loose focus you will see that border of QPlainTextEdit is erased just below the scroll bar. Screenshot included.

      Here is forum thread about this issue:
      http://developer.qt.nokia.com/forums/viewthread/8323/

      This little code can be quickly used to see the effect. Just run this code and then change the focus to other window using Alt+tab (see screenshot)

      #include <QApplication>
      #include <QPlainTextEdit>
      
      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QPlainTextEdit e;
      e.setStyleSheet("QPlainTextEdit{border: 1px solid red;}");
      e.show();
      return a.exec();
      }
      

        Attachments

        1. qt_20672.patch
          0.7 kB
        2. screenshot2 (1).png
          screenshot2 (1).png
          13 kB
        3. ScrollbarIssue.cpp
          0.4 kB
        4. ScrollbarIssue.png
          ScrollbarIssue.png
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            chernetsov0 Alexey Chernetsov
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes