[commonqt-devel] Re: Question abot CommonQt examples

Rujia Liu rujia.liu at gmail.com
Wed Sep 11 03:57:20 UTC 2013


I played around the examples a little and found the workarounds:

1. qt-conv, call (make-qapplication) BEFORE using QApplication. that works
perfectly.

2. tutorial-14, replace (* 90 16) with 1440 and it just worked. Weird! I'll
look into this later.

- Rujia



On Wed, Sep 11, 2013 at 11:11 AM, Rujia Liu <rujia.liu at gmail.com> wrote:

> Dear all,
>
> 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.
>
> 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.
>
> 2. in tutorial-14 example, I had to comment out two lines:
>   ;(with-objects ((rect (#_new QRect -35 -35 70 70)))
>   ;  (#_drawPie painter rect 0 (* 90 16)))
>
> Otherwise I'll get:
> #<THREAD "main thread" RUNNING {23DA8A69}>:
>   No applicable method drawPie found on #<QPainter 0x021705D0> with
> arguments (#
> <QRect 0x02174AB8>
>
> 0
>
>
> (
> *
>
> 90
>
> 16))
>
> I'm using Qt 4.8.5 library for vs2008 and compiled smokegen/smokeqt with
> vs2008 express (without SP1)
>
> I used quicklisp to install commonqt yesterday, and is running qt-conv
> this way (ommited the output of the first 2 commands):
>
> E:\>sbcl
> * (require 'qt)
> * (load "qt-conv.lisp")
> * (qt-conv:main t)
>
> debugger invoked on a SIMPLE-ERROR in thread
> #<THREAD "main thread" RUNNING {23DA8A69}>:
>   Class not found: QApplication
>
> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>   0: [ABORT] Exit debugger, returning to top level.
>
> (QT:FIND-QCLASS "QApplication" T)
> 0] 0
>
> * (qt-conv:main) ;; then no error occurred. qt-conv will run perfectly
>
> Thanks in advance!
>
> - Rujia
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/commonqt-devel/attachments/20130911/cd9eca66/attachment.html>


More information about the commonqt-devel mailing list