当前位置:网站首页>Contents in qlistwidget are not displayed

Contents in qlistwidget are not displayed

2022-06-27 05:44:00 opera321

1、 If QListWidget yes QDialog forms UI A control of , Don't be in QDialog In the constructor of QListWidget Execute new item operation . Can be in QDialog Of showevent Execute new in item operation . But if you use it QStackedWidget, For stackedwidget Of index=0 Medium QListWidget stay showevent Execute new in item Can display , The rest of the index The ones in the can't be displayed , In this way, you can stackedwidget Of index Switch functions to execute .

原网站

版权声明
本文为[opera321]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270533216440.html