Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89615

Selection start position

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.13.0 RC 3, 5.14.0 RC2, 5.15.2, 6.0.0 Beta2
    • Widgets: Itemviews
    • None
    • All

      There is currently no separate function for the start index of the selection. For example QListwidget have got five functions that can change current position/

      setCurrentIndex(const QModelIndex &)
      setCurrentItem(QListWidgetItem *)
      setCurrentItem(QListWidgetItem *, QItemSelectionModel::SelectionFlags)
      setCurrentRow(int)
      setCurrentRow(int, QItemSelectionModel::SelectionFlags)

      But only one can change current selection start index. This function is setCurrentIndex defined in (void QAbstractItemView::setCurrentIndex(const QModelIndex &index)).

      it would be great if you add function setCurrentSelectionStartIndex(const QModelIndex &index)
      wich can change currentSelectionStartIndex (defined in QAbstractItemView)

      it is necessary for implement some internal selection mechanism.

      Now it is very difficult to do!

      thank you!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            arsen Arsen Arutunyan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change