Qt-jambi-interest Archive, March 2007
Size policy not honered using juic
Message 1 in thread
Hi,
I've got an jui file with a combobox like this
<widget class="QComboBox" name="cmbExcersice" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
the generated code looks like this:
cmbExcersice = new QComboBox(NewSession);
cmbExcersice.setObjectName("cmbExcersice");
QSizePolicy sizePolicy = new
SizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.resolve(0),
com.trolltech.qt.gui.QSizePolicy.Policy.resolve(0));
sizePolicy.setHorizontalStretch((byte)0);
sizePolicy.setVerticalStretch((byte)0);
sizePolicy.setHeightForWidth(cmbExcersice.sizePolicy().hasHeightForWidth());
cmbExcersice.setSizePolicy(sizePolicy);
Looks like the juic task ignores the Expanding enum value :(
-=Børge
Message 2 in thread
Børge Austvold wrote:
> Hi,
>
> I've got an jui file with a combobox like this
>
> <widget class="QComboBox" name="cmbExcersice" >
> <property name="sizePolicy" >
> <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
> <horstretch>0</horstretch>
> <verstretch>0</verstretch>
> </sizepolicy>
> </property>
> </widget>
>
> Looks like the juic task ignores the Expanding enum value :(
Hi Børge,
This is a bug in juic, it tries to resolve the enum in the wrong way and
always gets 0 as a result. Thank you for reporting.
-
Gunnar