Qt-Creator: How to set a application wide style sheet that can be seen in QTDesigner? -


with

void qapplication::setstylesheet()

i can set global style sheet qt application. example, set default background of qwidgets black.

however, in qt designer widgets still have default looks (grey background), because doesn't know code. there way set global style sheet application affects widgets looks in qt designer? wouldn't have compile project every time want see how looks. or there maybe more sophisticated way solve problem?

there solution. can set in qt designer stylesheet top level widget stylesheet property.

for example: set style

qwidget {background-color:black;} 

for mainwindow form in qt designer , child widgets have black background.

stylesheet in qtdesigner


Comments