Author Topic: Is the Q Push Button size specification ignored?  (Read 1020 times)

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?




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.


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.


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.

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!