[Qt-embedded-interest] Graphics Driver
Bryce Salmi
Bryce.Salmi at zoran.com
Fri Jul 10 22:41:15 CEST 2009
Tom,
That helped but I did discover that the stream does not stay open due to the scope. Therefore the compiler complains if I try to write to the screen in the blit member function and solidFill memberfunction:
i.e.
write(vopuscreenFd, img.bits(), img.size());
will cause a compile error due to not being declared in the scope. I would like to open the stream and set the pointer to the bits() outside of the member functions but inside the class, I believe this is valid but any pointers? no pun intended :)
Bryce
-----Original Message-----
From: qt-embedded-interest-bounces at trolltech.com on behalf of Tom Cooksey
Sent: Fri 7/10/2009 8:17 AM
To: qt-embedded-interest at trolltech.com
Subject: Re: [Qt-embedded-interest] Graphics Driver
> Qt list,
>
> I seem to have a reoccuring problem when compiling the QImage
> (it happened before when I was playing around with the driver). I
> am not sure but it seems to have something to do with the "new"
> function which if my research is correct is much like malloc in C.
> I am still fairly new to C++ (but came from a decent background in
> C) so it may be an easy fix. When compiling I get the following
> error:
>
> vopuScreenDriver.cpp: In member function 'bool
> vopuScreenDriver::connect()': vopuScreenDriver.cpp:37: error:
> invalid conversion from 'QImage*' to 'int'
gcc is giving you a pretty big hint here! :-) vopuimage's type is int
and you're trying to assign a QImage* to it. As C++ (and C) is type-
safe, this is a compiler error. Try making vopuimage a QImage*.
Cheers,
Tom
_______________________________________________
Qt-embedded-interest mailing list
Qt-embedded-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-embedded-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090710/92b72cbf/attachment.html
More information about the Qt-embedded-interest
mailing list