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

QVariant::toInt's documentation is not in line with its implementation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5
    • Core: Object Model
    • None

    Description

      The documentation states that the conversion is only possible for a fixed set of stored types; however, the implementation calls QMetaType::convert (if necessary), so it works in theory with any type, as long as there is a registered converter for it.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes