在我的代码中,我必须手动执行:
/*This works but there must be a better way*/
listView->hide();//INSTEAD OF THIS I'D RATHER SEND A SIGNAL CAUSING
LISTVIEW TO UPDATE -
update(), viewport()->update, repaint() doesn't work,
基本上我有一个listView,我在其中显示文件选择。按下确定后,此对话框关闭。当我再次打开此对话框并选择另一组文件时,会显示旧文件,我必须隐藏并显示listView才能查看新选择的文件。