Is there a way to get a string of stylesheet errors
Unsolved
General and Desktop
-
For example, when my stylesheet is formatted wrong I get errors like
- Could not parse stylesheet of object 0x2db36817
- Unknown property widt
I get these errors in the application output in Qt Creator but is there a way to get a string of it? Is there a signal that emits if I get a stylesheet error?
A signal like
void styleSheetError(QStringList errors)
-
-
Looking at qstylesheetstyle.cpp, I'd say there's no clean way to get these messages. You could install a custom message handler using
QtMessageHandler qInstallMessageHandler(QtMessageHandler handler)
, but that looks like a very ugly hack to me. If you really need the messages, you'll probably have to patch the Qt sources.