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
[email protected]
http://lists.pyside.org/listinfo/pyside