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

Selection start position

    XMLWordPrintable

Details

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

    Description

      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!

      Attachments

        For Gerrit Dashboard: QTBUG-89615
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change