Qt-jambi-interest Archive, April 2007
Issues with QDialogButtonBox
Message 1 in thread
Hello
I have issues when I want to create QDialogButtonBox with QT Designer (alone or in Eclispe).
Here is the .jui generated (with a QTreeWidget above the buttons) :
<ui version="4.0" language="jambi" >
<class>Parcourir</class>
<widget class="QDialog" name="Parcourir" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>523</width>
<height>378</height>
</rect>
</property>
<property name="orientation" >
<enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QTreeWidget" name="treeWidget" />
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum>
</property>
<property name="standardButtons" >
<set>com.trolltech.qt.gui.QDialogButtonBox.StandardButton.Cancel|com.trolltech.qt.gui.QDialogButtonBox.StandardButton.NoButton|com.trolltech.qt.gui.QDialogButtonBox.StandardButton.Open</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
When I re-open it :
- Qt Designer doesn't like the first (I guess) 'orientation' : property "orientation" is not supported (java.lang.NullPointerException : Enum value cannot be null)
- Qt Designer show all the possible buttons of the QDialogButtonBox (instead of just the Cancel and OK buttons)
When I select others buttons and save the file, the buttons in the .jui don't change.
I hope this could help improving Qt Designer for Qt Jambi.
Cordially,
Jérémy HETZEL
Message 2 in thread
Hi, Jeremy.
HETZEL Jeremy (D13) - CETE Est/D13 skrev:
>
> When I re-open it :
> - Qt Designer doesn't like the first (I guess) 'orientation' : property "orientation" is not supported (java.lang.NullPointerException : Enum value cannot be null)
> - Qt Designer show all the possible buttons of the QDialogButtonBox (instead of just the Cancel and OK buttons)
>
Thanks for the report. This issue has been fixed for the second beta
release of Qt Jambi.
-- Eskil