[Qt-creator] Unable to compile ui file
ypmartin
ypmartin at uci.cu
Tue Nov 18 22:57:49 CET 2008
On Wed Nov 5 19:01:55, Alexandre Badez wrote:
> I'm testing QtCreator on my mac (witch work really great, without any
> problem) and on my linux mandriva (2007.1) (where I've got some
> trouble).
> On mandriva I've installed Qt4.1.4 (I can't upgrade for compatibility
> reason with other people) not from an "official" package but from the
> tar.gz
>
> Here is the output in the "compile" window:
>
> #####################################""
> Starting: /usr/local/Trolltech/Qt-4.1.4/bin/qmake
> /home/alex/dev/test/qtcreat/qtcreat.pro -spec linux-g++ -r
> CONFIG+=debug_and_release -after
> SOURCES*=/opt/qtcreator-0.9/bin/gdbmacros/gdbmacros.cpp -after
> QT*=network
> uic: File generated with too old version of Qt Designer
> uic: File generated with too old version of Qt Designer
> Exited with code 0.
> Starting: /usr/bin/make debug -w
> [....]
> #####################################""
>
> In my env I've got:
> QTDIR=/usr/lib/qt3/
> PATH=[...]:/usr/lib/qt3//bin:/usr/local/TrollTech/qt4/bin # qt4 is an
> alias
>
> $ ls -l /usr/local/Trolltech/qt4
> /usr/local/Trolltech/qt4 -> Qt-4.1.4/
>
> But in QtCreator I configure it to use qt installed in
> /usr/local/Trolltech/qt4 (Tools -> Options -> Qt4 -> QtVersions).
>
> My Project is just one from the wizard where I've written nothing in
> c++, just edit the widget with the editor.
> In the ui, file I've put some QLabel, QLineEdit, QTreeWidget,
> QTreeWidgetItem, QCombo, QButton, QDockWidget.
>
> I wonder if I had used some option not supported by Qt4.1...
>
> Anyway, if you have any idea why there is a problem, please, let me
> know.
>
> PS: If the problem is that I used an option not supported by my older
> version of Qt, may I suggest that in the future QtCreator tell you
> about this ? Maybe, the editor should even not enable some option...
>
> --
> Alex
I've the sema bug, I have a workstation pc with Kubuntu 8.10 and Qt
4.4.3 but a I have a pc with Debian Etch and Qt 4.2.1.
On Debian I can't install Qt Creator so, i develop a simple main windows
with Qt 4.4.3 and when I'll try to compile using "qmake" and "make" this
problem appears. What I do.
Open the .ui files with Kate or any text editor and delete the first
line of this XML file:
#######################################
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
.
.
.
</ui>
#######################################
and let my .ui(xml) file like that:
#######################################
<ui version="4.0">
.
.
.
</ui>
#######################################
so, I delete "<?xml version="1.0" encoding="UTF-8"?>" from my ui and
when I try again to compile in my older Qt version the problem
disappears. I suppose Qt < 4.4 don't recognize the first line of xml and
interpret that like and older qt version.
Yonnys.
More information about the Qt-creator-old
mailing list