Some Qt questions

   20863   24   7
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
Thanx for proper enter\leave events in 14.0.250
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
What Qt events currently supported by Houdini and what can be supperted in future?

Unfortunately there are many usefull event types that we can't use at now… So what is your plans?
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
16 posts
Joined: Sept. 2012
Offline
rvinluan
vux
QApplication instance should be safe in both PySide and C++ code
QtGui.QApplication.instance().styleSheet() retrurn empty string

QT_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
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
897 posts
Joined: July 2018
Offline
running H14.0.395 and getting

>>> QtGui.QApplication.instance().styleSheet()
u''

Quite new to Qt but surely this isn't right? The style sheet doesn't do anything if I try to apply it on a GUI.
B.Henriksson, DICE
  • Quick Links