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

QT5.6 how to use new dock features?

http://blog.qt.io/blog/2016/03/16/qt-5-6-released/ says: Our dock widget infrastructure has seen quite some improvements, making it possible to programmatically resize docks, drop dock widgets into floating docks and re-arrange tabbed docks. I…
IceFire
  • 4,016
  • 2
  • 31
  • 51
2
votes
1 answer

Floating QDockWidget minimum size

I've designed a QDockWidget in Qt Creator. For some reasons it has a minimum size assigned (screenshot). I can change the size (e.g. to 0x0) and save the form, but whenever I reopen the form it is reset to 60x38 . All child widgets have a minimum…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
2
votes
1 answer

How to anchor QDockWidget to top right area?

There is a QMainWindow and two QDockWidgets. The first widget is docked to the top, the second - to the left. The result is that the first widget occupies full width and the second widget occupies the remaining area. I want to make it so that the…
lightstep
  • 765
  • 2
  • 8
  • 19
2
votes
2 answers

how to preventoverlapping between two qdockwidgets in same area?

I have two qDockWidgets have the same allowed area ,qt by default allows overlapping between two dock widgets so the two dock widgets will be a one tab widget . I want to stop this behavior
MaramWadi
  • 51
  • 6
2
votes
1 answer

Disable secondary scroll button (tear indicator?) in QTabBar

I have a QTabBar looking like this. The screenshot does not show the arrow scroll buttons on its right side. What is the thing on left side called (looking like a torn edge)? It serves as a scroll left button. Is it the tear indicator? I found…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
2
votes
1 answer

Can't set border to QDockWidget from external QSS stylesheet file

I want to add borders to a QDockWidget using an external QSS file. This is what I have: And this is what I want: I've tried using: QDockWidget { border: 5px solid red; } but it doesn't work at all; If I am using the designer by right clicking…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
2
votes
1 answer

Floating sub QMainWindow (QMainWindow as child widget of main QMainWindow)

I use a QMainWindow as child of my main QMainWindow. By that I get an other area which I can use for dockable widgets (QDockWidget). According to the following posts this is OK, it also works perfectly for…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
2
votes
1 answer

QDockWidget - window with no borders when floating

Win 7, Qt 5.3 I use a QDockWidget with my application. Works as intended. Now I hide the title bar by setting setTitleBarWidget(new QWidget(this)) to a default constructed widget. This is the standard way according to Qt documentation. Also works,…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
2
votes
0 answers

Area for detachable QDialogs within QGridLayout

I have a QMainWindow with a QGridLayout of various widgets that looks like the following: I will have various little input dialogs that come up at different times, and I want them to appear in certain cell of the layout (bright cyan area below…
norman
  • 5,128
  • 13
  • 44
  • 75
2
votes
1 answer

Getting QDockWidget layout right

I heavily use dock widgets to let the user arrange the tools the way she wants. Some of my dock widgets contain static controls (FS, fixed vertical size), others depict images, the larger the better (ES, expanding vertical size). The problem I face…
ypnos
  • 50,202
  • 14
  • 95
  • 141
2
votes
1 answer

QDockWidget -- keep widgets as close as possible when resizing window

I have a QDockWidget containing several QGroupBoxes. (The content of the QGroupBoxes is shown/hidden upon mousePressEvent.) I'm looking for a way to keep the QGroupBoxes positioned as tightly together as possible, preferably at the top of the…
Henry
  • 141
  • 9
2
votes
1 answer

add controls(Qpushbutton and Qlineedits) on QDockwidget

I have created a blank Qdockwidget on the main dialog of my application using this: QDockWidget *Dock = new QDockWidget(this,Qt::Drawer); this->addDockWidget(Qt::RightDockWidgetArea,Dock); Now i want to add some controls like Qpushbuttons on it.…
Ashish
  • 219
  • 2
  • 6
  • 22
2
votes
1 answer

pyqt : dock on side of stacked qdockwidgets

I've made a multi-docks window. To do that, I hide central widget, and I got it. But I have a problem (or more things maybe?). If the dock widgets are stacked on top of another, I can't dock the one the side of them. As seen with above figure, I…
Hyun-geun Kim
  • 919
  • 3
  • 22
  • 37
2
votes
2 answers

PyQt4: Scrollbar doesn't show in scrollarea when resizing dockWidget

I created a python test program (Test_InfoPanel.py) that has MainWindow with dockWidget, and within it, a tabWidget with scrollArea widget. However, when I resize the MainWindow, the vertical scrollbar doesn't auto-appear when the Similarly, when I…
Whospal
  • 51
  • 5
1
vote
1 answer

How to indent the title of a QDockWidget using my own style

I want to indent the title of a QDockWidget w/o adding spaces. #include #include #include class my_style : public QProxyStyle { Q_OBJECT public: my_style (QStyle* style = 0) : QProxyStyle…
Ben
  • 807
  • 1
  • 8
  • 22