KDDockWidgets API Documentation  1.5
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
Layouting::Widget Class Referenceabstract

An abstraction/wrapper around QWidget, QtQuickItem or anything else. More...

#include <Widget.h>

Inheritance diagram for Layouting::Widget:
Inheritance graph
[legend]

Public Member Functions

 Widget (QObject *thisObj)
 
virtual ~Widget ()
 
QObjectasQObject () const
 
virtual QWidgetasQWidget () const
 
virtual QDebugdumpDebug (QDebug &) const =0
 
virtual QRect geometry () const =0
 
virtual void hide ()=0
 
QString id () const
 returns an id for corelation purposes for saving layouts More...
 
virtual bool isVisible () const =0
 
virtual QSize maxSizeHint () const =0
 
virtual QSize minSize () const =0
 
virtual void move (int x, int y)=0
 
bool operator== (const QObject *obj) const
 
QObjectparent () const
 
virtual std::unique_ptr< WidgetparentWidget () const =0
 
QRect rect () const
 
virtual void setGeometry (QRect)=0
 
virtual void setHeight (int height)=0
 
virtual void setLayoutItem (Item *)=0
 
virtual void setParent (Widget *)=0
 
virtual void setSize (int width, int height)=0
 
virtual void setVisible (bool) const =0
 
virtual void setWidth (int width)=0
 
virtual void show ()=0
 
QSize size () const
 
virtual QSize sizeHint () const
 
virtual void update ()=0
 
int x () const
 
int y () const
 

Static Public Member Functions

template<typename T >
static QSize widgetMaxSize (const T *w)
 
template<typename T >
static QSize widgetMinSize (const T *w)
 

Static Protected Member Functions

static QSize boundedMaxSize (QSize min, QSize max)
 

Detailed Description

An abstraction/wrapper around QWidget, QtQuickItem or anything else.

So the layout can host QWidget, etc without depending on it.

Inherit from it via multi-inheritance so this wrapper is deleted when the actual QWidget/QQuickItem is deleted.

Definition at line 78 of file Widget.h.

Constructor & Destructor Documentation

◆ Widget()

Widget::Widget ( QObject thisObj)
explicit

Definition at line 19 of file Widget.cpp.

◆ ~Widget()

Widget::~Widget ( )
virtual

Definition at line 25 of file Widget.cpp.

Member Function Documentation

◆ asQObject()

QObject* Layouting::Widget::asQObject ( ) const
inline

Definition at line 124 of file Widget.h.

◆ asQWidget()

virtual QWidget* Layouting::Widget::asQWidget ( ) const
inlinevirtual

Reimplemented in Layouting::Widget_qwidget.

Definition at line 87 of file Widget.h.

◆ boundedMaxSize()

QSize Widget::boundedMaxSize ( QSize  min,
QSize  max 
)
staticprotected

◆ dumpDebug()

virtual QDebug& Layouting::Widget::dumpDebug ( QDebug ) const
pure virtual

◆ geometry()

virtual QRect Layouting::Widget::geometry ( ) const
pure virtual

◆ hide()

virtual void Layouting::Widget::hide ( )
pure virtual

◆ id()

QString Widget::id ( ) const

returns an id for corelation purposes for saving layouts

Definition at line 29 of file Widget.cpp.

◆ isVisible()

virtual bool Layouting::Widget::isVisible ( ) const
pure virtual

◆ maxSizeHint()

virtual QSize Layouting::Widget::maxSizeHint ( ) const
pure virtual

◆ minSize()

virtual QSize Layouting::Widget::minSize ( ) const
pure virtual

◆ move()

virtual void Layouting::Widget::move ( int  x,
int  y 
)
pure virtual

◆ operator==()

bool Layouting::Widget::operator== ( const QObject obj) const
inline

Definition at line 143 of file Widget.h.

◆ parent()

QObject* Layouting::Widget::parent ( ) const
inline

◆ parentWidget()

virtual std::unique_ptr<Widget> Layouting::Widget::parentWidget ( ) const
pure virtual

◆ rect()

QRect Layouting::Widget::rect ( ) const
inline

◆ setGeometry()

virtual void Layouting::Widget::setGeometry ( QRect  )
pure virtual

◆ setHeight()

virtual void Layouting::Widget::setHeight ( int  height)
pure virtual

◆ setLayoutItem()

virtual void Layouting::Widget::setLayoutItem ( Item *  )
pure virtual

◆ setParent()

virtual void Layouting::Widget::setParent ( Widget )
pure virtual

◆ setSize()

virtual void Layouting::Widget::setSize ( int  width,
int  height 
)
pure virtual

◆ setVisible()

virtual void Layouting::Widget::setVisible ( bool  ) const
pure virtual

◆ setWidth()

virtual void Layouting::Widget::setWidth ( int  width)
pure virtual

◆ show()

virtual void Layouting::Widget::show ( )
pure virtual

◆ size()

QSize Layouting::Widget::size ( ) const
inline

Definition at line 114 of file Widget.h.

◆ sizeHint()

virtual QSize Layouting::Widget::sizeHint ( ) const
inlinevirtual

Reimplemented in Layouting::Widget_qwidget.

Definition at line 93 of file Widget.h.

◆ update()

virtual void Layouting::Widget::update ( )
pure virtual

◆ widgetMaxSize()

template<typename T >
static QSize Layouting::Widget::widgetMaxSize ( const T *  w)
inlinestatic

◆ widgetMinSize()

template<typename T >
static QSize Layouting::Widget::widgetMinSize ( const T *  w)
inlinestatic

Definition at line 152 of file Widget.h.

References QSize::expandedTo(), and QSize::width().

Referenced by Layouting::Widget_qwidget::minSize().

◆ x()

int Layouting::Widget::x ( ) const
inline

Definition at line 133 of file Widget.h.

Referenced by Layouting::Widget_quick::move(), and Layouting::Widget_qwidget::move().

◆ y()

int Layouting::Widget::y ( ) const
inline

Definition at line 138 of file Widget.h.

Referenced by Layouting::Widget_quick::move(), and Layouting::Widget_qwidget::move().


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

© 2019-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Mon Mar 7 2022 02:01:21 for KDDockWidgets API Documentation by doxygen 1.8.20