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

The function 'model' for QModelIndex in a QListWidget returns a pointer to a private class.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.1
    • Widgets: Itemviews
    • None
    • Windows x64 Visual Studio 2019
    • Windows

    Description

      If I assign a delegate to QListWidget, the overridden paint call has a QModelIndex passed as a parameter.  Calling model on the function returns a pointer to a private class QLlistModel,  Since this model is private, the item cannot be retrieved from the index.

      Please make the QListModel a public class so the items for the QListWidget can be retrieved from QModelIndex.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            doug_rogers Doug Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes