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
1
vote
0 answers

QDockwidget closeEvent Pyqt4

I am trying to catch the closeEvent of a QDockWidget in my GUI. But destroyed() doesn't work and I have tried everything else I can't seem to get it to work. What would be the simplest solution for this. Maybe a two liner. Just to catch the…
A I
  • 161
  • 6
  • 20
1
vote
0 answers

PyQt5 overriding QDockwidget event bug?

I have the following problem where I want to customize the QDockwidget event function and calling super() already gives me an error withouth Code in it. Error: TypeError: invalid result from DockWindow.event(), an integer is required (got type…
Babrorian
  • 11
  • 2
1
vote
2 answers

Automatically resize DockWidgets to same heights after adding a new DockWidget

I'm currently writing a small application, that allows the user to freely define plots. The current solution uses QDockWidget, so that the user can resize and rearrange the plots as he pleases. I'm quite happy with this solution, but there is still…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
1
vote
2 answers

Central Widget occupies to much space and Dock Widgets to few after resize

I'm right now using QDockWidget to create a dynamic component for arranging some user defined plots. The plots should be changed in their sizes and can be arranged on top of each other. The following code snippet illustrates what I'm trying to…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
1
vote
0 answers

How to customize a QDockWidget's QTabBar?

I am talking about this : How to get the QTabBar when my QDockWidgets are docked? I'd like to replace it with a customized one. The only thing I found for QDockWidget using a QTabBar was in the sources, a class named QDockAreaLayoutInfo. But it…
IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
1
vote
1 answer

How can I get the location of a QDockWidget in its current dock area

How can I get the location of a QDockWidget in its current dock area? For example, if I have a dock area split in half with two widgets, how can I query the framework to find out which one is on top and which one is on bottom? The user can, of…
user2836797
1
vote
1 answer

QDockWidget move problem when using custom title widget

I want to create a dock widget with a custom title widget. That custom title widget has my own icons (maximize, minimize, close etc). Source code is simply like that: QDockWidget *dock = new QDockWidget("name", parent); MyDockTitle *…
nedret ozay
  • 21
  • 1
  • 4
1
vote
0 answers

Is there a way that QDockWidget can set independent arbitrary position?

picture 1:the current way of dock picture 2:the way I want As you can see, picture 1 shows how QDockWidget sets position, when I resize the dock1's height, dock2 changes too, same as dock3 and dock4. And picture 2 is what I want, I change dock1's…
spartucus
  • 131
  • 5
1
vote
2 answers

PyQt4 Custom dialog not showing

i'm working with PyQt4 to make a simple Python GUI app. The situation is the following: i have an QMainWindow displaying a central widget and a QDockWidget containing this custom Widget: class ListTagWidget(QWidget): def __init__(self,…
Gianluca Bargelli
  • 1,780
  • 2
  • 17
  • 23
1
vote
0 answers

set Screen for qDockWidget in QMdiArea in Qt 5

My App uses a QMdiArea is instantiated in a QMainWindow. Its child windows are QScrollArea. Each of them have QDockWidget as child, instantiated upon creation of the QScrollArea. The QDockWidget are set as floatable. In multi GPU and multi screen…
Wall-E
  • 623
  • 5
  • 17
1
vote
0 answers

QMainWindow.saveState() / .restoreState() handle central widget incorrectly

I'm struggling with QMainWindow and QDockWidgets, it seems a messy area. I need the very simple thing: when application is closed, the arrangement of dockwidgets should be saved, and when application is opened, the arrangement should be…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
1
vote
2 answers

How can I collapse QDockWidget by dragging the resize handle?

Basic Question Is it possible to manage the resize/drag event of the bar that separates QDockWidgets? End Goal I'm trying to provide a way to collapse a QDockWidget to 0 width or height by dragging its resize bar past its minimum size to 0. Since I…
Skyler
  • 1,159
  • 2
  • 13
  • 22
1
vote
1 answer

pyQt QWidget 'flicker' on resize and redraw

Im looking for a way to minimize redraw 'flicker' on my pyQt app. My app is a QMainWindow containing two QDockWidget derived objects (and the usual assortment of tool. menu and statusbars). One of the QDockWidgets* uses a QGridLayout to arrange a…
thefog
  • 181
  • 1
  • 4
  • 13
1
vote
1 answer

Hiding/Showing DockWidgets in Qt 5 in Designer

I'm developing an application with Qt, a framework with which I'm not at all familiar, and I'm attempting to hide and show a DockWidget that I created using designer. Unlike many of the seemingly similar questions about hiding and showing…
erip
  • 16,374
  • 11
  • 66
  • 121
1
vote
1 answer

QDockWidget with QStatusBar possible?

For a QMainWindow I can easily set a status bar. When I have a floating QDockWidget, it behaves like a normal window (from user's perspective). What I want to archive is to add a QStatusBarto the floating QDockWidget. With the signal…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228