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. stop automatic widget resizing

stop automatic widget resizing

Scheduled Pinned Locked Moved Unsolved General and Desktop
widget resize
2 Posts 2 Posters 1.7k Views
  • 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
    sankar
    wrote on last edited by
    #1

    Hi

    In my Application i am having a properties window which is a QDockWidget. I have a QGroupBox that is set as widget to the QDockWidget using setWidget() function. The group box is having many child widgets and they are laid out using QVBoxLayout.

    Whenever I dynamically add child widgets to group box, the my QDockWidget is automatically getting resized. At the same time, i don't want to set fixed size for the QDockWidget because user should be able to resize the width of the QDOckWidget.

    So i want to stop the dock widget resizing based on the child widgets but at the same time user should be able to resize the dock widget.

    I don't know how to do this. Can any one help me?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Looks like QScrollArea might be of interest in your case.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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