Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsLinearLayout: removal of stretches
Forum Updated to NodeBB v4.3 + New Features

QGraphicsLinearLayout: removal of stretches

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 574 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gj42
    wrote on last edited by
    #1

    When I add a Stretch to a QGraphicsLinearLayout, I need to give an index as a parameter:
    @void QGraphicsLinearLayout::insertStretch ( int index, int stretch = 1 );@

    or I add it to the end:
    @void QGraphicsLinearLayout::addStretch ( int stretch = 1 );@

    To remove it, I suppose I need to give the Stretch object itself as a parameter [QGraphicsLayoutItem *item] :
    @void setStretchFactor ( QGraphicsLayoutItem * item, int stretch )@

    But I can't find it how to get it ?
    I would have expected I could remove it by index, but I can't find such an API.
    removeItem doesn't remove the stretch either.

    Any help ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved