Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QComboBox: huge indentation of items when active (left margin) (develop branch) #263

Closed
SomberNight opened this issue Mar 13, 2021 · 4 comments
Assignees
Labels
Milestone

Comments

@SomberNight
Copy link

Describe Your Environment

$ qdarkstyle --all
* OPERATING SYSTEM---------------------------------------------------------------
    - System........................ Linux
    - Release....................... 5.8.0-44-generic
    - Platform...................... Linux-5.8.0-44-generic-x86_64-with-glibc2.29
    - Version....................... #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021
* PYTHON DISTRIBUTION------------------------------------------------------------
    - Version....................... 3.8.5
    - C Compiler.................... GCC 9.3.0
    - C API Version................. 1013
    - Implementation................ cpython
    - Implementation Version........ 3.8.5
* QT BINDINGS--------------------------------------------------------------------
    - PyQt5 Version................. 5.15.4
    - PyQt5 Qt Version.............. 5.15.2
* QT ABSTRACTIONS----------------------------------------------------------------
    - qtpy Version.................. 1.9.0
    - qtpy Binding.................. pyqt5
    - qtpy Binding Variable......... os.environ['QT_API']
    - qtpy Import Name.............. qtpy
    - qtpy Status................... OK
* PYTHON PACKAGES----------------------------------------------------------------
    - helpdev....................... 0.7.1
    - QDarkStyle.................... 3.0.dev0
~/wspace/QDarkStyleSheet$ git log -n 1
commit b72fc25ba40ff1b57af416c30022c1d5477d3a5c (HEAD -> develop, origin/develop)
Author: Daniel Pizetta <daniel.pizetta@usp.br>
Date:   Sat Mar 13 01:48:25 2021 -0300

Language

Python

Description / Steps to Reproduce [if necessary]

On latest develop HEAD, all ComboBoxes started to indent items when the ComboBox is active, which results in the labels getting cropped (not being fully visible). This behaviour was not there in 2.8.1.

active
inactive

@dpizetta
Copy link
Collaborator

@SomberNight thanks for noticing this. Please check if the latest 'develop' version could solve this - we reduced the padding for the combo box items. Tks

@dpizetta dpizetta self-assigned this Mar 29, 2021
@dpizetta
Copy link
Collaborator

Oh, if it is possible try to give us feedback about Qt version (try to use 5.12 also) if you have time.

@dpizetta dpizetta added this to the 3.0 milestone Mar 31, 2021
@dpizetta dpizetta added the bug label Mar 31, 2021
@SomberNight
Copy link
Author

I've now tested QDarkStyle==3.0.2 and the issue seems to be fixed.

Tested on the same Linux/Ubuntu system with both (Qt==5.15.2, PyQt==5.15.4) and (Qt==5.12.8, PyQt==5.14.1);
and also tested on Win10 with PyQt==5.15.4.

@lingchingteng
Copy link

I still have this issue with (Qt==5.15.2, PyQt==5.15.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants