Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
objectutils.cpp File Reference

(d9f2fd6c86dd50050431a4699ca52bc7da2d8035)

#include "objectutils_p.h"
#include <QtWidgets>
Include dependency graph for objectutils.cpp:

Go to the source code of this file.

Classes

struct  TypeList< T >

Typedefs

using Layouts
using Widgets

Functions

QStringList layoutNames ()
QStringList widgetNames ()
template<typename ... T>
static QList< const QMetaObject * > metaObjectsImpl (TypeList< T... >)
QList< const QMetaObject * > widgetMetaObjects ()
template<typename Base, typename T>
static Base * createObject (const QString &className, QWidget *parent)
template<typename Base, typename ... T>
static Base * createObjectImpl (const QString &className, QWidget *parent, TypeList< T... >)
QLayoutcreateLayoutInstance (const QString &className, QWidget *parent)
QWidgetcreateWidgetInstance (const QString &className, QWidget *parent)

Variables

template<typename ... T>
static QStringList objectNamesImpl (TypeList< T... >)

Typedef Documentation

◆ Layouts

Initial value:
>
The QGridLayout class lays out widgets in a grid.
Definition qgridlayout.h:22
The QHBoxLayout class lines up widgets horizontally.
Definition qboxlayout.h:79
The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.
The QVBoxLayout class lines up widgets vertically.
Definition qboxlayout.h:92

Definition at line 22 of file objectutils.cpp.

◆ Widgets

Function Documentation

◆ createLayoutInstance()

QLayout * createLayoutInstance ( const QString & className,
QWidget * parent )

Definition at line 228 of file objectutils.cpp.

◆ createObject()

template<typename Base, typename T>
Base * createObject ( const QString & className,
QWidget * parent )
static

Definition at line 213 of file objectutils.cpp.

◆ createObjectImpl()

template<typename Base, typename ... T>
Base * createObjectImpl ( const QString & className,
QWidget * parent,
TypeList< T... >  )
static

Definition at line 219 of file objectutils.cpp.

◆ createWidgetInstance()

QWidget * createWidgetInstance ( const QString & className,
QWidget * parent )

Definition at line 233 of file objectutils.cpp.

References QPainter::QWidget.

Here is the call graph for this function:

◆ layoutNames()

QStringList layoutNames ( )

Definition at line 188 of file objectutils.cpp.

◆ metaObjectsImpl()

template<typename ... T>
QList< const QMetaObject * > metaObjectsImpl ( TypeList< T... > )
static

Definition at line 199 of file objectutils.cpp.

◆ widgetMetaObjects()

QList< const QMetaObject * > widgetMetaObjects ( )

Definition at line 207 of file objectutils.cpp.

◆ widgetNames()

QStringList widgetNames ( )

Definition at line 193 of file objectutils.cpp.

Variable Documentation

◆ objectNamesImpl

template<typename ... T>
QStringList objectNamesImpl ( TypeList< T... > )
static

Definition at line 180 of file objectutils.cpp.