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 976 - QAudioDeviceInfo.preferredFormat() requires argument
: QAudioDeviceInfo.preferredFormat() requires argument
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtMultimedia
: 1.0.5
: Macintosh Mac OS
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-08-17 21:40 EEST by Daniel Ashbrook
Modified: 2011-08-23 00:37 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ashbrook 2011-08-17 21:40:08 EEST
The docs at:

 
http://www.pyside.org/docs/pyside/PySide/QtMultimedia/QAudioDeviceInfo.html#PySide.QtMultimedia.PySide.QtMultimedia.QAudioDeviceInfo.preferredFormat

indicate that QAudioDeviceInfo.preferredFormat() is called without an argument;
however, executing it gives the error:

  TypeError: descriptor 'preferredFormat' of
'PySide.QtMultimedia.QAudioDeviceInfo' object needs an argument
Comment 1 Hugo Parente Lima 2011-08-18 17:23:37 EEST
Do you have some code showing the issue? because it worked for me:

from PySide.QtMultimedia import *

info = QAudioDeviceInfo()
print info.preferredFormat()
Comment 2 Daniel Ashbrook 2011-08-18 19:19:38 EEST
Oops, a typo! I managed to not instantiate the QAudioDeviceInfo object. Sorry
about the spurious report.
Comment 3 Hugo Parente Lima 2011-08-18 19:39:17 EEST
No problem =]
Comment 4 renato filho 2011-08-23 00:37:20 EEST
Release PySide 1.0.6