Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.6.3
-
None
-
Windows Vista 32bit.
Description
Trying to make the QSlider handle bigger than the groove, similar to example in the style sheet documentation.
There is set positive top and bottom margin for groove style and negative for handle. In designer window and preview it looks perfect, like in correct.png. But when compile the application result is completely wrong, showed in wrong.png. Can be seen that hover and pressed styles are applied over the correct size of handle, but handle is drawn bigger. There is attached a simple test application.
I have made several tests around the issue:
using only margin in groove
in designer handle is limited to groove border
in application handle is displayed with right size
in application active area of handle is within the groove border
using only margin in handle
in designer handle is displayed with right size
in application handle is displayed with double size
in application active area of handle is area of needed size (size in designer)
using only margin in groove and handle
in designer handle is displayed with right size
in application handle is displayed with double size + the size of groove margin
in application active area of handle is area of needed size (size in designer)
All test are over the horizontal slider, but same issue exist for vertical.