Code 1, works. Code 2, aborts on launch (caught by Windows)
Code 1:
// destinataires
qDestin
->resize
( QSize( 330,
110 ) );
qDestin->move( 34, 71 );
// setupModel
qDestin->setModel(model);
qDestin
->setSelectionMode
( QListView::MultiSelection );
// destinataires
qDestin = new QListView( this );
qDestin->resize( QSize( 330, 110 ) );
qDestin->move( 34, 71 );
// setupModel
model = new QStandardItemModel(0, 1, this);
qDestin->setModel(model);
qDestin->setSelectionMode( QListView::MultiSelection );
To copy to clipboard, switch view to plain text mode
Code 2:
// destinataires
qDestin
->resize
( QSize( 330,
110 ) );
qDestin->move( 34, 71 );
qDestin->setModel(model);
qDestin
->setSelectionMode
( QListView::MultiSelection );
// setupModel
// destinataires
qDestin = new QListView( this );
qDestin->resize( QSize( 330, 110 ) );
qDestin->move( 34, 71 );
qDestin->setModel(model);
qDestin->setSelectionMode( QListView::MultiSelection );
// setupModel
model = new QStandardItemModel(0, 1, this);
To copy to clipboard, switch view to plain text mode
And code 2 generates no compile error from MINGW.
How can this be explained ?
Bookmarks