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

Qt 5 to-do's in QLayoutItem

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved: