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

Calling addItem or addWidget for a layout

XMLWordPrintable

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

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            simonplatten Simon Platten
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes