-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
IconImage is not the correct size and does not scale #555
Comments
I'm realizing that I can't figure out how to size the PushButton any other way than to add text and style the font_size. It seems to ignore height constraints. What am I missing about this? |
Off the top of my head, a PushButton tend to stick to its natural size even if more space is available. Try playing with limit_width and feel free to check the other attributes available on ConstraintsWidget subclasses. |
You might also have to use a style sheet. That will trigger Qt to disregard
the platform rendering style, and it will behave more like
stylable/clickable box, which sounds like what you are after
…On Mon, Aug 26, 2024 at 12:14 PM Matthieu Dartiailh < ***@***.***> wrote:
Off the top of my head, a PushButton tend to stick to its natural size
even if more space is available. Try playing with limit_width and feel free
to check the other attributes available on ConstraintsWidget subclasses.
—
Reply to this email directly, view it on GitHub
<#555 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBQSOVCCNPGE6JECEUWIDZTNO6VAVCNFSM6AAAAABM6UCRZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGY4DEMRRGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I am trying to use images in PushButton icons.
The image is displayed, but it is neither the size of the image nor does it scale with the PushButton size (as defined in constraints). I tried setting the
raw_size
andsize
for the Image but that had no affect. It is displayed very small, like 6x6, but the image in 64x64 and the PushButton is 96x100. I tried with both an svg and a png.The text was updated successfully, but these errors were encountered: