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
2 answers

QDockWidget change background color when floating

I have a QDockWidget with a transparent background, but I would like to change the background color or background image when it is floating. It doesn't look like the qt style sheets have a pseudo state to tell you whether or not they are floating,…
Nicolas Holthaus
  • 7,763
  • 4
  • 42
  • 97
1
vote
0 answers

Setting a different title on tap as on header of a QDockWidget

I'm currently writing an application in PySide where I want to have multiple DockWidgets available for the user to move around freely. In the title of my DockWidget I want to have a solid black line and no text, but in the case of having some…
Stefan Reinhardt
  • 622
  • 8
  • 17
1
vote
0 answers

QDockWidget starting size

I'm somewhat stuck on what feels like it should be a simple problem. I've got QMainWindow with several QDockWidgets. The QDockWidget (_tree_dock in my code) starts in the LeftDockWidgetArea. It contains a QWidget (dockWidgetContents_2) which…
Boumbles
  • 2,473
  • 3
  • 24
  • 42
1
vote
0 answers

QSettings restore causes app to freeze on show() if missing QDockwidget

I have a Qt application that load .dlls which in turn will add QDockwidget widgets to a QMainWindow. To maintain the size and geometry I am saving them in QMainWindow QSettings settings; settings.setValue("MainWindow/geometry",…
zdp
  • 119
  • 4
1
vote
1 answer

pyqt : resize qdockwidget in maya

I've made a tool for Maya. And I used QDockWidget within QMainWindow for entire UI composition. As you and I know, I can "saveState" and "restoreState" to retain QToolBar, QDockWidget, and so on. I don't know the reason, but in Maya I can't…
Hyun-geun Kim
  • 919
  • 3
  • 22
  • 37
1
vote
0 answers

Customizing Qt Docking behavior

I'm using Qt 4.8 to build an application, and am finding the default docking support in Qt to be quite restrictive for my purposes. Does anyone have any experience customizing the Qt docking behavior? Instead of being constrained to the four dock…
Prasad Silva
  • 1,020
  • 2
  • 11
  • 28
1
vote
1 answer

How to undock tab with osgViewer from QTabWidget?

I want to undock a QWidget from a QTabWiget (is set as centralWidget). The tab contains some Open Scene Graph content (OpenGL Window). When removing the Tab from the list and putting it into a new Dialog Window (=> undocking from tab) the scene data…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
1
vote
1 answer

QDockWidget in QStackWidget

I have a stackWidget with 2 pages. In the page 1, I have 2 QTreeWidget (one on the left, one on the right). I would like to be able to modify the width of my trees in the same principle that the DockWidget. The problem is I can't use the DockWidget…
federem
  • 299
  • 1
  • 6
  • 17
1
vote
1 answer

Dockable window -- not maximise

I have made a gui which contains dockable windows. If i click on maximize square on the docable window it comes out but does not occupies the full screen of my gui. Example if i click syntax window it does not occupy full screen Which property do…
user1870619
  • 177
  • 1
  • 6
  • 12
1
vote
1 answer

questions about qdockwidget

I have a small program that displays two QDockWidgets aligned on the right hand side of the screen. Initially the two dockwidgets remain nicely one beneath the other on the right side dock, but when I minimize and reshow the application the two…
Cristi
  • 648
  • 1
  • 13
  • 28
1
vote
0 answers

QDockWidget::setWidget() calling QAbstractItemModel::rowCount on Windows but not on Linux

Considering the following QAbstractItemModel subclass: class MyItemModel : public QAbstractItemModel { Q_OBJECT public: (...) virtual int rowCount(const QModelIndex& parentIdx = QModelIndex()) const override; (...) }; And a simple…
McLeary
  • 1,231
  • 2
  • 13
  • 21
1
vote
1 answer

How to add toggle fullscreen button into QDockWidget in PyQt4?

By default, there are two small buttons on the QDockWidget toolbar: "detach" and "close". How can I add a new button: "toggle fullscreen"?
Bruno Gelb
  • 5,322
  • 8
  • 35
  • 50
1
vote
1 answer

Checking available room in Qt Dock

I'm using Qt4 and I have a menu option that programmatically adds a new dock widget into a dock area. Unfortunately, if the dock area is already full, adding a new dock widget will cause it to resize the dock widgets below their minimum size,…
Drakonite
  • 1,309
  • 9
  • 15
1
vote
1 answer

Qtableview resize

I have several qdockwidget and within these a qtableview, as seen in the attached picture, my problem is I want the tables are the same size of the dock. I tried to do this and it does not work: table-> resize (dock-> size());
jackajack
  • 153
  • 1
  • 1
  • 11
1
vote
0 answers

Automatically resizing QMainWindow on QDockWidget docking

I have a QWidget expanding to fit QMainWindow. I can dock a QDockWidget, but only if it fits to the current QMainWindow size. I'd like to be able to drop the QDockWidget even if the QMainWindow is too small, and in that case resize it to accommodate…
monoik
  • 13
  • 4