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 630 - Fails to resolve overload for QCursor(QBitmap, QBitmap, int, int)
: Fails to resolve overload for QCursor(QBitmap, QBitmap, int, int)
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-20 07:08 EET by Mattia Barbon
Modified: 2011-02-17 19:18 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 Mattia Barbon 2011-01-20 07:08:51 EET
In the program

    from PySide.QtGui import *
    app = QApplication([])
    bmp = QBitmap(16, 16)

    print 'Bitmap:', bmp
    print QCursor(bmp, bmp, 16, 16)

the QCursor constructor fails with:

TypeError: 'PySide.QtGui.QCursor' called with wrong argument types:
  PySide.QtGui.QCursor(PySide.QtGui.QBitmap, PySide.QtGui.QBitmap, int, int)
Supported signatures:
  PySide.QtGui.QCursor()
  PySide.QtGui.QCursor(PySide.QtCore.Qt.CursorShape)
  PySide.QtGui.QCursor(Qt::HANDLE)
  PySide.QtGui.QCursor(PySide.QtGui.QBitmap, PySide.QtGui.QBitmap, int = -1,
int = -1)
  PySide.QtGui.QCursor(PySide.QtGui.QCursor)
  PySide.QtGui.QCursor(PySide.QtGui.QPixmap, int = -1, int = -1)

the same program works fine with PyQt4.

Regards,
Mattia
Comment 1 Matti Airas 2011-01-20 09:03:55 EET
Thanks for the bug.

I am able to replicate it, and it's a bit of a WTF:

  PySide.QtGui.QCursor(PySide.QtGui.QBitmap, PySide.QtGui.QBitmap, int, int)

would seem pretty much identical to

  PySide.QtGui.QCursor(PySide.QtGui.QBitmap, PySide.QtGui.QBitmap, int = -1,
int = -1)

in my opinion.

Prioritizing P3.
Comment 2 Marcelo Lira 2011-02-10 08:20:53 EET
This bug was mentioned discussed on Qt mailing list:
http://lists.qt.nokia.com/pipermail/qt-components/2011-February/000459.html

And it comes with code: http://pastebin.com/Eh9yrFX5
Comment 3 Marcelo Lira 2011-02-10 08:21:52 EET
Ignore my last comment, it was meant for another bug.
Comment 4 Marcelo Lira 2011-02-10 16:30:35 EET
Fixed in commit Shiboken/b1b32623.
Comment 5 Hugo Parente Lima 2011-02-17 19:18:16 EET
Released in 1.0.0~rc1