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

QQuickItem's setWidth / setHeight / setImplicitWidth / setImplicitHeight don't check for non finite values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.1
    • None
    • ef4cf6585a61a00e33091277217b6346a1e6e7fd

    Description

      Only setWidth/setHeight check for NaN; setImplicitX don't even check for that.

      In general, they don't even check for infinities, which looks just as wrong. F.i. an infinite high image will plain crash QtQuick because it tries to allocate a 2^30 pixels high image.

      (They don't check for negative sizes as well, which IMHO doesn't make sense, but could have some meaning in the engine...)

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes