{"id":1368,"date":"2017-04-19T14:08:47","date_gmt":"2017-04-19T14:08:47","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=1368"},"modified":"2017-04-19T14:11:47","modified_gmt":"2017-04-19T14:11:47","slug":"qt-creator-use-css-to-style-widgets-buttons-etc","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1368","title":{"rendered":"QT Creator, use CSS to style widgets, buttons etc."},"content":{"rendered":"<p>In QT Creator, edit your form and under the StyleSheet section of QMainWindow you can target all of the elements that you want to style by using css. You can style almost everything such as QPushButton, QPushButton:Hover, QWidget etc just like you&#8217;d use css to style a webpage.<\/p>\n<p><a href=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2017\/04\/qt_css.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2017\/04\/qt_css.png\" alt=\"\" width=\"828\" height=\"500\" class=\"alignnone size-full wp-image-1369\" srcset=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2017\/04\/qt_css.png 828w, https:\/\/scunster.co.uk\/wp-content\/uploads\/2017\/04\/qt_css-300x181.png 300w, https:\/\/scunster.co.uk\/wp-content\/uploads\/2017\/04\/qt_css-768x464.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In QT Creator, edit your form and under the StyleSheet section of QMainWindow you can target all of the elements that you want to style by using css. You can style almost everything such as QPushButton, QPushButton:Hover, QWidget etc just like you&#8217;d use css to style a webpage.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[349,279,347,350,259,348,351],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-qt-creator","tag-button","tag-creator","tag-css","tag-qbutton","tag-qt","tag-style","tag-widget"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1368"}],"version-history":[{"count":2,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1371,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1368\/revisions\/1371"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}