I could use some help with declaring QStringList and QList dynamically:
During runtime I need to declare N QStringLists and QLists with length L. Would someone be able to help with an example of how to do this.
Thank you so much!!
I could use some help with declaring QStringList and QList dynamically:
During runtime I need to declare N QStringLists and QLists with length L. Would someone be able to help with an example of how to do this.
Thank you so much!!
You mean a list of list?
Cheers,
_
Hi,
Yes, I mean a list of lists.
Example:
1: andy, mary, joe
2: james, george, john, jim
3: jeremy, jane
Thanks!
Qt Code:
QList<QStringList> list; // or if L is known and likely to be reasonably fixed const int L = 10; QVector<QStringList> list(L);To copy to clipboard, switch view to plain text mode
Bookmarks