Robert Whitley
Robert Whitley

Reputation: 1081

Is there any way to set the visibility of QLabel in Qt Designer

I'm trying to make a QLabel not visible by default in Qt Designer. I can hard code it but I was wondering if there was a way to set this using the designer.

m_uiForm.aLabel->setVisible(false);

Upvotes: 14

Views: 22144

Answers (1)

Exa
Exa

Reputation: 4110

As far as I know, this is not possible from QtDesigner.

The only way to access setVisible directly from QtDesigner is when modifying connects you can find it as a slot.

The simplest way is just to set the visibility to false just like you are doing already.

Upvotes: 18

Related Questions