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. DockWidgetAreas size
Forum Updated to NodeBB v4.3 + New Features

DockWidgetAreas size

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

    I have two little QDockWidgets (size 200,100) on my QMainWindow and I would like that the DockWidgetAreas have the same size that the two QDockWidgets (200, 200) in order to have more space for the central widget. At the moment the DockWidgetAreas covers the entire height of the QMainWindow. Is there a way to do it?

    The QDockWidjets are defined as follow:

    @QDockWidget *dock = new QDockWidget( tr("Dock"), centralWidget);
    dock->setAllowedAreas(Qt::AllDockWidgetAreas);
    
    QWidget *widg = new QWidget(dock);
    widg ->setMaximumSize(200, 100);
    
    addDockWidget(Qt::RightDockWidgetArea, dock);@
    
    1 Reply Last reply
    0
    • V Offline
      V Offline
      valeSimu
      wrote on last edited by
      #2

      In order to clear my question I did some draws. I would like "that":https://www.dropbox.com/s/nvyci67nza7hauh/DockAreasProblem.jpeg.png but I have "that": https://www.dropbox.com/s/q2j0sekskhh8ogz/DockAreaProblemTrue.jpeg.png at the moment. So I would like to resize the dock areas, is there any way to do it?

      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