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. The window doesn't resize itself
Forum Updated to NodeBB v4.3 + New Features

The window doesn't resize itself

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

    Hello to everyone, I have a problem with the resizable of a window. In the window I have a groupbox and a tab. I would the window to resize itself when I hide the tab, I forced the size but the window modify its size only when i click on the edge of window. Please help me, thanks.

    jsulmJ 1 Reply Last reply
    0
    • _ _DC_

      Hello to everyone, I have a problem with the resizable of a window. In the window I have a groupbox and a tab. I would the window to resize itself when I hide the tab, I forced the size but the window modify its size only when i click on the edge of window. Please help me, thanks.

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

      @_DC_ said in The window doesn't resize itself:

      I forced the size

      Please show how

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

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _DC_
        wrote on last edited by
        #3

        I set the constraint in this way:

        ui->tabWidget->setMaximumWidth(0);
        this->setMaximumWidth(430);
        this->updateGeometry();

        jsulmJ 1 Reply Last reply
        0
        • _ _DC_

          I set the constraint in this way:

          ui->tabWidget->setMaximumWidth(0);
          this->setMaximumWidth(430);
          this->updateGeometry();

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

          @_DC_ Are you sure you want that your window changes its size without user intervention. I wouldn't like such behaviour as user.

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

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            _DC_
            wrote on last edited by
            #5

            Yes I am, because the window should change its size pushing on button with these instruction

            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