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

Qt5 QDockWidget with Fixed Height CentralWidget

I'm trying to use dock widgets on the main window class in Qt5. However, when I set the central widget to have a fixed height Qt has trouble docking the windows to the top or bottom. Basically, it looks like there is some "padding" or "margins"…
James
  • 2,488
  • 2
  • 28
  • 45
0
votes
0 answers

Qt - Set DockWidget start size

I currently working on an project in Qt. This project includes an DockWidget, called "ProjectExplorer". I display this with this technique: FPHMainWindow.h #ifndef FPHMAINWINDOW_H #define FPHMAINWINDOW_H #include class…
Charles44
  • 1
  • 1
0
votes
2 answers

Resize QMainwindow to fit Qdockwidget size

I have a QMainWindow and a QDockWidget nested inside this. I show some graphs, so the QDockWidget expands but the QMainWindow keeps it's initial size so i have to resize it using my mouse. So, how can i make a QMainWindow resize to QDockWidget size…
igoutas
  • 135
  • 2
  • 14
0
votes
0 answers

QDockWidget not maintaining size

I have 3 QDockWidgets in my main window. One is docked to the top of the window when initialised and the other two are docked side-by-side at the bottom of the window. The central widget is hidden. Initially everything is of the expected size but…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
0
votes
0 answers

QDockWidget change both windowTitle

I have a class that derives from QDockWidget. In the constructor of my custom class I pass also the title to QDockWidget contructor and set the windowTitle. At runtime I can change the windowTitle of the undocked window but this doesn't change the…
Meldryt
  • 75
  • 1
  • 10
0
votes
1 answer

C++ Qt QTextEdit when put in a vertical layout goes off designer window

In Qt designer, i'm trying to make a text editor so in the window I have a QTextEdit and a QDockWidget so they re size with the window I put them both in a vertical layout as a previously said and when I do they both go off the window. The fix i'm…
New Europe
  • 31
  • 7
0
votes
1 answer

How to extend QDockWidget functions in Qt?

I'm new to Qt, tried several widgets and found that QDockWidget is the most modern/interactive one to work with But I've found a little limitation "about where to dock the widget only in the 4 sides, left/right/top/bottom" I want to do one of the…
Mohamed Sakr
  • 409
  • 4
  • 16
0
votes
1 answer

PyQt Dock Widgets

I have a main window (QMainWindow) containing a dock-able section (QDockWidget). The dock-able section can be torn off and used as a floating window. I would like to be able to allow the user to tear off the dock-able section, close the main window…
Yani
  • 1,465
  • 2
  • 16
  • 25
0
votes
0 answers

Dock widgets within main window and parent widget

I am making a small Qt application. Main Window has dock sites and child mdi windows also have dock sites. The problem is that I can't move child windows' dock widgets to main windows' dock sites. Is there is a workaround for this problem? Child mdi…
Dmitry K.
  • 313
  • 3
  • 17
0
votes
1 answer

QDockWidget visible separator

I have a left docked QDockWidget in my application. I want it to have visible borders and separators but it does not have by default. How can I setup a dock widget so that it has visible edges?
fatma.ekici
  • 2,787
  • 4
  • 28
  • 30
0
votes
1 answer

Add DockWidget on Main Window

This is my UI I hope I could move red border to left or right in the picture by mouse when the program run. How should I do?
midCat
  • 123
  • 4
  • 13
0
votes
1 answer

How to make Kdevelop like DockWidget using qt

I want to make an IDE but want Kdevelop like dockwidget as shown in figure. I want to use qt. I want to know how this is implemented in Kdevelop. Is it a custom widget using QTabBar and QStackedWidgets or something else? It would be nice if some one…
sanjay
  • 735
  • 1
  • 5
  • 23
0
votes
1 answer

Change mouse cursor when dragging a floating QDockWidget

Is it possible to use a different mouse cursor when dragging a floating QDockWidget? Neither QWidget::setCursor nor QApplication::setOverrideCursor have any effect.
Vojislav Stojkovic
  • 8,043
  • 4
  • 35
  • 48
0
votes
1 answer

Windows title bar disappears using QDockWidget -- qbackingstore::flush() called with non-exposed window

I encountered a weird problem using QDockWidget: my essential code: void iMainWindow::createDockWindows() { camera = cvCreateCameraCapture(0); assert(camera); QDockWidget *dock = new QDockWidget(tr("2D Camera"),…
lightrek
  • 951
  • 3
  • 14
  • 30
0
votes
1 answer

QDockWidget Content bug with titlebar

Here is my problem: I created a QDockWidget and put a QGraphicsView in it, while it is floating everything shows up correctly, but if Dock it somewhere, the starting X and Y of my content is on the titlebar of the QDockWidget. Obviously, it should…
user1236892
  • 17
  • 1
  • 1
  • 5
1 2 3
15
16