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 511 - QPainter doesn't respect Qt.NoPen
: QPainter doesn't respect Qt.NoPen
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: Macintosh Mac OS
: P3 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-30 21:09 EET by Daniel Ashbrook
Modified: 2011-01-21 15:44 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 Daniel Ashbrook 2010-11-30 21:09:16 EET
The following code, rather than drawing a circle with no border, draws a black
border. The corresponding QGraphicsView code works correctly.


from   PySide.QtCore import *
from   PySide.QtGui  import *
import sys

class Painting(QWidget):
    def paintEvent(self, event):
        painter = QPainter(self)
        painter.setPen(Qt.NoPen)
        painter.setBrush(QBrush(QColor(200,100,50)))
        painter.drawEllipse(event.rect().center(), 100, 100)

app = QApplication(sys.argv)
w = Painting()
w.show()
sys.exit(app.exec_())
Comment 1 Matti Airas 2010-12-01 05:28:15 EET
Thanks for the bug report. Prioritizing P3 - this will be fixed during the
upcoming sprints (before the 1.0 release).
Comment 2 Marcelo Lira 2011-01-12 12:56:52 EET
Fixed in Shiboken/d9902755.
Comment 3 renato filho 2011-01-21 15:44:40 EET
release beta4