[Interest] QAbstractItemView and default QItemSelectionModel

Andreas Pakulat apaku at gmx.de
Tue Jun 26 00:01:53 CEST 2012


Hi,

On Mon, Jun 25, 2012 at 11:59 PM, Eric Clark <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 :)

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120626/b5b4543d/attachment.html>


More information about the Interest mailing list