Alex Snet
26th April 2009, 16:54
Hi 2 all.
Please, help.
How I can convert QIcon to BASE64?
UPD
I make it in thread. And QPixmap says that it is not save to use it outside GUI thread.
"QPixmap: It is not safe to use pixmaps outside the GUI thread"
How?
this is a piece of my code:
QDir dir( path );
QFileIconProvider icon;
foreach (QFileInfo rootDir, dir.entryInfoList() )
{
QIcon ico = icon.icon( rootDir );
}
I make a threaded media-server and I will paste Icons of files to web interface. How I can do this?
UPD 2
Or how I can save QIcon to file?
Please, help.
How I can convert QIcon to BASE64?
UPD
I make it in thread. And QPixmap says that it is not save to use it outside GUI thread.
"QPixmap: It is not safe to use pixmaps outside the GUI thread"
How?
this is a piece of my code:
QDir dir( path );
QFileIconProvider icon;
foreach (QFileInfo rootDir, dir.entryInfoList() )
{
QIcon ico = icon.icon( rootDir );
}
I make a threaded media-server and I will paste Icons of files to web interface. How I can do this?
UPD 2
Or how I can save QIcon to file?