Is there a hide property for pushbutton in Qt Creator property pallet? I am trying to find one but I am not able to find. I need to make some buttons disable & some hide. Should I use property pallet for it OR do it in constructor? Later on user event, they will be enable & shown.
Some controls have "visibility" property on the palette, some don't. You always may do that programmatically (for example in the dialog's constructor):
MyButton->setVisible(false); //or true - later in the code
In old versions of Qt Designer there was a property visible
for it. But it seems that it was removed in new versions, so you can't use it directly.
But it is still possible to add this field in the .ui file. Just open any text editor, find the part related to the widget you need to hide, and insert this block in that place:
<property name="visible">
<bool>false</bool>
</property>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With