This should work:
Qt Code:
QStringList list; QList<int> valueList; for(int i=0;i<paperSizes.keyCount();i++){ list << key(i); valueList << value(i); } for(int i=0;i<list.count();++i){ box->addItem(list.at(i), valueList.at(i)); }To copy to clipboard, switch view to plain text mode
Bookmarks