Inviwo  0.9.10.1
Inviwo documentation
inviwo::InviwoDockWidgetTitleBar Class Reference

Custom title bar widget for QDockWidget derived from QWidget. More...

#include <inviwodockwidgettitlebar.h>

+ Inheritance diagram for inviwo::InviwoDockWidgetTitleBar:

Signals

void stickyFlagChanged (bool sticky)
 

Public Member Functions

 InviwoDockWidgetTitleBar (QWidget *parent=nullptr)
 
virtual void paintEvent (QPaintEvent *) override
 
void setSticky (bool toggle)
 
bool isSticky () const
 
void allowedAreasChanged (Qt::DockWidgetAreas areas)
 
void floating (bool floating)
 
double getIconSize () const
 
void setIconSize (double size)
 

Protected Slots

virtual void showEvent (QShowEvent *event) override
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event) override
 

Properties

double iconSize
 

Detailed Description

Custom title bar widget for QDockWidget derived from QWidget.

The title bar widget contains a label showing the window title of the parent QDockWidget and buttons for the sticky mode, dock/undock, and close. The sticky mode determines whether the floating dock widget can be docked to prevent involuntary docking when moving the dock widget. Docking via the dock button or double clicking the title bar is still possible.

Note: adding a custom title bar to a QDockWidget removes the window decoration!


The documentation for this class was generated from the following files: