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. Qt: QVBoxLayout - hitting height limitations?
Forum Updated to NodeBB v4.3 + New Features

Qt: QVBoxLayout - hitting height limitations?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.4k 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.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    I add height=30 widgets to the QVBoxLayout. They all look fine, correct height. however, around 550 widgets, they start to condense, with height getting shorter and shorter although i explicitly submit:

    @ widget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    widget->setMaximumHeight(30);
    widget->setMinimumHeight(30);
    myVBoxLayout->addWidget(widget);
    @

    Am I hitting a hard QVBoxLayout limit around 16,000 pixels of total content height? how to I order it to stop condensing my widgets?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ronM71
      wrote on last edited by
      #2

      Yes, I was hitting a limit:

      @this->container->setMaximumHeight(myNewLimit);@

      where container is the widget the QVBoxLayout applies to. The container is also managed by a QScrollArea.

      This took care of the sudden hight condensation problem when reaching a threshold of x widgets in the layout.

      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