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 cuts text #239

Closed
rimpy-custom opened this issue Jul 15, 2020 · 4 comments
Closed

QComboBox cuts text #239

rimpy-custom opened this issue Jul 15, 2020 · 4 comments
Assignees
Labels
Milestone

Comments

@rimpy-custom
Copy link

rimpy-custom commented Jul 15, 2020

Describe Your Environment

  • OPERATING SYSTEM---------------------------------------------------------------
    • System........................ Windows
    • Release....................... 10
    • Platform...................... Windows-10-10.0.14393-SP0
    • Version....................... 10.0.14393
  • PYTHON DISTRIBUTION------------------------------------------------------------
    • Version....................... 3.8.3
    • C Compiler.................... MSC v.1925 32 bit (Intel)
    • C API Version................. 1013
    • Implementation................ cpython
    • Implementation Version........ 3.8.3
  • QT BINDINGS--------------------------------------------------------------------
    • PyQt5 Version................. 5.15.0
    • PyQt5 Qt Version.............. 5.15.0
  • 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.................... 2.8.1

Language

Python

Description / Steps to Reproduce [if necessary]

If you set maximum horizontal size of QComboBox and add some text in it, you will notice that ~30 pixels of text are cut from right side.

Actual Result

https://i.imgur.com/nVsZeFK.png

Expected Results / Proposed Result

Text should be shown fully till the border.
Issue do not exist in 2.7.0, probably because it has:
padding-right: 4px;
instead of 2.8.0 and 2.8.1:
padding-right: 36px;
set in style.qss for QComboBox.

P. S. Not related to the issue, but spacing between checkboxes are too big. It is also on the image in comparison to standard windows style.

@rimpy-custom
Copy link
Author

May sombody help me to fix that? I am not good enough to find out how I can change that in QDdarkStyle manually.

@rimpy-custom
Copy link
Author

rimpy-custom commented Jul 16, 2020

Have found a temporary solution, you may apply custom stylesheet:

myComboBox.setStyleSheet("QComboBox"
"{"
"padding-right: 4px;"
"}")

@xakod
Copy link
Contributor

xakod commented Mar 11, 2021

Is this will be fixed in master?

@dpizetta dpizetta self-assigned this Mar 13, 2021
@dpizetta dpizetta added the bug label Mar 13, 2021
@dpizetta dpizetta added this to the 3.0 milestone Mar 13, 2021
@dpizetta
Copy link
Collaborator

We will release soon @Jihadist, thanks! Now is on the develop branch.

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