[PyQt] crash when not saving pointer to KTextEditor.View.selectionRange() result

Wilbert Berendsen wbsoft at xs4all.nl
Sat Aug 8 19:53:07 BST 2009


Hi,

Since PyQt4.5.x / KDE 4.3, this segfaults on my system (view is a 
KTextEditor.View instance):

start = view.selectionRange().start()

but when I write:

selRange = view.selectionRange()
start = selRange.start()

it does not crash. Why is this? The value saved in start is just a 
KTextEditor.Cursor instance.

w best regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
"You must be the change you wish to see in the world."
        -- Mahatma Gandhi


More information about the PyQt mailing list