patrik08
27th November 2006, 19:34
qtdoc say....
bool QResource::registerResource ( const QString & rccFileName, const QString & mapRoot = QString() ) [static]
Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.
See also unregisterResource().
all my rccFileName is already register .... but how i can append new QResource on run application?
is this the same method as rcc source code?
On qtextedit (Qt::RichText) i can display only image from resource? is this normal?
full path not running?
this give only false on not register...
void Base_Function::RegisterImage( QString infile )
{
QResource newfileappender; /* infile is absolutePath */
bool makehits;
makehits = newfileappender.registerResource(infile, ":/pic/");
if (makehits) {
qDebug() << "### register true " << infile;
} else {
qDebug() << "### register false " << infile;
}
}
bool QResource::registerResource ( const QString & rccFileName, const QString & mapRoot = QString() ) [static]
Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.
See also unregisterResource().
all my rccFileName is already register .... but how i can append new QResource on run application?
is this the same method as rcc source code?
On qtextedit (Qt::RichText) i can display only image from resource? is this normal?
full path not running?
this give only false on not register...
void Base_Function::RegisterImage( QString infile )
{
QResource newfileappender; /* infile is absolutePath */
bool makehits;
makehits = newfileappender.registerResource(infile, ":/pic/");
if (makehits) {
qDebug() << "### register true " << infile;
} else {
qDebug() << "### register false " << infile;
}
}