It varies.
qt_enum("AlignTop") will do the first, Qt.QVBoxLayout()[:SetFixedSize] the second, and Qt.QFrame()[:Sunken] the third. The qt_enum() function is basically pyimport("PySide.QtCore")["Qt"][:property_name] which is needed to fish properties out of the Qt object, as @pyimport will try to convert what it can into methods. On Monday, March 24, 2014 8:02:18 PM UTC-4, Samuele Carcagno wrote: > > Hi, > > I can't figure out the syntax to set Qt graphics properties in PySide.jl > For example, how to translate the following Python code: > > sizer.setAlignment(Qt.AlignTop) > > or > > pw.layout().setSizeConstraint(QLayout.SetFixedSize) > > or > > cw.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken) > > any help would be appreciated. > > Sam >