[RQt-devel] another crash
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Nov 19 13:15:48 CET 2009
On Wed, Nov 18, 2009 at 2:49 PM, Deepayan Sarkar
<deepayan.sarkar at gmail.com> wrote:
> On Wed, Nov 18, 2009 at 1:46 PM, Deepayan Sarkar
> <deepayan.sarkar at gmail.com> wrote:
>> Any idea what's going wrong here?
>>
>> ### Just code:
>>
>> library(qtbase)
>>
>> gscene <- Qt$QGraphicsScene()
>> rtxt <- gscene$addText("some text")
>> rtxt
>> (rtxt$toPlainText()) ## fine
>
> And as a confirmation that the <QList> thing is not a problem, I get:
>
>> item0 <- gscene$itemAt(0, 0)
>> item0
> <environment: 0x9e21428>
> attr(,"class")
> [1] "QGraphicsTextItem" "QObject" "QGraphicsItem"
> [4] "UserDefinedDatabase" "environment"
>> item0$toPlainText()
>
> *** caught segfault ***
Other QGraphicsItem-s seem fine, so it must be the multiple
inheritance (QObject+QGraphicsItem) problem of QGraphicsTextItem
again. Given that rtxt works but item0 doesn't, maybe it's a coercion
problem somewhere in the wrapping stage?
-Deepayan
More information about the Qtinterfaces-devel
mailing list