Some Qt questions
22224 24 7- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- NSDesign
- Member
- 16 posts
- Joined: 9月 2012
- Offline
rvinluanvuxQApplication instance should be safe in both PySide and C++ codeQtGui.QApplication.instance().styleSheet() retrurn empty stringQT_Utils::applyWidgetStyleSheets(QWidget*)Can`t find this method
Whoops for both items.
I fixed the QtGui.QApplication.instance().styleSheet() problem so that should start working in tomorrow's H14 build (14.0.221).
Also looking in the HDK we don't expose the QT_Utils class which is probably a good thing. You should be able to access the app stylesheet similarly in C++ like so:
QApplication::instance()->styleSheet()
But like the Python version this function call will start working in tomorrow's H14 build.
Cheers,
Rob
Hi
I'm running 14.0.361 and still get an empty string from the QApplication.instance().styleSheet()
I can get the base stylesheet from hou.ui.qtStyleSheet() but there is a lot missing. I'm curious to now if the expected styleSheet from QApplication.instance() would be the complete Houdini styleSheet or are there styles being defined elsewhere, namely in the custom Houdini interfaces .ui
Any help on this area would be greatly appreciated.
thanks
Nick
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- kahuna031
- Member
- 897 posts
- Joined: 7月 2018
- Offline
-
- Quick Links