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

Andreas Pakulat apaku at gmx.de
Fri Mar 13 18:44:26 CET 2009


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.



More information about the Qt-interest-old mailing list