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

QModelIndex::internalId() result type mismatch

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Done
    • 5.0.0, 5.1.1
    • 5.0.0
    • None
    • Windows7
    • 15953e95030ee42c78a84c48c7a3f3c2c448601f

    Description

      I'd used QModelIndex::internalId() result signedness for my model internal purposes, but the result type is quintptr now (i.e. unsigned!), so, all my code is broken, and I had to deal with static_cast. WTM? Documentation says:

      Returns a qint64 used by the model to associate the index with the internal data structure.

      Is this a bug, or a typo in documentation?

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            slava_phirsov phirsov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes