In my example,I use the setStyleSheet,it works well.But in my application,it will be crashed!
I have no idea
the crash infomation is:
In my application,I have a framework,it will be load some QLibrary,in theQt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
Lib,it wil create some widget,like QPushButton,like the listColorBtn.
and now when I setStyleSheet in listColorBtn,it crashed!
Bookmarks