Questions tagged [qdockwidget]

QDockWidget is a class from the Qt framework which represents a widget which can be docked inside a QMainWindow or floated as a top-level window in the desktop. Instances of this class are also called "dock widgets", "tool palettes" and "utility windows".

Dock widgets can be placed (docked) in a special area of a QMainWindow called dock widget area, which is the area surrounding the central widget. They can also be floated (undocked) by the end user.

231 questions
0
votes
1 answer

How to set the size from a QDockwidget

I'm trying to set the initial size from QDockwidget docks. I tried with QSplitter but so far I couldn't achieve it... Any suggestions, post, or help? Thanks in advance!
AV9
  • 31
  • 4
0
votes
1 answer

QDockWidget make left side longer instead of bottom

I'm using QDockWidget on the left and bottom of my UI. But no matter in which order I set them, the bottom one will always cut off the left one. Is there a way to get the left docker extended to the bottom?
wasp256
  • 5,943
  • 12
  • 72
  • 119
0
votes
1 answer

QAction.isChecked() always False, even after it has been set to True at init

I have a PyQt5 app that has QDockWidgets on it's main window, and I have a menu that contain these dockwidgets listed. Whenever I click on a menu item, I want that widget to be closed or opened depending on whether the menu item is checked or not…
kalzso
  • 502
  • 2
  • 6
  • 27
0
votes
0 answers

How to make a QScrollArea containing QDockWidget's and append it to the right of a QHBoxLayout?

UDPATE: I may have realized that QDockWidget isn't the way to go. I have posted a new question here: PyQt: Is it possible to drag/drop QWidgets in a QGridLayout to rearrange them? Original question: I am trying to make a scrollable area containing…
Frederik Petri
  • 451
  • 8
  • 24
0
votes
5 answers

Nesting QDockWidgets

Right now I have four customized QDockWidgets on the left side of my application. When you start the application, each one is visible, but very small because of the visibility of each one. I would like for three of the QDockWidgets to nest behind…
Brent Parker
0
votes
1 answer

Embedding native windows inside QDockWidget

I am trying to take a native window from an other process and manage it as a docking widget in my process. This is very similar to: How to manage separate GUI processes in a Qt application? I have found the following which gets me pretty…
Techniquab
  • 843
  • 7
  • 22
0
votes
2 answers

Floating QDockWidget resize - Change size of the resize handler/grip on the border

I have a simple Qt Mainwindow with a QDockWidget in it (Frameless Window). Now when the QDockWidget is undocked it can be resized by clicking the border of it and drag to new size. The problem is, that the border is only 1 or 2 pixels wide and it…
goaran
  • 353
  • 2
  • 11
0
votes
1 answer

QDockWidget vertical preference

I am using QDockWidget in my application. The widgets by default align like this: However, I want my application to have a preference for the vertical docks like this: Is there a way to achieve this? I am using Qt 5.10.0. Thanks
user1015624
  • 103
  • 1
  • 7
0
votes
0 answers

How to ensure the QFrame title is scaled automatically with the Window 10's "Make text bigger" scaling?

I have a custom panel implementation that is inherited from QFrame. I can set the title by using the setWindowTitle() function. I noticed that I can not set the font size of this title, but I was expecting that this title will be scaled based on…
John Yang
  • 547
  • 1
  • 8
  • 21
0
votes
0 answers

Remember size of Dock widget on toggle view

I have two dock widgets in my QApplication widget. On each widget toggle view action is called.So that it hides and shows when I check and uncheck the dock widget in menu options.` On toggle, dock widget are not taking the size which they had before…
vaasu varma
  • 85
  • 1
  • 7
0
votes
1 answer

How to make QDockWidgets as separate windows?

I have a Qt application with some QDockWidgets, which can be docked and undocked with these features: DockWidgetFloatable DockWidgetMovable DockWidgetVerticalTitleBar DockWidgetClosable I would like to use the window layout manager of Windows…
locke14
  • 1,335
  • 3
  • 15
  • 36
0
votes
1 answer

How to set DockWidget at Top Right corner of QGIS?

I am trying to dock my plugin window at the top right corner of QGIS but unable to place it at the top if there is a window already present. I have used the following code which makes the plugin window to appear at the right side but not at the top…
Sandip Nepal
  • 94
  • 3
  • 15
0
votes
1 answer

Modifying the QDockWidget default snap locations?

I am trying to model a UI from a wxWidgets application to QT. However, in the original application they have Dock Widgets that can snap in place and move around except for occupying the main window. Every box appears to be a dock widget except for…
Sailanarmo
  • 1,139
  • 15
  • 41
0
votes
0 answers

QToolBox in QDockWidget collapses to minimum size

I have a QToolBox in a QDockWidget MyWidget::MyWidget () : QMainWindow () { auto tool_dock = new QDockWidget (); auto tool_box = new QToolBox (); tool_box->addItem (create_draw (), tr ("Draw")); tool_box->addItem…
spraff
  • 32,570
  • 22
  • 121
  • 229
0
votes
1 answer

Program hangs at a particular line in a function without a signal from operating system

I am making a library management software in qt. I have a LogWindow class in which displays the log (basically " 'x' issued book 'y' on date 'abc' "). I added a QDockWidget to filter the results like say, the user only wants to see today's activity…
Hemil
  • 916
  • 9
  • 27