Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_kernel_qformlayout.cpp File Reference

(4a7c76d4a5365343178ea29c8a8e9b8d8acb89b5)

#include <QtCore/qpointer.h>
+ Include dependency graph for src_gui_kernel_qformlayout.cpp:

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 ,
2 ,
0  )

◆ addWidget() [2/6]

gridLayout addWidget ( ageSpinBox ,
2 ,
1  )

◆ addWidget() [3/6]

gridLayout addWidget ( emailLabel ,
1 ,
0  )

◆ addWidget() [4/6]

gridLayout addWidget ( emailLineEdit ,
1 ,
1  )

◆ addWidget() [5/6]

gridLayout addWidget ( nameLabel ,
0 ,
0  )

◆ addWidget() [6/6]

gridLayout addWidget ( nameLineEdit ,
0 ,
1  )

◆ insertRow() [1/2]

flay insertRow ( 2 ,
"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 ( 2 ,
"User:" ,
vbl  )

◆ removeRow() [1/3]

flay removeRow ( 2 )

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()

◆ setFormAlignment()

◆ setLabelAlignment()

formLayout setLabelAlignment ( Qt::AlignLeft )

◆ setRowWrapPolicy()

formLayout setRowWrapPolicy ( QFormLayout::DontWrapRows )

[1]

[2]

Variable Documentation

◆ ageLabel

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

Definition at line 23 of file src_gui_kernel_qformlayout.cpp.

◆ emailLabel

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

Definition at line 20 of file src_gui_kernel_qformlayout.cpp.

◆ flay

QFormLayout * flay = ...

[2]

[3]

[4]

[5]

[6]

[7]

[8]

Definition at line 43 of file src_gui_kernel_qformlayout.cpp.

◆ formLayout

QFormLayout* formLayout = new QFormLayout(this)

[0]

Definition at line 7 of file src_gui_kernel_qformlayout.cpp.

Referenced by QPrintPreviewDialogPrivate::init().

◆ gridLayout

QGridLayout* gridLayout = new QGridLayout(this)

[0]

[1]

Definition at line 15 of file src_gui_kernel_qformlayout.cpp.

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

◆ le

◆ nameLabel

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

Definition at line 17 of file src_gui_kernel_qformlayout.cpp.

◆ result

Definition at line 71 of file src_gui_kernel_qformlayout.cpp.

◆ vbl

Definition at line 60 of file src_gui_kernel_qformlayout.cpp.