Qt Creator keep crashing when opening *.ui file
-
Hi all,
I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
I'm using Windows Vista Home Basic 32-bit. Please help. -
[quote author="pohdes" date="1293606852"]Hi all,
I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
I'm using Windows Vista Home Basic 32-bit. Please help.[/quote]Can you try the same ui file with the installation of QtSDK 2010.05 at another O/S, such as Windows XP?
-
Never faced such an issue with Qt SDK version 2010.05. Does this happen with any particular .ui file. Or crashes with any .ui file.
-
Below is the ui file:
@<ui version="4.0">
<class>TestGUI</class>
<widget class="QWidget" name="TestGUI" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>TestGUI</string>
</property>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>
@Qtk: Yes, it crash with any ui file.
-
[quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]
No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.
-
This is strange because for me, create a new project create the same ui posted but view in qt creator add the xml version, but only in qt creator! in the source code of the ui there isn't that code!
[quote author="QtK" date="1293615321"]
[quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.
[/quote]
-
In my case the source code has it. But when I modified the .ui to the one provided above. The editor in Qt Creator doesn't show this line.
@<pixmapfunction></pixmapfunction>@
but if I open it in any other text editor, it is shown there.
-
[quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]
I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)
-
[quote author="Stavros Filippidis" date="1293624815"]
[quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)[/quote]
Right Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1.
-
That's right. But in this case only pohdes is facing this problem. Will have to wait till he replies back.
-
[quote author="Vass" date="1293627745"]Stavros Filippidis IMHO using unstable Qt Creator is not a problem. It's no high load server with millions users. Release candidate is enough stable for using and includes many new features, such as QML Designer.[/quote]
Generally speaking, I don't disagree with this! My point was that the version included in Qt SDK 2010.05 is NOT deprecated, but instead it is the current official and stable version provided. So, I would make the hypothesis that the initial poster's crashes do NOT have to do with the Qt Creator's version. ;)