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. Resize widgets inside a widgets when application is running
Forum Updated to NodeBB v4.3 + New Features

Resize widgets inside a widgets when application is running

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

    Hey,
    i have implemented a grid like excell with Qt. Untill now i have this "Your text to link here...":https://www.dropbox.com/s/vnoyunb3byroztl/screenshot1.PNG

    As you can see i have one vertical table for the vertical headers, one horizontal table for the horizontal headers, some other widgets, and i draw tha grid as you can see in the picture. I have been confused a lot about what layout i should use so the widgets occupy the apropriate amount of space and and when i resize the total window the widgets also resize. So i used the form layout and untill now it seem to be fine.

    Now, i wonder how can i resize the widgets manually when the application is running. For example how can i resize only the vertical table horizontally with my mouse. Of course i don't want the total window to be resized, but the grid and the horizontal table should be resized horizontally.

    I hope i was clear because it's not easy to explain.

    ty

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Show us the code... this depends heavily on how you implemented your widget.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        salvador
        wrote on last edited by
        #3

        unfortunately is a lillte bit big "code":http://codeviewer.org/view/code:32fa
        _xDimension, _yDimension and _zDimension vectors are the values i want to visualize in the viewport and it comes from a server. I applied the layout from the Designer window. I haven't write any code that has to do with 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