当前位置:网站首页>How does the QT program implement the default selection of a behavior in the selected listwidget

How does the QT program implement the default selection of a behavior in the selected listwidget

2022-06-22 02:10:00 I'm not xiaohaiwa~~~~

Such as my ListWidget There are already several Item 了 , Now I want to select the second one by default , The code is :

QListWidgetItem *item = ListWidget->item(1);
item->setSelected(true);
原网站

版权声明
本文为[I'm not xiaohaiwa~~~~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220201257233.html