PDA

View Full Version : Edit a QListWidget from a MainWindow Component



xXTheAwesomerXx
30th July 2015, 21:51
I have a MainWindow with the Class name of TabbedMainWindow which contains a QTabWidget. The tabs are to be populated from a different MainWindow called ClusterManagement based on user defined variables. Each 'new' tab is a QWidget with a QListWidget inside of a ScrollArea. My question is how do I edit a specific list, in a specific tab?
I've attached my entire project folder so that you may see how everything is set up.

anda_skoa
31st July 2015, 08:43
Couldn't see on a quick check how you add your tabs, but you can just keep pointers to the list widgets in a QList or QVector, using the index of the page to find the list widget that is on it.

Cheers,
_

xXTheAwesomerXx
31st July 2015, 20:08
Couldn't see on a quick check how you add your tabs, but you can just keep pointers to the list widgets in a QList or QVector, using the index of the page to find the list widget that is on it.

Cheers,
_
So as I'm adding the lists, add them to a qlist for future reference?

anda_skoa
1st August 2015, 11:36
Yes

Cheers,
_