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

Calling addItem or addWidget for a layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.6
    • Widgets: Layout
    • None
    • I am developing on macOS Big Sur version 11.6
    • All

    Description

      I have an instance of QMainWindow, programmatically I have added a QGroupBox, then to this a QVBoxLayout, then adding several QRadioButtons to the layout using either addItem or addWidget, this does not work and the radio buttons are not added to the layout.

       

      I have single stepped into addItem and also tried doing the same with addWidget which calls addItem, I can see that when on the first line of addItem it all looks ok, however stepping through the function "d" and "item" are changed to 0x0.

      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
            simonplatten Simon Platten
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes