Ralf Van Bogaert
unread,Apr 15, 2012, 3:39:11 AM4/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lqt-bi...@googlegroups.com
Hi,
Sorry to spam the list but I'm having many questions lately.
I'm working on a program that works with image files to make slideshows with.
I use a QListView to show thumbnails. The problem is speed.
To alleviate this, I need to create thumbnails for every image. Since these are small, I'd like to store them in an qslite database, if possible.
In the Qt docs, the following method is presented;
QImage image;
QByteArray ba;
QBuffer buffer (&ba)
buffer.open(QIODevice::WriteOnly)
image.save(&buffer, 'PNG');
This would save the image as a PNG file.
But the problem is, I can't create an QByteArray since the class is not in lqt.
In some instances I can create QByteArrays, for example when converting from a QVariant.
Is it somehow possible to create a QByteArray object?
Regards
Ralf