https://bugs.kde.org/show_bug.cgi?id=368337

            Bug ID: 368337
           Summary: Consider disabling Qt::WA_OpaquePaintEvent for
                    QSplitterHandle
           Product: Breeze
           Version: 5.5.5
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: QStyle
          Assignee: hugo.pereira.da.co...@gmail.com
          Reporter: elvst...@gmail.com

With the attached minimal test case, I get a drawing artifact in the QGLWindow
when hovering the splitter handle (see attached screenshot). This happens only
with the Breeze style, but not with e.g. Fusion.

I believe it's down to Fusion disabling Qt::WA_OpaquePaintEvent for
QSplitterHandle:

   
http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/styles/qfusionstyle.cpp?h=v5.5.1#n3267

Breeze does not do this:

    https://github.com/KDE/breeze/blob/v5.5.5/kstyle/breezestyle.cpp#L236

The attached minimal test case uses a QGLWidget, but I discovered the issue
while trying to use a QVTKWidget (from VTK), which does its own native
rendering, in a QSplitter.

I'm not sure if my analysis is correct, but if you can confirm the issue, and
disabling Qt::WA_OpaquePaintEvent like Fusion does fix it, it would be great if
you could do this in Breeze.

Reproducible: Always

Steps to Reproduce:
With the attached test case:

1. qmake
2. make
3. ./splittertest
4. Move the splitter handle a little to the right
5. Hover the splitter handle again with mouse

Actual Results:  
The rect of the splitter handle cursor is filled with the background color (see
attached screenshot).

Expected Results:  
Only the shape of the splitter handle cursor should be shown, it should not be
filled.

This was with Qt 5.5.1 on Kubuntu 16.05 using kde-style-breeze
4:5.5.5-0ubuntu1.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to