Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QHelpEngine usage
Qt 6.11 is out! See what's new in the release blog

QHelpEngine usage

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iw2lsi
    wrote on last edited by
    #1

    Hi all

    I'm trying to access my assistant-based user manual from the application itself using QHelpEngine ad I have some question:

    is it normal that opening a non-existing compressed file does not return any errors ?

    QHelpEngine* helpEngine = new QHelpEngine("missingfile.qhc", this);
    if (!helpEngine->setupData()) qDebug("last error: '%s'", qPrintable(helpEngine->error()));

    I spent a lot of time trying to get references for identifiers...

    links = helpEngine->linksForIdentifier(QLatin1String("mykeyword"));
    return no reference UNTIL you add in your in your .qhp file the id attribute...
    <keyword name="Index" id="Index" ref="./index.html"/>
    but I found nothing in the docs about it...

         Best Regards
    
                Giampaolo
    
    1 Reply Last reply
    0
    • I Offline
      I Offline
      iw2lsi
      wrote on last edited by
      #2

      Sorry... I'm still here with QFileEngine...

      anyone has succesfully retrieved from the QHelpEngine more than one item (url) for a key with the linksForIdentifier() method ?

      actually with QHelpEngine I always obtain zero or one items... but never more than one, while with the same search key (and compressed help file) in Qt Assistant I get more entries...

        thanks for any idea
      
             Giampaolo
      
      1 Reply Last reply
      0
      • I Offline
        I Offline
        iw2lsi
        wrote on last edited by
        #3

        problem solved after some hours of headache...

        but... it was all in the docs :D

              Giampaolo
        
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved