Qt con estilo

Post on 22-Jun-2015

521 views 5 download

Transcript of Qt con estilo

Qt con estilo

Eduardo Robles Elviraedulix@wadobo.com

Hojas de estilo Qt ¿Qué hacen?

¿Cómo?

Qt Style sheets *[class="line"] {

background-color: red;} QPushButton:hover:!pressed {

font-size: 14px;} #acceptButton, #thumbButton {

margin-right: -12px;width: 74px;

} KFoo--CheckDelegate {

border-image: url(:/images/button.png) 17 17 17 17 repeat repeat;qproperty-tableLinesColor: black;qproperty-gridLinesSize: 0.1;qproperty-selectedBackgroundColor: rgb(120,130,140);

}

¿Cómo?

Muy potentes

*[class="line"] {background-color: red;

} QComboBox::drop-down:hover:!pressed {

image: url(dropdown.png);subcontrol-origin: margin;

} #acceptButton, #thumbButton {

margin-right: -12px;width: 74px;

} KFoo--CheckDelegate {

border-image: url(:/images/button.png) 17 17 17 17 repeat repeat;qproperty-tableLinesColor: black;qproperty-gridLinesSize: 0.1;qproperty-selectedBackgroundColor: rgb(120,130,140);

}

Documentación http://qt-project.org/doc/qt-4.8/stylesheet-syntax.html http://qt-project.org/doc/qt-4.8/stylesheet-reference.html http://qt-project.org/doc/qt-4.8/stylesheet-examples.html

¿Preguntas?