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

Expose TransparentForPositioner

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      Exposing TransparentForPositioner as a (attached?) R/W property of Item would be useful for multiple usecases.

      One might want to instantiate a Item as a parent of another existing Item and position it relative to the existing Item.
      This is not possible if the existing Item is in a positionner or layout, the container will take over the positionning.
      I have encountered this usecase when trying to implement a reorderable delegate, a crossfading behavior and other cases I've since forgotten about.

      A possible workaround is to embed the new Item in a 0 sized Item so that it gets ignored, but that is hacky, add to the memory footprint and is one more level of indirection.

      Being able to set transparentForPositioner in user code would greatly simplify things and seems natural.

      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
            grecko Pierre-Yves Siret
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes