
Originally Posted by
ecphora
QCheckListItem *twoColumms = new QCheckListItem( listView, "A", "B" );
under Windows, I get the error message:
error C2664: 'QCheckListItem::QCheckListItem(QCheckListItem *,const QString &,QCheckListItem::Type)' : cannot convert parameter 3 from 'const char [2]' to 'QCheckListItem *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
QCheckListItem does not have a constructor which would take several column labels.
Try this:
QCheckListItem *twoColumms = new QCheckListItem( listView, "A");
twoColumns->setText(1, "B");
QCheckListItem *twoColumms = new QCheckListItem( listView, "A");
twoColumns->setText(1, "B");
To copy to clipboard, switch view to plain text mode
Bookmarks