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. DockWidget resize error.
Forum Updated to NodeBB v4.3 + New Features

DockWidget resize error.

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

    DockWidget has a QWidget named A as addWidget.

    A QWidget has a layout with setLayout, which has a QGroupBox with QVBoxLayout.

    This DockWidget is created by clicking on Item of QGraphicsView and I want to adjust the default Width to about 300.

    DockWidget.resize (300, height) does not change. How do I change it?

    jsulmJ 1 Reply Last reply
    0
    • P Pada_

      DockWidget has a QWidget named A as addWidget.

      A QWidget has a layout with setLayout, which has a QGroupBox with QVBoxLayout.

      This DockWidget is created by clicking on Item of QGraphicsView and I want to adjust the default Width to about 300.

      DockWidget.resize (300, height) does not change. How do I change it?

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

      @Pada_ Is your DockWidget in a layout?

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

      P 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Pada_ Is your DockWidget in a layout?

        P Offline
        P Offline
        Pada_
        wrote on last edited by
        #3

        @jsulm
        There is no layout outside DockWidget.

        The DockWidget has a Widget, and the Widget is setLayout.

        jsulmJ 1 Reply Last reply
        0
        • P Pada_

          @jsulm
          There is no layout outside DockWidget.

          The DockWidget has a Widget, and the Widget is setLayout.

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

          @Pada_ Then you should show the code.

          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