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

Qt 5 to-do's in QLayoutItem

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0 Beta 1
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Technical Risk:
      Normal

      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

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

            Activity

              People

              Assignee:
              paeglis Gatis Paeglis
              Reporter:
              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:

                  Gerrit Reviews

                  There are no open Gerrit changes