Search the Community
Showing results for tags 'qt'.
Found 4 results
Hi, I´m trying to create a custom panel editor. Still in the early stages, but I would like to have my QToolBox has the same size of his parent widget the QScrollArea. I was thinking about implement resizeEvent() to resize the QToolBox (horizontally) when the QScrollArea changes size. But I´m always getting the wrong sizes from QScrollArea, even changing the size of the panel I´m receiving the (1,1,638,478) size from the viewport().geometry() or sizeHint(). I´m puzzled!! Thanks for helping!
Hello everyone, i´m writing a tool in Pyside and i can´t figure out how to set the color of the individual cells in a QTableView. Here is an example, which demonstrates the problem: from PySide import QtCore, QtGui import hou class cellColor(QtGui.QDialog): def __init__(self): QtGui.QDialog.__init__(self) self.resize(297, 174) self.verticalLayout = QtGui.QVBoxLayout(self) self.tableview = QtGui.QTableView(self) self.verticalLayout.addWidget(self.tableview) # without parenting the ui to houdini, i can set the cell colors self.setParent(hou.ui.mainQtWindow(), QtCore.Qt.Window) model = QtGui.QStandardItemModel() item1 = QtGui.QStandardItem("Color Red") item1.setBackground(QtGui.QColor(240,10,10)) item2 = QtGui.QStandardItem("Color Green") item2.setBackground(QtGui.QColor(10,240,10)) model.appendRow([item1,item2]) self.tableview.setModel(model) testwindow = cellColor() testwindow.show() testwindow = cellColor() testwindow.show() Is there a way to set the color of the cells, when the window is parented to Houdini? Thanks for all replies
Hi, I´m looking to integrate Houdini inside our custom pipeline. We already have a pipeline script working inside Maya and I´m trying to replicate it in Houdini. I started with interface creation with Qt and Pyside. I´m in the early stages but already have some doubts. In maya I can create a shelf panel, add some icons and integrate to my script. I´m trying to do it inside qt using buttons with icons but the result is very ugly. So, It´s possible to create these kind of special houdini panels with a qt interface? Somebody has some tutorials or docs about custom interfaces using python in houdini? I couldn´t find anything more than this Masterclass on vimeo. Thanks
Hi, dear SESI team !!! Python Panel is very good addition to Houdini, but: 1. How to set main houdini widget as parent of my own widget? 2. I installed eventfilter to main widget for monitoring Qt ui behaviour. And i saw that not all events can catch. For example, Leave event (when we go to other top level widget). I dont understand why Leave event not generated in this case 3. As I understood, Qt draw Houdini old-style UI system, and we can`t add for example QPushButton to main window. Or maybe this can changed in future releases --- Also, I think that we need some identification method of main Houdini widget via PySide. For example, in Maya we can filter widget via objectName (QtGui.QWidget.objectName). In HDK I can get it with RE_QtWindow::mainQtWindow() Thanks for any details about Qt... --- PS Look at this level of PyQt\PySide intervention What do you think? Best regards...