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

setProperty can't set right value in arm platform when type is qreal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.0
    • 4.5.1
    • Core: Object Model
    • None
    • arm 2410 + Qt embeded 4.5.1
      arm-softfloat-linux-gnu-gcc-3.4.5,
      use DQT_QLOCALE_USES_FCVT

    Description

      I define a property which have is qreal type,just like this:
      Q_PROPERTY( qreal opacity READ opacity WRITE setOpacity )

      when i call setProperty to set value, it doesn't work right in arm platform
      obj.setProperty( "opacity", QVariant( op ) );
      obj.setProperty( "opacity", op );
      obj.setProperty( "opacity", 0.2 );
      I use qDebug to print the infomation, and the argument is 1.575 ,not 0.2

      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)
            xuyaojun xuyaojun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes