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 628 - pyside-uic can't effect "headerVisible" attribute for QTreeView and QTreeWidget
: pyside-uic can't effect "headerVisible" attribute for QTreeView and QTreeWidget
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: pyside-tools
: 1.0.0 beta3
: All MS Windows XP/Vista/7
: P3 normal
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-20 03:31 EET by flyaflya
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments
3 files: ui file with a QTreeWidget no header, one is created by pyuic4, one is created by pyside-uic (1.65 KB, application/xml)
2011-01-20 09:02 EET, flyaflya
Details
3 files: ui file with a QTreeWidget no header, one is created by pyuic4, one is created by pyside-uic (1.65 KB, application/octet-stream)
2011-01-20 09:04 EET, flyaflya
Details
Output of pyside-uic from git HEAD (1.02 KB, text/plain)
2011-01-20 13:21 EET, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flyaflya 2011-01-20 03:31:39 EET
QTreeView and QTreeWidget has a "headerVisible" attribute, its default value is
true, when it was been setted to false, the py file should add a line as
"self.tree.setHeaderHidden(True)",But I found pyside-uic can't do it, so the
tree can't hide its header.

I think the bug is caused by headerVisible's default value, it should be true,
when headerVisible be false, do something(call setHeaderHidden(True)). But now
I find when it be true, here is a "self.tree.setHeaderHidden(False)" line in
the py file.
Comment 1 Matti Airas 2011-01-20 08:23:12 EET
Thanks for the bug. I'm prioritizing this P3.

Could you provide a sample .ui file to illustrate the issue? It'd make
debugging so much faster.
Comment 2 flyaflya 2011-01-20 09:02:29 EET
Created attachment 228 [details]
3 files: ui file with a QTreeWidget no header, one is created by pyuic4, one is
created by pyside-uic

test_for_bug.ui:  ui file with a QTreeWidget no header.
test_for_bug_pyside.py: created by pyside-uic.
test_for_bug_pyqt.py: created by pyuic4.

you will find test_for_bug_pyqt.py file has a line:
self.treeHideHeader.header().setVisible(False)
but test_for_bug_pyside.py no.
Comment 3 flyaflya 2011-01-20 09:04:52 EET
Created attachment 229 [details]
3 files: ui file with a QTreeWidget no header, one is created by pyuic4, one is
created by pyside-uic

3 files: ui file with a QTreeWidget no header, one is created by pyuic4, one is
created by pyside-uic

test_for_bug.ui:  ui file with a QTreeWidget no header.
test_for_bug_pyside.py: created by pyside-uic.
test_for_bug_pyqt.py: created by pyuic4.

you will find test_for_bug_pyqt.py file has a line:
self.treeHideHeader.header().setVisible(False)
but test_for_bug_pyside.py no.
Comment 4 Hugo Parente Lima 2011-01-20 13:21:33 EET
Created attachment 230 [details]
Output of pyside-uic from git HEAD

This is already fixed on git, see the attached file.
Comment 5 renato filho 2011-01-21 15:44:54 EET
release beta4