Hello, all. I've recently upgraded from TDE
3.5.12 to 3.5.13.1 on
Debian Squeeze but I do not know if this problem was introduced with
that upgrade.
I am working on a regular Qt3 application (yes, I know I need to upgrade
it) inside of KDevelop and created a new Qt3 Dialog by right clicking in
the Automake Manager and creating a new file. I then tried to open it
in Qt Designer and it refused to open. Here is the .ui file it
initially created:
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
<widget class=TQDIALOG_OBJECT_NAME_STRING>
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>
I then manually edited using another QDialog as a template so that it
reads:
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>RadioButtonVariableDlg</class>
<widget class="QDialog">
<property name="name">
<cstring>RadioButtonVariableDlg</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<property name="caption">
<string>SPM - Choice Dialog</string>
</property>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>
and that opens. It was not just a matter of changing <widget
class=TQDIALOG_OBJECT_NAME_STRING> to <widget class=QDialog> as I tried
that. It appears that the magic change is changing <widget
class=TQDIALOG_OBJECT_NAME_STRING> to <widget class="QDialog"> (N.B.
the
quotation marks around QDialog). Thanks - John
This might be a KDevelop bug; TQDIALOG_OBJECT_NAME_STRING was not replaced
at compile-time as it probably should have been. However, this brings up
an interesting point; a native Qt3 application will not be compatible with
TQt3, which TDE will use as of R14.0, without replacement of the various
Q* objects with TQ* objects.
Tim