Results 1 to 1 of 1

Thread: Qt 4.4.0 Help Module : Search not working

  1. #1
    Join Date
    Oct 2006
    Location
    Bangalore
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Qt 4.4.0 Help Module : Search not working

    Hi,

    I am working on Qt4.4.0's help module.
    I am creating help for my application using .qhc file and QHelpEngine and other classes provided by qt help module.

    "Index" tab works properly and I am displaying html/url in the textbrowser when a link is clicked in HelpIndexWidget.

    But I am not able use the search feature. I have done following to achieve the search.

    1.
    Qt Code:
    1. helpSearchEngine = helpEngine->searchEngine();
    To copy to clipboard, switch view to plain text mode 

    And I have used helpSearchEngine's query widget and result widgets to show the search query and results in a docked tab.

    2. Made follwoing connection

    Qt Code:
    1. connect(helpSearchEngine->queryWidget(), SIGNAL(search()),
    2. this, SLOT(slotSendQuery()));
    To copy to clipboard, switch view to plain text mode 

    Note : search signal is emitted when one enters the search string and hits search button.

    slotSendQuery looks like this:
    This function passes this query list to helpSeachEngine's search function where actual search happens.

    Qt Code:
    1. void slotSendQuery
    2. {
    3. QList<QHelpSearchQuery> queryList = helpSearchEngine->queryWidget()->query();
    4. helpSearchEngine->search(queryList);
    5. }
    To copy to clipboard, switch view to plain text mode 

    But, the number of hits after search of helpseachengine is returned is always zero.
    I debugged to make sure that search function of helpSearchEngine is getting correct help collection file.

    Is there anything else to be done to implement this search feature in qt help module?

    Have anyone worked on Qt Help Module yet???
    Please respond.

    Thanks.
    Last edited by jpn; 23rd May 2008 at 12:09. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.