You could use the following code: QList<int> list = QList<int>() << 1 << 1;. or initializer list with C++11: QList<int> list({1, 1});.
確定! 回上一頁