Search code examples
qtwidgetstylesheetqtwidgets

How record Qt Widgets StyleSheet in a sepatated file


Is it possible to get the stylesheet from a separated file for a Qt Widgets application, like .CSS does to .HTML ?


Solution

  • Yes, it is possible. You may load any file with QFile and use setStyleSheet method in your application or any widget. by @SaZ