QVector<QString> = {"ab","cd","ef","gg"}
is there a way to do thing similar like this ?
since using append involves too much typing when the Vector is large
thanks
QVector<QString> = {"ab","cd","ef","gg"}
is there a way to do thing similar like this ?
since using append involves too much typing when the Vector is large
thanks
You can write:
But I would suggest using QStringList instead.Qt Code:
QVector<QString> = QVector<QString>() << "ab" << "cd" << "ef" << "gg";To copy to clipboard, switch view to plain text mode
J-P Nurmi
Bookmarks