oislone wrote: > > write code : > ----------------------------------------- > self.setSelectionMode(QAbstractItemView.MultiSelection) > print(self.SelectionMode()) > -------------------------------------------- > return PySide.QtGui.QAbstractItemView.SelectionMode.NoSelection > > but i cau use self.selectAll() self.clearSelection()why ?
The SelectionMode controls the user interface. That is, it determines what kind of selection the user is able to do from the keyboard and mouse. It's not trying to protect you from yourself. If you don't want to select items, then don't call selectAll or clearSelection. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.
_______________________________________________ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside