How to create QList of 2 demension?
Solved
General and Desktop
-
@VRonin said in How to create QList of 2 demension?:
QList<QPair<QString,QString> > bookmarks
-
Wouldn't it be more convenient to use a
QList<QList<QString> >
orQList<QVector<QString> >
? those have an easier constructor than theQPair<T1, T2> qMakePair(const T1 &value1, const T2 &value2)
path? -
@aha_1980
Thank you for your resolution, I have finished history record of QWebView with 3 members!
https://github.com/sonichy/Qt_HTYBrowser// define struct History { QString stime; QString title; QString surl; }; // append QList<History> historys; History history; history.stime = strlist.at(0); history.title = strlist.at(1); history.surl = strlist.at(2); historys.append(history); // use historys.at(i).stime historys.at(i).surl historys.at(i).title