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

QVariant String = "test" can convert to double

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.10.1
    • None

    Description

      QVariant l_var = "test"; 
      
      qDebug() << "var:" << l_var << l_var.type() << l_var.canConvert(QVariant::Double) ;
      

       trace:

      var: QVariant(QString, "test") QVariant::QString true
      

      why???

       

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            kickoune ravel thibaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes