Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
src_gui_kernel_qformlayout.cpp File Reference

Go to the source code of this file.

Functions

formLayout addRow (tr("&Name:"), nameLineEdit)
 
formLayout addRow (tr("&Email:"), emailLineEdit)
 
formLayout addRow (tr("&Age:"), ageSpinBox)
 
nameLabel setBuddy (nameLineEdit)
 
emailLabel setBuddy (emailLineEdit)
 
ageLabel setBuddy (ageSpinBox)
 
gridLayout addWidget (nameLabel, 0, 0)
 
gridLayout addWidget (nameLineEdit, 0, 1)
 
gridLayout addWidget (emailLabel, 1, 0)
 
gridLayout addWidget (emailLineEdit, 1, 1)
 
gridLayout addWidget (ageLabel, 2, 0)
 
gridLayout addWidget (ageSpinBox, 2, 1)
 
formLayout setRowWrapPolicy (QFormLayout::DontWrapRows)
 [1]
 
formLayout setFieldGrowthPolicy (QFormLayout::FieldsStayAtSizeHint)
 
formLayout setFormAlignment (Qt::AlignHCenter|Qt::AlignTop)
 
formLayout setLabelAlignment (Qt::AlignLeft)
 
flay insertRow (2, "User:", le)
 
flay removeRow (2)
 
flay removeRow (le)
 
flay insertRow (2, "User:", vbl)
 
flay removeRow (layout)
 

Variables

QFormLayoutformLayout = new QFormLayout(this)
 [0]
 
QGridLayoutgridLayout = new QGridLayout(this)
 [0]
 
 nameLabel = new QLabel(tr("&Name:"))
 
 emailLabel = new QLabel(tr("&Name:"))
 
 ageLabel = new QLabel(tr("&Name:"))
 
QFormLayoutflay = ...
 [2]
 
QPointer< QLineEditle = new QLineEdit
 
QPointer< QVBoxLayoutvbl = new QVBoxLayout
 
QFormLayout::TakeRowResult result = flay->takeRow(2)
 

Function Documentation

◆ addRow() [1/3]

formLayout addRow ( tr("&Age:")  ,
ageSpinBox   
)

◆ addRow() [2/3]

formLayout addRow ( tr("&Email:")  ,
emailLineEdit   
)

◆ addRow() [3/3]

formLayout addRow ( tr("&Name:")  ,
nameLineEdit   
)

◆ addWidget() [1/6]

gridLayout addWidget ( ageLabel  ,
,
 
)

◆ addWidget() [2/6]

gridLayout addWidget ( ageSpinBox  ,
,
 
)

◆ addWidget() [3/6]

gridLayout addWidget ( emailLabel  ,
,
 
)

◆ addWidget() [4/6]

gridLayout addWidget ( emailLineEdit  ,
,
 
)

◆ addWidget() [5/6]

gridLayout addWidget ( nameLabel  ,
,
 
)

◆ addWidget() [6/6]

gridLayout addWidget ( nameLineEdit  ,
,
 
)

◆ insertRow() [1/2]

flay insertRow ( ,
"User:"  ,
le   
)

Referenced by QStandardItem::appendRow(), QStandardItem::appendRow(), QSqlTableModel::insertRecord(), QStandardItem::insertRow(), and QStandardItemModel::insertRow().

+ Here is the caller graph for this function:

◆ insertRow() [2/2]

flay insertRow ( ,
"User:"  ,
vbl   
)

◆ removeRow() [1/3]

flay removeRow ( )

Referenced by QUrlModel::addUrls().

+ Here is the caller graph for this function:

◆ removeRow() [2/3]

flay removeRow ( layout  )

◆ removeRow() [3/3]

flay removeRow ( le  )

◆ setBuddy() [1/3]

ageLabel setBuddy ( ageSpinBox  )

◆ setBuddy() [2/3]

emailLabel setBuddy ( emailLineEdit  )

◆ setBuddy() [3/3]

nameLabel setBuddy ( nameLineEdit  )

◆ setFieldGrowthPolicy()

formLayout setFieldGrowthPolicy ( QFormLayout::FieldsStayAtSizeHint  )

◆ setFormAlignment()

formLayout setFormAlignment ( Qt::AlignHCenter|Qt::AlignTop  )

◆ setLabelAlignment()

formLayout setLabelAlignment ( Qt::AlignLeft  )

◆ setRowWrapPolicy()

formLayout setRowWrapPolicy ( QFormLayout::DontWrapRows  )

[1]

[2]

Variable Documentation

◆ ageLabel

ageLabel = new QLabel(tr("&Name:"))

Definition at line 21 of file src_gui_kernel_qformlayout.cpp.

◆ emailLabel

emailLabel = new QLabel(tr("&Name:"))

Definition at line 18 of file src_gui_kernel_qformlayout.cpp.

◆ flay

QFormLayout * flay = ...

[2]

[3]

[4]

[5]

[6]

[7]

[8]

Definition at line 41 of file src_gui_kernel_qformlayout.cpp.

◆ formLayout

QFormLayout* formLayout = new QFormLayout(this)

[0]

Definition at line 5 of file src_gui_kernel_qformlayout.cpp.

Referenced by QPrintPreviewDialogPrivate::init().

◆ gridLayout

QGridLayout* gridLayout = new QGridLayout(this)

[0]

[1]

Definition at line 13 of file src_gui_kernel_qformlayout.cpp.

Referenced by ButtonWidget::ButtonWidget(), and ScreenWidget::ScreenWidget().

◆ le

◆ nameLabel

nameLabel = new QLabel(tr("&Name:"))

Definition at line 15 of file src_gui_kernel_qformlayout.cpp.

◆ result

Definition at line 69 of file src_gui_kernel_qformlayout.cpp.

◆ vbl

Definition at line 58 of file src_gui_kernel_qformlayout.cpp.