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

QStyle::CCScrollBar display empty rect when QStyle::SC_ScrollBarSlider is off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 4.7.1
    • 4.6.3
    • None

    Description

      I'm currently working on gtk-qt-engine: http://gitorious.org/gtk-qt-engine/gtk-qt-engine

      I'm trying to fix scrollbars but here what's happening:

      Gtk draw scrollbar groove and then call another function to draw slider in this groove...

      So, with Qt, i need to:

      • Draw groove without slider
      • Draw slider inside groove.

      First function (drawing groove) fail:

      option.subControls &= ~QStyle::SC_ScrollBarSlider;
      m_qtStyle->drawComplexControl(QStyle::CC_ScrollBar, &option, &p, m_dummyScrollBar);

      This draw me a scrollbar groove without slider... But it draw an empty rectangle in groove (at slider place)...

      Exemple in attachement...

      Attachments

        1. main.cpp
          0.7 kB
        2. scrollbar_slider.png
          scrollbar_slider.png
          172 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bachewii Jens
            gnumdk gnumdk
            Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes