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 chagne Size & mouse Change Size Error.

DockWidget chagne Size & mouse Change Size Error.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 336 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

    When you setWidget on a QDockWidget and click on QGraphicsItem, the QDockWidget displays information about the item you clicked.

    QDckWidget will always change its size because the information shown differs from item to item.

    I want QDockWidget to be created in one size when it is first created, and I want to show it in that size when I click on the items.

    So I have setMaxmumSize and setMinimumSize.

    It shows only in its size without moving. However, the size can not be manipulated with the mouse.

    What if you want to manipulate the size with your mouse? Thank you.

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

      Hi
      setting setMaxmumSize is absolute and mouse cannot change it.
      You could put the widget you use with setWidget into a QScrollArea.
      Then if it gets bigger it shows scrollbars and user can resize to show all.

      alt text

      1 Reply Last reply
      1

      • Login

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