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

◆ insertRow() [2/2]

flay insertRow ( 2 ,
"User:" ,
vbl  )

◆ removeRow() [1/3]

flay removeRow ( 2 )

◆ 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.

◆ gridLayout

QGridLayout * gridLayout = new QGridLayout(this)

[0]

[1]

Definition at line 15 of file src_gui_kernel_qformlayout.cpp.

◆ le

Definition at line 44 of file src_gui_kernel_qformlayout.cpp.

◆ nameLabel

QLabel * 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.