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

Assertion failure when setting incorrect edge value on Drawer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.2
    • 5.9, 5.10
    • Quick: Controls 2
    • None
    • 8bc2feb498cbbeafe0de52cda929ef7a881c0351

    Description

      I was lazy and was trying to guess what the correct values were, when I accidentally caused a crash by passing Drawer.Right.

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Drawer {
              id: drawer
              width: parent.width * 0.33
              height: parent.height
              edge: Drawer.Right
          }
      }
      
      ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file /home/mitch/dev/qt5-dev/qtquickcontrols2/src/quicktemplates2/qquickdrawer.cpp, line 270
      The program has unexpectedly finished.
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes