[PySide] Loading ui files problem

336 views
Skip to first unread message

Marcin Łyko

unread,
Oct 7, 2010, 4:51:24 AM10/7/10
to pys...@lists.openbossa.org
Hi there,

I've built apiextractor, generatorrunner, shiboken and pyside from git
HEAD and after installing I get the following error when I try load ui
files using QtUiTools module:

Designer: An error has occurred while reading the UI file at line 1,
column 0: Premature end of document.

Is it known issue?

Regards,
Marcin

_______________________________________________
PySide mailing list
PyS...@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Marcin Łyko

unread,
Oct 8, 2010, 4:03:53 AM10/8/10
to pys...@lists.openbossa.org
Hi,

Could someone confirm if it is general problem please? I would fill a
bug against the issue then.

Best Regards,
Marcin

Renato Araujo Oliveira Filho

unread,
Oct 8, 2010, 9:01:58 AM10/8/10
to marci...@comarch.com, pys...@lists.openbossa.org
Hi Marcin

Can you send the .ui file and your python file used to test the ui file.

Thanks

--
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144

Marcin Łyko

unread,
Oct 8, 2010, 10:00:33 AM10/8/10
to Renato Araujo Oliveira Filho, pys...@lists.openbossa.org
Hi,

Sure, I attached them to the e-mail.

loadui.py
minimal.ui

srikanth (a

unread,
Apr 13, 2011, 4:54:37 AM4/13/11
to pys...@lists.pyside.org
Renato Araujo Oliveira Filho <renato.filho@...> writes:

>
> Hi Marcin
>
> Can you send the .ui file and your python file used to test the ui file.
>
> Thanks
>

> On Fri, Oct 8, 2010 at 5:03 AM, Marcin Łyko <marcin.lyko <at> comarch.com>

wrote:
> > Hi,
> >
> > Could someone confirm if it is general problem please? I would fill a
> > bug against the issue then.
> >
> > Best Regards,
> > Marcin
> >
> >> Hi there,
> >>
> >> I've built apiextractor, generatorrunner, shiboken and pyside from git
> >> HEAD and after installing I get the following error when I try load ui
> >> files using QtUiTools module:
> >>
> >> Designer: An error has occurred while reading the UI file at line 1,
> >> column 0: Premature end of document.
> >>
> >> Is it known issue?
> >>
> >> Regards,
> >> Marcin
> >>
> >> _______________________________________________
> >> PySide mailing list

> >> PySide <at> lists.openbossa.org


> >> http://lists.openbossa.org/listinfo/pyside
> >
> >
> > _______________________________________________
> > PySide mailing list

> > PySide <at> lists.openbossa.org
> > http://lists.openbossa.org/listinfo/pyside
> >
>

Hi,
I also faced this problem recently.My qt program is as follows.
===============================================================
#include <QtGui/QApplication>
#include <QtUiTools/QUiLoader>
#include <QtCore/QFile>
#include "workdialog.h"

int main(int argc, char *argv[])
{
QApplication a(argc, argv);

QUiLoader uiLoader;
QFile file("./workdialog.ui");
file.open(QFile::ReadOnly);

QWidget *sortDialog = uiLoader.load(&file);
if (sortDialog) {
sortDialog->show();
}
WorkDialog w;
w.show();

return a.exec();
}
===============================================================
From the Qt creator editor i was not able to run the program. But when I copied
the .ui file to the build binary containing folder, program runs.

Hope this helps for your issue.

_______________________________________________
PySide mailing list
PyS...@lists.pyside.org
http://lists.pyside.org/listinfo/pyside

Reply all
Reply to author
Forward
0 new messages