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 642 - SEGFAULT while "option.state"
: SEGFAULT while "option.state"
Status: CLOSED DUPLICATE of bug 640
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta4
: PC Linux
: P3 critical
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-26 05:52 EET by Krasilnikov Sergey
Modified: 2011-02-02 16:12 EET (History)
8 users (show)

See Also:


Attachments
test code for bug (2.56 KB, text/x-python)
2011-01-26 05:56 EET, Krasilnikov Sergey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krasilnikov Sergey 2011-01-26 05:52:17 EET
from beta4 next code causes error "segmentation fault"
full code in attachment
p.s. bugs repeats on WinXP

def paint(self, painter, option, widget):
    pen = QPen(self.style)
    pen.setColor(Qt.black)
    pen.setWidth(1)
    # ERROR in option.state - comment next 2 line
    if option.state & QStyle.State_Selected:  
       pen.setColor(Qt.blue)
    painter.setPen(pen)
    painter.drawRect(self.rect)
Comment 1 Krasilnikov Sergey 2011-01-26 05:56:50 EET
Created attachment 235 [details]
test code for bug
Comment 2 Hugo Parente Lima 2011-01-26 10:07:08 EET

*** This bug has been marked as a duplicate of bug 640 ***
Comment 3 renato filho 2011-02-02 16:12:39 EET
released