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

QVariant String = "test" can convert to double

XMLWordPrintable

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

      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???

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes