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 309 - QtCore.QByteArray() or list from QtCore.Qsettings.value() as default
: QtCore.QByteArray() or list from QtCore.Qsettings.value() as default
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.4.0
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-24 08:52 EEST by Bajusz Tamás
Modified: 2010-09-10 19:21 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 Bajusz Tamás 2010-08-24 08:52:39 EEST
Running this code very first time is ok in PyQt4, but fails on PySide:

import sys

#import sip
#sip.setapi('QVariant', 2)
#from PyQt4 import QtCore, QtGui
from PySide import QtCore, QtGui

app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
settings = QtCore.QSettings()
window.restoreGeometry(settings.value("MainWindow/Geometry",
QtCore.QByteArray()))
window.show()
sys.exit(app.exec_())


Traceback (most recent call last):
  File "bug.py", line 11, in <module>
    window.restoreGeometry(settings.value("MainWindow/Geometry",
QtCore.QByteArray()))
TypeError: 'PySide.QtGui.QWidget.restoreGeometry' called with wrong argument
types:
  PySide.QtGui.QWidget.restoreGeometry(list)
Supported signatures:
  PySide.QtGui.QWidget.restoreGeometry(PySide.QtCore.QByteArray)
Comment 1 Hugo Parente Lima 2010-08-30 17:47:47 EEST
Fixed on commit:
pyside/d27d6958c07fdb2d452484ddda0b615c43c8db7b