<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 5:56 AM, Deepayan Sarkar <span dir="ltr">&lt;<a href="mailto:deepayan.sarkar@gmail.com">deepayan.sarkar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi (Michael, mostly),<br>
<br>
I&#39;m at the stage where I&#39;m happy with updates to qtutils, which is<br>
basically all R code, using signals etc.<br>
<br>
My next target is qtdevices, i.e., a traditional R graphics device<br>
using QGraphicsScene. Is this feasible at this point? I&#39;ve checked in<br>
a few relevant questions in qtbase/questions.txt, the first couple of<br>
which would help me plan my next steps:<br>
<br>
<br>
 o Can we use user-written classes (defined in C++) from R yet? e.g.,<br>
   RSyntaxHighlighter<br>
<br></blockquote><div><br>Yes, this is possible. Check out, for example, the class wizard demo. <br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

 o Related question: Let&#39;s say I want to manipulate a QWidget in<br>
   native code; e.g.<br>
<br>
   In R:<br>
<br>
      edit &lt;- Qt$QTextEdit()<br>
<br>
   The in C++:<br>
<br>
      QTextEdit *editor = getPointer(edit);<br>
      RSyntaxHighlighter *highlighter =<br>
          new RSyntaxHighlighter(editor-&gt;document());<br>
<br>
   unwrapQWidget() doesn&#39;t work obviously, as it uses the old model.<br>
   What would be the equivalent in the new world?  If this is<br>
   available, then we probably get some flexibility in using both the<br>
   old and new models together, even if we can&#39;t easily make new C++<br>
   classes available in R.<br>
<br>
<br></blockquote><div><br>This would be unwrapSmoke().<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Any thoughts?<br>
<br>
-Deepayan<br>
_______________________________________________<br>
Qtinterfaces-devel mailing list<br>
<a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
</blockquote></div><br>