[RQt-devel] "[[" method

Deepayan Sarkar deepayan.sarkar at gmail.com
Fri Sep 17 10:06:22 CEST 2010


Currently:

> Qt$QPrinter$Letter
Enum value: Letter (2)
> Qt$QPrinter[["Letter"]]
Error in Qt$QPrinter[["Letter"]] :
  object of type 'closure' is not subsettable

Any reason not to define

`[[.RQtClass` <- function(x, name)
{
    attr(x, "env")[[name]]
}

?

-Deepayan


More information about the Qtinterfaces-devel mailing list