Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
stylesheet ... better in QtCreator or in mainwindows code?
gfxx last edited by
Ultimately, I used to insert the element's stylesheet in QtCreator .... but is it a good habit for the performance of the application or is it better to insert the stylescheet into the mainwindows code?
any suggest is appreciate.
Inserting in Creator is also just code. (inside setupUI)
There is no performance difference.
However, it sometimes beneficial to set via code directly on
the QApplication object so all windows are affected
even if not child of main window.