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

Build fails on ARM with -qreal float in qtquickcontrols2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.6.0 Beta
    • Quick: Controls 2
    • None
    • 4794fce4be864b0a2054e4726e0ba4f595332c24

    Description

      Build fails for ARM when Qt is configured with -qreal float in QtQuick Controls 2.

      /home/jeremy/src/qt/qt5/qtquickcontrols2/src/templates/qquickcontrol.cpp:423:62: error: no matching function for call to ‘qMax(double, qreal)’
      return qMax(0.0, width() - leftPadding() - rightPadding());

      It's an easy fix: 0.0 needs to be cast to a qreal. It happens in lots of places.
      I've attached a patch.

      Attachments

        For Gerrit Dashboard: QTBUG-50048
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            molesmoke Jeremy Powell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes