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. QDockWidget Size Error.
Qt 6.11 is out! See what's new in the release blog

QDockWidget Size Error.

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

    I have a DockWidget in QGraphicsView.

    The DockWidget

    QWidget is add Widget.

    This QWidget has a VBLayout, and in its layout there is a groupbox, the first box in the group box is QLabel, and the second box is LineEdit.

    Click QGraphicsItem to display the information of the selected item in QDcokWidget.

    Different items are displayed differently, so when you hit A and B items, the size of the Dock widget is different.

    However, if you resize the DockWidget with the mouse, clicking on the A and B items will result in a different size.

    Is there a way to get the same size when I press A or B from the beginning without adjusting it with the mouse?

    Sorry. Photos and sources can not be uploaded for any reason.

    Thank you.

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

      Hi,

      Why are you using a QDockWidget inside a QGraphicsView ?

      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