qdockwidget

Auto resizing of contents of QDockWidget

I've created a dock widget which contains a QTreeView. The size of the tree view remains static when the dock is resized. How can I get it to change it's size automatically to fill the dock area? I've created the dock widget using the designer and use multiple inheritance to include it in the main app. Inherited class: class TreePaneW...

C++ resize a docked Qt QDockWidget programmatically?

I've just started working on a new C++/Qt project. It's going to be an MDI-based IDE with docked widgets for things like the file tree, object browser, compiler output, etc. One thing is bugging me so far though: I can't figure out how to programmatically make a QDockWidget smaller. For example, this snippet creates my bottom dock window...

QDockWidget behavior when changing its content

Hi folks, 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, but also when they disappear... So far, my QDockWidget resizes itself when ...

PyQt4 Custom dialog not showing

Hi, 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, parent = None): super(ListTagWidget, self).__init__() addButton ...

QDockWidget move problem when using custom title widget

Hi, 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 * titleWidget = new MyDockTitle(dock); dock->setTitleBarWidget(titleWidget); When I run the...