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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.6.3, 5.7.2
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      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

            Assignee:
            andre André Somers
            Reporter:
            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