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

Add built-in support for menu in headerview

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Widgets: Itemviews
    • None
    • All

    Description

      The windows explorer has the possibility to do filtering by opening a menu in the header of each column:

      QHeaderView should support this too.
      A very simple proof of concept is attached: headerview.diff

      Things to be done:

      • add two new QStyle::ComplexControl enumerations for subControlRect/hitTestComplexControl to be able to distinguish between clicking on the header and clicking on the dropdown in the header
      • modify QStyleOptionHeader to notify about if there is a menu indicator or not
      • adopt QStyle::drawControl() accordingly

      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
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes