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

Text cut off (looks like margins?) when push button is disabled #106

Closed
RustyPedrosa opened this issue Aug 29, 2018 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@RustyPedrosa
Copy link

Hi guys,

I'm new to Qt and python, so please accept my apologies if this is a mistake on my end. I love the work you've done with this stylesheet, but I'm seeing this minor issue.

Describe Your Environment

Tried in two environments:

  • QDarkStyle: 2.5.4
  • OS: WIndows 10
  • Python: 3.6.6
  • PyQt: 5.11.2

Also tried with Ubuntu 18.04 on Windows Subsystem for Linux running Xming 6.9.0.31

  • QDarkStyle: 2.5.4
  • OS: Ubuntu 18.04 (WSL)
  • Python: 3.6.5
  • PyQt: 5.11.2

Language

  • [Python]

Description / Steps to Reproduce [if necessary]

When I disable a pushbutton on my UI, as in:
self.ui.pushButton_readData.setEnabled(False)
the text on the button is cut off if it's too close to the sides.

Actual/Expected Result

Screenshot from Windows: Imgur

It's hard to see, but "Read Data" is cut off on the sides (the 'R' and 'a' are almost gone) with qdarkstylesheet (left).

It looks fine without the stylesheet applied (right).

In Linux it's almost exactly the same.. maybe one more pixel is cut off.

Thanks! Keep up the good work!

@dpizetta
Copy link
Collaborator

Hi, it looks like that margin or padding is different when the button is up and down. Are you able to try to fix it and make a PR? Both of us are busy :)

@dpizetta
Copy link
Collaborator

I think now it is resolved. Tks for reporting. I could not reproduce your issue in the example, even changing the size. If not revolved with the new version, please reopen this issue.

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

2 participants