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 QDialog resize with QWidget.

Make QDialog resize with QWidget.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 239 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.
  • K Offline
    K Offline
    kine
    wrote on last edited by
    #1

    I have a QWidget with a QDialog in it. The QWidget is resizeable and setParent of the QDialog is set to the widget. The dialog pops up on a button click, but has fixed size even when I resize the QWidget. How do I make the QDialog resize itself when the widget is resized ? Both of them have QVBoxLayout.

    jsulmJ 1 Reply Last reply
    0
    • K kine

      I have a QWidget with a QDialog in it. The QWidget is resizeable and setParent of the QDialog is set to the widget. The dialog pops up on a button click, but has fixed size even when I resize the QWidget. How do I make the QDialog resize itself when the widget is resized ? Both of them have QVBoxLayout.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kine A QDialog is not part of its parent widget, it is a top level window. So, why should it resize if parent is resized? What is your use case actually?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved