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

crash when trying to make unvisible the mac os x oblong button when using unified window un title bar

XMLWordPrintable

    • macOS

      When using these windows flags

      Qt::WindowFlags flags = ( Qt::Window | Qt::CustomizeWindowHint ) & ~Qt::MacWindowToolBarButtonHint; the application crash at startup.

      Error: objc[3397]: FREED(id): message insertItemWithItemIdentifier:atIndex: sent to freed object=0x6319230

      In contrary, it does not crash (and works correctly) when using :

      Qt::WindowFlags flags = Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint;
      flags &= ~Qt::MacWindowToolBarButtonHint;

      Once flags seted using setWindowFlags().

      Create a main window with unified window and title bar and add toolbar at top with some actions.
      The app crash with first method, and not with the second methode.

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

            richard Richard Moe Gustavsen
            pasnox Filipe Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes