FooSoft
1st January 2011, 17:18
Hello everyone,
I have an application that I'm trying to theme using one global stylesheet via the QApplication::setStylesheet API. This includes a QTextBrowser control which has a bunch of general unstyled HTML in it. What would be awesome is if I could change the way those HTML elements are represented using the global application style, but I'm at a loss about how to do this.
I haven't managed to find any syntax for referencing HTML elements below a QTextBrowser without actually injecting my stylesheet within <style> tags. Is what I'm trying to do possible, and if so, what's the syntax for it?
I have an application that I'm trying to theme using one global stylesheet via the QApplication::setStylesheet API. This includes a QTextBrowser control which has a bunch of general unstyled HTML in it. What would be awesome is if I could change the way those HTML elements are represented using the global application style, but I'm at a loss about how to do this.
I haven't managed to find any syntax for referencing HTML elements below a QTextBrowser without actually injecting my stylesheet within <style> tags. Is what I'm trying to do possible, and if so, what's the syntax for it?