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 625 - QFileDialog return a tuple instead of a unicode
: QFileDialog return a tuple instead of a unicode
Status: CLOSED DUPLICATE of bug 343
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta3
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-19 04:37 EET by Benoît HERVIER
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments
QFileDialog test (1.33 KB, text/plain)
2011-01-19 04:37 EET, Benoît HERVIER
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benoît HERVIER 2011-01-19 04:37:13 EET
Created attachment 226 [details]
QFileDialog test

QFileDialog should return a unicode value but instead return a tuple on mamo
containing which contain the unicode value and a empty unicode ('filepath','')

The simple test i joined show the difference with PyQt4.

On Fremantle with PySide 1.0.0beta3 with USE_PyQt4 = True :
<code>
<type 'unicode'> /home/user/MyDocs/DCIM/20101224_012.jpg
</code>

On Fremantle with PySide 1.0.0beta3 with USE_PyQt4 = False :
<code>
<type 'tuple'> (u'/home/user/MyDocs/DCIM/20101224_012.jpg', u'')
</code>
Comment 1 Matti Airas 2011-01-19 06:40:12 EET
This actually works as intended: PySide is compatible with PyQt's API 2. If you
enable API 2 in PyQt, you get the same results. Please refer to bug 343 for
more details.

*** This bug has been marked as a duplicate of bug 343 ***
Comment 2 Benoît HERVIER 2011-01-19 07:06:27 EET
Indeed i missed the sip.setapi("QFileDialog", 2). And i forgot to search for
duplicated in closed report, sorry and thanks.
Comment 3 Matti Airas 2011-01-19 09:06:08 EET
No problem!
Comment 4 renato filho 2011-01-21 15:44:53 EET
release beta4