Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

ExamplesPath wrong in Qt-5.4\help



  • I had to change in file
    C:\Qt\Examples\Qt-5.4\help\contextsensitivehelp\helpbrowser.cpp

    From:
    //QString collectionFile = QLibraryInfo::location(QLibraryInfo::ExamplesPath)
    // + QLatin1String("/help/contextsensitivehelp/docs/wateringmachine.qhc");

    To:
    QString collectionFile = "C:/Qt/Examples/Qt-5.4/help/contextsensitivehelp/docs/wateringmachine.qhc";

    Because it searched for
    C:\Qt\5.4\mingw491_32\examples\help\contextsensitivehelp\docs\wateringmachine.qhc

    I am using Windows 7 32-bit


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    It's not really an error per se as the examples where located in the same folder as Qt's install however it looks like with the SDK it has changed a bit.

    You should go to the bug report system and check it's something known. If not please consider opening a new report about it



  • Thanks!

    It seems to be an old unresolved bug. I posted on:
    https://bugreports.qt.io/browse/QTBUG-34127