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

Qt 5 to-do's in QLayoutItem

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.0.0 Beta 1
    • None
    • Widgets: Layout
    • None

      qtbase/src/widgets/kernel/qlayoutitem.cpp
      QSizePolicy::ControlTypes QLayoutItem::controlTypes() const
      {
          // ### Qt 5: This function should probably be virtual instead
          if (const QWidget *widget = const_cast<QLayoutItem*>(this)->widget()) {
              return widget->sizePolicy().controlType();
      ...
          /*
            ### Qt 4.0:
            If the layout is expanding, we make the widget expanding, even if
            its own size policy isn't expanding. This behavior should be
            reconsidered.
          */
      

      These should be either actioned for Qt 5.0.0 (if source-compatibility can be maintained), removed, or changed to Qt 6 to-do's.

        For Gerrit Dashboard: QTBUG-25099
        # Subject Branch Project Status CR V

            paeglis Gatis Paeglis
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes