Hi.
I implemented a QListwidget with a list of items in a single colum for users to select.
I wanted to start with default where there are a random number of the items being selected when the program first started.
My code is
mysimpleListWidget->setCurrentItem(mysimpleListWidget->item(i));
// i is the indices for those items I want to select
When the program starts, only one item is selected. How come? I had already set the mysimpleListWidget to be multiselection.
Please help.
Thank you!
Marc
Bookmarks