Register
Log in
Substance Forum
»
Substance Designer
»
Scripting
»
Is the Q Push Button size specification ignored?
« Previous Topic
Next Topic »
Pages: [
1
]
Go Down
Author
Topic: Is the Q Push Button size specification ignored? (Read 1768 times)
pky3d
If I create a button with minimumSize and maximumSize of 30 in the Q Push Button and display the UI file in Substance Designer, it becomes a horizontally long button.
Is this forced to this size on the Substance Designer side?
Does anyone know how to avoid it?
on:
October 25, 2020, 06:21:58 am
Esteban Tovagliari
Hi,
I can reproduce it here. I am not sure what the issue is. We would need to look into it.
I tried using QToolButton instead of QPushButton and the min and max sizes are respected.
Could it be an alternative for your use case?
Est.
Reply #1 on:
October 26, 2020, 09:30:53 am
pky3d
As you told me, I was able to resize using the QToolButton.
If you look closely at the user interface of Substance Designer itself, it seems that the display style is fixed.
I will use QToolButton as needed.
Thanks.
Reply #2 on:
October 26, 2020, 12:21:25 pm
Esteban Tovagliari
Hi,
I can confirm that we set a min size in the application's stylesheet and that is why you cannot override it.
We will see if we can fix this in a future release.
Another alternative could be assigning a new stylesheet to your UI elements.
Est.
Reply #3 on:
October 26, 2020, 01:52:42 pm
pky3d
Hi, I set the stylesheet as you told me, and I was able to overwrite it.
If you can do this, there is no problem.
Thank you very much!
Reply #4 on:
October 27, 2020, 03:08:11 pm
Pages: [
1
]
Go Up
« Previous Topic
Next Topic »
Substance Forum
»
Substance Designer
»
Scripting
»
Is the Q Push Button size specification ignored?