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

QMainWindow::takeCentralWidget() seg faulting when central widget is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.3, 5.7.2
    • 5.7.0
    • Widgets: Main Window
    • None
    • Linux, gcc.

    Description

      Calling QMainWindow::takeCentralWidget() when no central widget is set makes the application crash.

      It would be better to handle this more gently and return null instead.

      Attachments

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

        Activity

          People

            andre André Somers
            vivaladav Davide Coppola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes