[RQt-devel] regressions

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Mar 1 20:38:56 CET 2010


On Mon, Mar 1, 2010 at 5:45 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
>
>
> On Mon, Mar 1, 2010 at 5:08 AM, Deepayan Sarkar <deepayan.sarkar at gmail.com>
> wrote:
>>
>> On Mon, Mar 1, 2010 at 4:51 AM, Michael Lawrence
>> <lawrence.michael at gene.com> wrote:
>> >
>> >
>> > On Fri, Feb 26, 2010 at 10:08 PM, Deepayan Sarkar
>> > <deepayan.sarkar at gmail.com> wrote:
>> >>
>> >> On Fri, Feb 26, 2010 at 9:42 PM, Michael Lawrence
>> >> <lawrence.michael at gene.com> wrote:
>> >> > I'll have to look into this. All of the type conversions were
>> >> > rewritten.
>> >> > It's likely that many things are broken.
>> >>
>> >> Here's a different one with enums--some are there, some are not:
>> >>
>> >> > Qt$QTextCursor$NoMove
>> >> NoMove
>> >>     0
>> >> attr(,"class")
>> >> [1] "QtEnum"
>> >> > Qt$QTextCursor$Start
>> >> NULL
>> >> > Qt$QTextCursor$Up
>> >> NULL
>> >>
>> >
>> > This one I'm having trouble reproducing. Could you please paste the
>> > complete
>> > code?
>>
>> That's basically it. I get
>>
>> $ R
>> [...]
>> > library(qtbase)
>> > Qt$QTextCursor$NoMove
>> NoMove
>>     0
>> attr(,"class")
>> [1] "QtEnum"
>> > Qt$QTextCursor$Start
>> NULL
>>
>> For the full list at
>> http://doc.trolltech.com/4.5/qtextcursor.html#MoveOperation-enum
>>
>> > sapply(list(Qt$QTextCursor$NoMove,
>> +             Qt$QTextCursor$Start,
>> +             Qt$QTextCursor$StartOfLine,
>> +             Qt$QTextCursor$StartOfBlock,
>> +             Qt$QTextCursor$StartOfWord,
>> +             Qt$QTextCursor$PreviousBlock,
>> +             Qt$QTextCursor$PreviousCharacter,
>> +             Qt$QTextCursor$PreviousWord,
>> +             Qt$QTextCursor$Up,
>> +             Qt$QTextCursor$Left,
>> +             Qt$QTextCursor$WordLeft,
>> +             Qt$QTextCursor$End,
>> +             Qt$QTextCursor$EndOfLine,
>> +             Qt$QTextCursor$EndOfWord,
>> +             Qt$QTextCursor$EndOfBlock,
>> +             Qt$QTextCursor$NextBlock,
>> +             Qt$QTextCursor$NextCharacter,
>> +             Qt$QTextCursor$NextWord,
>> +             Qt$QTextCursor$Down,
>> +             Qt$QTextCursor$Right,
>> +             Qt$QTextCursor$WordRight,
>> +             Qt$QTextCursor$NextCell,
>> +             Qt$QTextCursor$PreviousCell,
>> +             Qt$QTextCursor$NextRow,
>> +             Qt$QTextCursor$PreviousRow),
>> +        is.null)
>>  [1] FALSE  TRUE  TRUE  TRUE  TRUE FALSE FALSE FALSE  TRUE FALSE  TRUE
>> FALSE
>> [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE  TRUE  TRUE FALSE FALSE
>> FALSE
>> [25] FALSE
>>
>> I haven't tried, but presumably similar things happen for other enums.
>>
>
> Ok, so just for the record, I get:
>
>> ls(attr(Qt$QTextCursor, "env"))
>  [1] "BlockUnderCursor"  "Document"          "Down"
>  [4] "End"               "EndOfBlock"        "EndOfLine"
>  [7] "EndOfWord"         "KeepAnchor"        "Left"
> [10] "LineUnderCursor"   "MoveAnchor"        "NextBlock"
> [13] "NextCell"          "NextCharacter"     "NextRow"
> [16] "NextWord"          "NoMove"            "PreviousBlock"
> [19] "PreviousCell"      "PreviousCharacter" "PreviousRow"
> [22] "PreviousWord"      "Right"             "Start"
> [25] "StartOfBlock"      "StartOfLine"       "StartOfWord"
> [28] "Up"                "WordLeft"          "WordRight"
> [31] "WordUnderCursor"
>
> I'll check-in my changes, and let you know to try again, just so we're on
> the same page.

svn up had some updates, and installing it now gives me the same list.

However, now I reliably get

> Qt$QRectF(0, 0, 100, 100) ## or qrect(0, 0, 100, 100)
Error in assign(enum, structure(enums[enum], class = "QtEnum"), env) :
  attempt to use zero-length variable name

-Deepayan


More information about the Qtinterfaces-devel mailing list