How to create an invalid QItemSelection
Unsolved
General and Desktop
-
How can I create an invalid QItemSelection? I tried it like this:
m_selection = QItemSelection(QModelIndex(), QModelIndex()); qDebug() << "m_selection:" << selection;
m_selection is empty.
How can I create a QItemSelection which contains two invalid indexes like this:
QModelIndex(-1,-1,0x0,QObject(0x0))
-
@Infinity said in How to create an invalid QItemSelection:
How can I create a QItemSelection which contains two invalid indexes
why?
A QItemSelection is basically a list of selection ranges
So no, it's not possible (and not needed)