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

╄→гoц情女王★ 提交于 2021-02-04 22:10:33

问题


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);

回答1:


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.



来源:https://stackoverflow.com/questions/9260169/is-there-any-way-to-set-the-visibility-of-qlabel-in-qt-designer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!