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 70 - padnavigator example doesn't work
: padnavigator example doesn't work
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2009-09-24 17:11 EEST by Luciano Wolf
Modified: 2009-10-14 14:20 EEST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Wolf 2009-09-24 17:11:25 EEST
The example padnavigator.py at
/pyside-examples/examples/graphicsview/padnavigator doesn't work. I've found 2
issues:
Line 224: method doesn't support a QLinearGradient
- painter.setBrush(gradient)
+ painter.setBrush(QtGui.QBrush(gradient))

Line 306: method drawText at line #313 doesn't support a QRectF
- textRect = self.rect().adjusted(10, 10, -10, -10)
+ textRect = self.rect().adjusted(10, 10, -10, -10).toRect()
Comment 1 Luciano Wolf 2009-09-25 10:49:42 EEST
Another point: pressing ENTER over any button will flip it, opening a form to
enter/modify data. If you move the slider you get this error:
Boost.Python.ArgumentError: Python argument types in
    QSpinBox.setValue(QSpinBox)
did not match C++ signature:
    setValue(QSpinBox {lvalue}, int)

and if you change the spinbox you get:
Boost.Python.ArgumentError: Python argument types in
    QAbstractSlider.setValue(QSlider)
did not match C++ signature:
    setValue(QAbstractSlider {lvalue}, int)

Both controlers should be properly connected to update each other
automatically.
Comment 2 Hugo Parente Lima 2009-09-25 11:01:01 EEST
Fixed, waiting for merge.

http://qt.gitorious.org/pyside/pyside/merge_requests/1616
Comment 3 Hugo Parente Lima 2009-09-25 11:02:54 EEST
The bug described comment #1 by Luciano is the bug#12, I reopened it.
Comment 4 Hugo Parente Lima 2009-09-28 14:31:27 EEST
merged on mainline.
commit c752fb3af53f79e096b7a3460263747d2a57e999