QtBase  v6.3.1
Classes | Namespaces | Functions | Variables
doc_src_stylesheet.cpp File Reference

Go to the source code of this file.

Classes

class  MyPushButton
 [25] More...
 
class  ns::MyPushButton
 

Namespaces

 ns
 [26]
 

Functions

qApp setStyleSheet ("QPushButton { color: white }")
 [21] More...
 
myPushButton setStyleSheet ("* { color: blue }")
 [21] More...
 
myPushButton setStyleSheet ("color: blue")
 [22] More...
 
qApp setStyleSheet ("QGroupBox { color: red; } ")
 [23] More...
 
qApp setStyleSheet ("QGroupBox, QGroupBox * { color: red; }")
 [24] More...
 
MyPushButton QPushButton setStyleSheet ("MyPushButton { background: yellow; }")
 
qApp setStyleSheet ("ns--MyPushButton { background: yellow; }")
 
qApp setStyleSheet ("QLineEdit { background-color: yellow }")
 [32] More...
 
myDialog setStyleSheet ("QLineEdit#nameEdit { background-color: yellow }")
 [89] More...
 
nameEdit setStyleSheet ("background-color: yellow")
 [90] More...
 
nameEdit setStyleSheet ("color: blue; background-color: yellow")
 [91] More...
 
nameEdit setStyleSheet ("color: blue;" "background-color: yellow;" "selection-color: yellow;" "selection-background-color: blue;")
 [92] More...
 
nameEdit setProperty ("mandatoryField", true)
 

Variables

QLineEditnameEdit = new QLineEdit(this)
 [93] More...
 
QLineEditemailEdit = new QLineEdit(this)
 
QSpinBoxageSpinBox = new QSpinBox(this)
 

Function Documentation

◆ setProperty()

ageSpinBox setProperty ( "mandatoryField"  ,
true   
)

◆ setStyleSheet() [1/12]

myPushButton setStyleSheet ( "* { color: blue }"  )

[21]

[22]

◆ setStyleSheet() [2/12]

nameEdit setStyleSheet ( "background-color: yellow"  )

[90]

[91]

◆ setStyleSheet() [3/12]

myPushButton setStyleSheet ( "color: blue )

[22]

[23]

◆ setStyleSheet() [4/12]

nameEdit setStyleSheet ( "color: blue; background-color: yellow"  )

[91]

[92]

◆ setStyleSheet() [5/12]

nameEdit setStyleSheet ( "color: blue;" "background-color: yellow;" "selection-color: yellow;" "selection-background-color: blue;"  )

[92]

[93]

◆ setStyleSheet() [6/12]

MyPushButton QPushButton setStyleSheet ( "MyPushButton { background: yellow; }"  )

◆ setStyleSheet() [7/12]

qApp setStyleSheet ( "ns--MyPushButton { background: yellow; }"  )
Here is the call graph for this function:

◆ setStyleSheet() [8/12]

qApp setStyleSheet ( "QGroupBox { color: red; } "  )

[23]

[24]

◆ setStyleSheet() [9/12]

qApp setStyleSheet ( QGroupBox,
QGroupBox *{ color:red;}"   
)

[24]

[25]

◆ setStyleSheet() [10/12]

myDialog setStyleSheet ( "QLineEdit { background-color: yellow }"  )

[32]

[88]

[89]

◆ setStyleSheet() [11/12]

myDialog setStyleSheet ( "QLineEdit#nameEdit { background-color: yellow }"  )

[89]

[90]

◆ setStyleSheet() [12/12]

qApp setStyleSheet ( "QPushButton { color: white }"  )

[21]

Variable Documentation

◆ ageSpinBox

QSpinBox* ageSpinBox = new QSpinBox(this)

Definition at line 148 of file doc_src_stylesheet.cpp.

◆ emailEdit

QLineEdit* emailEdit = new QLineEdit(this)

Definition at line 145 of file doc_src_stylesheet.cpp.

◆ nameEdit

QLineEdit* nameEdit = new QLineEdit(this)

[93]

[95]

Definition at line 142 of file doc_src_stylesheet.cpp.