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. Make QToolBox items take more space in QScrollArea
Forum Updated to NodeBB v4.3 + New Features

Make QToolBox items take more space in QScrollArea

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

    Hi everyone !
    This is my first question here so tell me if I'm doing anything wrong.

    Okay so my program is basically a set of scripts I'd like to edit/create with a nice GUI written in C++ with... Qt !
    A script is an ensemble of steps such as "sql query" "send mail", and so on and so forth...

    It looks like this :
    !http://img11.hostingpics.net/pics/710121Capturedcran20141106164108.png(Normal use)!

    Okay, everything is fine, but when I add a lot of steps (which I will CERTAINLY do later), it looks like this :
    !http://img11.hostingpics.net/pics/548642Capturedcran20141106164833.png(Too much steps makes it impossible to read)!

    The whole QToolBox is inside a QScrollArea (tried to show it in screenshot).

    What do I have to do in order to specify to a QToolBox item its minimum height depending on the size of the widget inside ?
    Thanks a lot !

    EDIT : Don't pay attention to the item's content on my screenshot they are all the same for the moment.

    EDIT: I just tried with the strategy found "here":http://qt-project.org/forums/viewthread/2305 (setting parent and grand parent a minimum height) but it's not working the way I want : my item's widget is indeed bigger, but I still have the same result as my second picture when I have a lot of items.

    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