PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 259 - pyside-uic generates code with useless layout
: pyside-uic generates code with useless layout
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: pyside-tools
: HEAD
: PC Linux
: P3 major
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2010-07-06 13:56 EEST by Thomas-Karl Pietrowski
Modified: 2010-08-13 11:28 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas-Karl Pietrowski 2010-07-06 13:56:33 EEST
Here is my problem in short...
I created a ui with qt-creator and wanted to generated python code via
pyside-uic and got a useless layout.. The output of the UI is the following: 

QLayout: Attempting to add QLayout "" to Ui_Mainwindow "Mainwindow", which
already has a layout

Here is the Window I designed:
http://img52.imageshack.us/img52/8093/plasmadrop2imageshack17g.png
and the Window pyuic generated for me:
http://img202.imageshack.us/img202/3987/plasmadrop2imageshack17.png

Finally the python code:
http://pastebin.ca/1895540
and the .ui-file:
http://pastebin.ca/1895558

I'm looking foreward to hear from you ;)
It would be also very kind if you know how to fix my code.. I need to work on
that application for a project at school..
Comment 1 Thomas-Karl Pietrowski 2010-07-06 14:01:51 EEST
An additional Screenshot of the Design in QtCreator for you:
http://img576.imageshack.us/img576/5995/plasmadrop2imageshack10.png
Comment 2 Hugo Parente Lima 2010-07-07 10:15:42 EEST
The provided .ui file works as expected with C++, so the bug is confirmed.
Comment 3 Hugo Parente Lima 2010-07-07 10:21:51 EEST
Oops, the bug isn't in pyside-uic generated code, is in your python code, if
you try:

pyside-uic -x ui.ui | python

Where "ui.ui" is the your ui file, everything works fine. You have to use the
code generated by pyside-uic, not modify them.
Comment 4 Thomas-Karl Pietrowski 2010-07-07 10:28:09 EEST
I've got PySide installed from your ppa on my Ubuntu Lucid x64 pc.. 

When trying your tip I get this:
thopiekar@thopiekar-ubuntu:~/Projekte/Falgen/src$ pyside-uic -x falgen-main.ui
| python
Segmentation fault
Comment 5 Hugo Parente Lima 2010-07-07 11:09:59 EEST
This segfault was already fixed and the fix will be in the next version to be
released.