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...

Qt Code:
  1. void Base_Function::RegisterImage( QString infile )
  2. {
  3. QResource newfileappender; /* infile is absolutePath */
  4. bool makehits;
  5. makehits = newfileappender.registerResource(infile, ":/pic/");
  6. if (makehits) {
  7. qDebug() << "### register true " << infile;
  8. } else {
  9. qDebug() << "### register false " << infile;
  10. }
  11. }
To copy to clipboard, switch view to plain text mode