<div dir="ltr"><div><div><div>I played around the examples a little and found the workarounds:<br><br></div>1. qt-conv, call (make-qapplication) BEFORE using QApplication. that works perfectly.<br><br></div>2. tutorial-14, replace (* 90 16) with 1440 and it just worked. Weird! I'll look into this later.<br>
<br></div>- Rujia<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 11, 2013 at 11:11 AM, Rujia Liu <span dir="ltr"><<a href="mailto:rujia.liu@gmail.com" target="_blank">rujia.liu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Dear all,<br><br></div>I've just successfully installed CommonQt on Windows XP, and is able to run both qt-conv and tutorial-14. However, I have two questions.<br>
<br></div>1. In qt-conv example, if I run (main t) instead of (main), I got "Class not found: QApplication" error. But when i type (find-qclass "QApplication" t) in REPL, i got 1796.<br><br></div>2. in tutorial-14 example, I had to comment out two lines:<br>
;(with-objects ((rect (#_new QRect -35 -35 70 70)))<br> ; (#_drawPie painter rect 0 (* 90 16)))<br><br></div>Otherwise I'll get:<br>#<THREAD "main thread" RUNNING {23DA8A69}>:<br> No applicable method drawPie found on #<QPainter 0x021705D0> with arguments (#<br>
<QRect 0x02174AB8><br> 0<br><br> (<br>*<br><br>90<br><br>16))<br>
<br></div>I'm using Qt 4.8.5 library for vs2008 and compiled smokegen/smokeqt with vs2008 express (without SP1)<br><br></div>I used quicklisp to install commonqt yesterday, and is running qt-conv this way (ommited the output of the first 2 commands):<br>
<br></div>E:\>sbcl<br>* (require 'qt)<br>* (load "qt-conv.lisp")<br>* (qt-conv:main t)<br><br>debugger invoked on a SIMPLE-ERROR in thread<br>#<THREAD "main thread" RUNNING {23DA8A69}>:<br>
Class not found: QApplication<br><br>Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.<br><br>restarts (invokable by number or by possibly-abbreviated name):<br> 0: [ABORT] Exit debugger, returning to top level.<br>
<br>(QT:FIND-QCLASS "QApplication" T)<br>0] 0<br><br>* (qt-conv:main) ;; then no error occurred. qt-conv will run perfectly<br><br></div>Thanks in advance!<span class="HOEnZb"><font color="#888888"><br><br></font></span></div>
<span class="HOEnZb"><font color="#888888">- Rujia<br><br><div><div><div><div><br></div>
</div></div></div></font></span></div>
</blockquote></div><br></div>