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 520 - QVariant is missing from QtCore
: QVariant is missing from QtCore
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtCore
: 1.0.0 beta1
: PC MS Windows XP/Vista/7
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-02 18:31 EET by Luke
Modified: 2010-12-20 11:26 EET (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 Luke 2010-12-02 18:31:12 EET
I get the following error when trying to access QtCore.QVariant:
  AttributeError: 'module' object has no attribute 'QVariant'
Comment 1 Matti Airas 2010-12-03 04:39:57 EET
This is a feature, not a bug. See:

http://www.pyside.org/docs/pseps/psep-0101.html

You can use native Python datatypes or Qt objects whenever QVariant would be
expected. If the documentation still refers to QVariants somewhere, that's a
bug in itself.

If you're trying to port an existing PyQt program that uses QVariants and
QStrings, it might be easiest to first switch the API within PyQt as described
in 

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis

and when you get the API switchover done, only then switch to PySide.

Resolving INVALID.
Comment 2 Hugo Parente Lima 2010-12-20 11:26:11 EET
Closign bugs after release of 1.0.0 beta2.