[Qt-interest] Using QHelpEngine with compiled in recources

Christoph Fauck christoph.fauck at fauck.com
Wed May 12 22:10:44 CEST 2010


Hi all.

I want to use QHelpEngine with compiled in recources.

        QHelpEngine ( ":/hlp/hlp/hlpCollection.qhc" ); 
        QHelpEngine->setupData();

tells me:  Cannot open collection file: :/hlp/hlp/hlpCollection.qhc"

By using an absoluteley path within my file system QHelpEngine works fine.

With

        QFile ( ":/hlp/hlp/hlpCollection.qhc" ); 

I can open, read and show the content of the qhc file. 

        QFileInfo QFileInfo_test ( ":/hlp/hlp/hlpCollection.qhc" );
                        
        qDebug() << QFileInfo_test.baseName();
        qDebug() << QFileInfo_test.fileName();
        qDebug() << QFileInfo_test.filePath();
        qDebug() << QFileInfo_test.exists();

Shows me correct information. The file exists.

Any help for me, please?

Tanks and regards,
Christoph



More information about the Qt-interest-old mailing list