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. [SOLVED] re-sizing QTreeWidget

[SOLVED] re-sizing QTreeWidget

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

    Hi,

    My program interface contains two QTreeWidgets and one QLabel.
    I want update automatically re-size other widgets when user re-sizes any of these widgets.

    Updating whole window and maintaining aspect ratio seems bit tricky to me
    How can I do that? Any idea/help is ppreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Santosh Reddy
      wrote on last edited by
      #2

      bq. I want update automatically re-size other widgets when user re-sizes any of these widgets.

      How will user re-size one widget?

      SS

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tesmai4
        wrote on last edited by
        #3

        I want to add standard re-size functionality by mouse-left button pressed and movement.
        Mouse left button pressed and dragged left/right to increase/decrease size of the widget.
        I want to maintain aspect ratio of the other widgets in the whole main window.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Santosh Reddy
          wrote on last edited by
          #4

          Using Mouse...no in-built Qt layout can do this, you need to write a your own custom widget and a custom layout manager, and handle all resize events, and move events manually, with very minimal support from inbuilt layout manager.

          SS

          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