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
3
votes
1 answer

How to resize QDockWidget

I have created one application without centralwidget in my mainwindows, and shown as maximized: setCentralWidget(0); setWindowState(Qt::WindowMaximized); In my mainwindow, I have three docks. The dock1 is set to be docked to leftDockWidgetArea, the…
Burton
  • 61
  • 2
  • 9
3
votes
1 answer

Can a QToolbar be added to a QDockWidget?

I have setup my app to have various dock windows within the main window. I am also able to add a toolbar to the main window. However, I would ideally like to add the QToolBar inside one of the QDockWindow instances (or the QWidget that it houses) as…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
3
votes
1 answer

QDockWidget Tab Position

When I group multiple QDockWidgets in the same place, their tabs go at the bottom. Is there a way to put them at the top? Even better is if I can replace the title bar with the tabs themselves. the Eclipse IDE has very similar behavior, as can be…
EricP
  • 3,395
  • 3
  • 33
  • 46
3
votes
0 answers

Programmatically undocking groups of tabbed QDockWidgets

When the GroupedDragging option is enabled for QMainWindow, is there any way to programmatically drag the dock widgets as groups out of the main window? Calling QDockWidget::setFloating(bool) just undocks the current dock widget. I can achieve this…
Nadir
  • 31
  • 2
3
votes
1 answer

Qt: Tab Icon when QDockWidget becomes docked

Qt's QMainWindow has a ability to dock windows derived from QDockWidget. It also would put one on top on the other if few of them are stacked, producing a tab bar. Whenever a QDockWidget's state changes a signal topLevelChanged() is emmitted. At…
def
  • 521
  • 4
  • 16
3
votes
1 answer

Qt 5.7 dock widget as child of another widget

With Qt 5.7 Designer, is it possible to have dock widget as child of another widget, e.g. within tab widget (which is within stacked widget)?
vorlket
  • 131
  • 10
3
votes
1 answer

How to detect when a QDockWidget is moved out of a QMainWindow?

There is a signal which allows the user to know where a QDockWidget has been moved inside a QMainWindow : void dockLocationChanged(Qt::DockWidgetArea area) The problem is that this signal is not fired when a QDockWidget is moved out of the…
IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
3
votes
2 answers

Hide a QDockWidget's widget and set vertical title bar simultaneously

I have a simple QWidget in a QDockWidget and my own title bar for this dock widget. In this title bar, I put a QPushButton that, when triggered, will allow me to: set the title bar vertical hide the widget inside the QDockWidget I managed to get…
IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
3
votes
1 answer

QDockWidget in QMdiArea subwindow not dockable on top and bottom

In my current project, I implemented a Qt application with several MDI forms that are containing several QDockWidgets. The application looks roughly like that: Here is the code snippet: #include #include #include…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
3
votes
2 answers

QDockWidget behavior when changing its content

I'm facing a problem with one of my QDockWidget. I have several QWidget items in a QDockwidget that are sometimes visible sometimes not. I would like that my QDockWidget resizes itself depending on its content... Not only when QWidgets appear in it,…
Andy M
  • 5,945
  • 7
  • 51
  • 96
3
votes
2 answers

Setting custom title bar widget changes the windows flags on Windows

I'm implementing a custom widget to use it as a title bar on a dockable window. My problem arises only on Windows, namely, the window border disappears when the dock window is afloat. Seems the problem is that, on Windows only, the window flags are…
vonPetrushev
  • 5,457
  • 6
  • 39
  • 51
3
votes
0 answers

Qt - Expanding layout to maximum size in Dock Widget

I'm working on little CAD like program for our indie game project. I already have nicely working form with a bunch of widgets and so on. But one thing is bothering me. I'm using DockWidgets and inside these i have QTableWidget and empty Horizontal…
Gob
  • 73
  • 2
  • 6
3
votes
3 answers

Make two QDockWidgets mutual execlusive at the same position

I have two QDockWidget's, only one of them is visible at the time, I manage that by toggleViewAction(). What I need to do is that I want the two QDockWidget's to be in the same location, with the same size and docked at the same dockWidgetArea with…
Mahmoud Hassan
  • 598
  • 1
  • 3
  • 15
3
votes
1 answer

how to add QDockWidget to QFrame in PyQt4

How do I add QDockWidget to QFrame ? since QFrame does not have addDockWidget !!! from PyQt4.QtCore import * from PyQt4.QtGui import * import sys app = QApplication( sys.argv ) qmainwin = QFrame() #qmainwin.setWindowFlags(Qt.FramelessWindowHint) s…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
3
votes
1 answer

Can't move QDockWidget

I want to create a widget that contains several QDockWidgets on purpose of putting it into a QMainWindow. Problem is that if I add QDockWidgets to my QWidget class with layout->addWidget(dockWidget);(I don't know any other way of doing it) and then…
user1433602