[Qt-interest] Creating a QModelIndex outside of a QAbstractItemModel subclass

Dario Ahdoot dario.ahdoot at image-metrics.com
Fri Mar 13 22:42:02 CET 2009


I don't see how anybody would ever see that behavior as a bug. When would you want to have only once cell selected in a view where the style is to have the whole row selected? I can't imagine a situation where anybody would want this. Maybe I just have a poor imagination though :)

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Andreas Pakulat
Sent: Friday, March 13, 2009 10:44 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Creating a QModelIndex outside of a QAbstractItemModel subclass

On 13.03.09 11:22:55, Dario Ahdoot wrote:
> I understand what you are saying, however, my point is that the *view* should "draw" the row as selected even though only one index in the selection model is selected since the style of the view is to have the whole row selected.

But that would be wrong as well, because then the GUI doesn't reflect what
the selection model actually returns as selection. That can easily create
hard to track bugs in your code.

Andreas
 
-- 
Be cheerful while you are alive.
		-- Phathotep, 24th Century B.C.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list