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

QVariant::setValue() is not working properly

    XMLWordPrintable

Details

    • d5d39f04c2c473401e9147d57d5a7c62f6111656

    Description

      QVariant var(QColor(Qt::green));
      var.setValue(1000);
      int j = var.toInt(); // now j should contain 1000 but it contains some garbage

      This is a regression against 4.5.3.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes