[Interest] HTML5 canvas support?

Jonathan Greig redteam316 at gmail.com
Sun Jun 24 14:09:33 CEST 2012


Jason,
I think it's cool. I would have been nice if you had at least included the
private files needed, but I hunted them down and got it working;) I'm
trying to build Qt remotely on a web server so I can try to use it for CGI
scripts so maybe your concept will come in handy.

I'm not very familiar with some of Qt's web capabilities but wouldn't it
make more sense to generate actual html checkboxes and radiobuttons for
some of that? I can see some interesting uses for the canvas but was
wondering if there is anything else that does say an entire html page
layout? Is this uncharted territory or can Qt already do this?

Your license is a little odd. Why don't you just include your email in the
files and state that your releasing the code into the public domain or just
use the zlib license: http://www.gzip.org/zlib/zlib_license.html

Sorry for such a delayed response on this. I have been busy but knew I
would come back to this to check it out. Luckily my memory served me well
and found your post. Good job nonetheless, I will study and play around
with it some more later this week.

On Thu, Mar 29, 2012 at 2:50 PM, Jason H <scorp1us at yahoo.com> wrote:

> No one else thought this was cool?
>
>   ------------------------------
> *From:* Jason H <scorp1us at yahoo.com>
> *To:* Interests Qt <interest at qt-project.org>
> *Sent:* Wednesday, March 28, 2012 2:24 PM
> *Subject:* [Interest] HTML5 canvas support?
>
>
>
> I think we should be able to paint to a HTML5 canvas.
>
> I created the attached PoC, modeled after QPicture. See main.cpp for an
> example.
>
>
> The code is released with the following license:
>
> USE: Use at your own risk. Use it as you wish with no warranties or
> fitness expressed or implied.
> COPYING/DISTRIBUTION: Don't claim the original code is yours, that would
> be wrong. Please attribute the original code to me. (It's a resume thing)
> It is your responsibility to put my email address in the file headers. You
> may use the code in Open and Closed Source projects, and assign what ever
> license and copyright as you wish. I don't assert any copyright, just
> credit.
>
> Details:
> The rendering is "pretty good" I've noticed fonts are not pixel-perfect
> but pretty close. The HTML5 canvas system (at least in FireFox) needs a
> 0.5px offset to generate a line properly, so things may be a tad off.
>
> If you browser supports HTML I'm attaching sample output. (123.html)
>
> I'd love to see how you use this. Feel free to show me.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120624/3d98fab8/attachment.html>


More information about the Interest mailing list