[Interest] QAbstractItemView and default QItemSelectionModel

Eric Clark eclark at ara.com
Tue Jun 26 00:05:21 CEST 2012

Thank you again Andreas! I just wanted to get my head screwed on straight. I really appreciate your response and help! - Eric

From: Andreas Pakulat [mailto:apaku at gmx.de]
Sent: Monday, June 25, 2012 5:02 PM
To: Eric Clark
Cc: Qt Interest (interest at qt-project.org)
Subject: Re: [Interest] QAbstractItemView and default QItemSelectionModel

On Mon, Jun 25, 2012 at 11:59 PM, Eric Clark <eclark at ara.com<mailto:eclark at ara.com>> wrote:
Thanks Andreas! I know it doesn't exactly answer my question, but you are right, I can easily check this and I probably should just do the right thing anyway and delete it. However, this suggestion:

Or you could make sure the selection model is set before the model, so that no default-selection-model is created at all

I am curious about this because according to the Qt documentation on QAbstractItemView::setSelectionModel this would not work. Maybe I am misreading what it says though. Here is what it reads:

Note that, if you call setModel<http://doc.trolltech.com/4.7/qabstractitemview.html#setModel>() after this function, the given selectionModel will be replaced by one created by the view.

Do you think I am not reading this incorrectly?

No, you're reading it correctly, I was making up things - or rather mis-remembering and not checking the docs :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120625/1d8ae1c4/attachment.html>

More information about the Interest mailing list