Results 1 to 4 of 4

Thread: Problem with SDK 1.2 (Qt 4.8) and QtHelp

  1. #1
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem with SDK 1.2 (Qt 4.8) and QtHelp

    Hi,

    I was wondering whether someone had upgraded to SDK 1.2 (i.e. Qt 4.8.0) and uses QtHelp (together with QtWebKit and sqlite) for their software's help?

    My project's help used to work fine with Qt 4.7.4, but though the help still shows up on Windows using Qt 4.8.0, it uses a different font (!!). Then, the help just doesn't show up on neither both Linux nor Mac OS X.

    I checked the .qch file in Qt Assistant and it's fine on all three platforms, so I am not quite sure what's going wrong here. Any idea? Could it be a conflict of Qt versions?

    Cheers, Alan.

    PS: I also noticed that on Linux, QtWebKit has a version of 4.9.0 rather than 4.8.0 as is the case for the other Qt libraries, meaning that I had to customise my packaging script for QtWebKit...!

  2. #2
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with SDK 1.2 (Qt 4.8) and QtHelp

    Ok, after some further tests, the culprit is QtWebKit. If I replace the 4.9.0 version of QtWebKit with the 4.7.4 version, then my application works exactly as expected on both Windows and Linux. I can't tell for Mac OS X, since things work a bit differently with the bundle and I can't be bothered to faff around just to test QtWebKit on that platform.

    Now, I can't imagine that this issue hasn't been observed before, so...?!

  3. #3
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with SDK 1.2 (Qt 4.8) and QtHelp

    File a bug report.
    I far as I know changes in Qt 4.8 are quite extensive so definitely they could broke something.
    For details see here.

  4. #4
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with SDK 1.2 (Qt 4.8) and QtHelp

    Ok, I have got it! I used to have a CSS file which included another CSS file:

    Qt Code:
    1. @import url("../../res/common.css");
    To copy to clipboard, switch view to plain text mode 
    It used to work fine with the version of QtWebKit in Qt 4.7.4, but not with the one in Qt 4.8.0. It would seem that QtWebKit doesn’t like the use of relative paths in CSS import files anymore (?). So, instead, I had to use:

    Qt Code:
    1. @import url("/doc/res/common.css");
    To copy to clipboard, switch view to plain text mode 
    with doc being the virtual folder in my Qt help file. Otherwise, I want to be able to use my CSS file both within a web page and a Qt help page, so I now have:

    Qt Code:
    1. @import url("../../res/common.css");
    2. @import url("/doc/res/common.css");
    To copy to clipboard, switch view to plain text mode 
    With the first import being required to get things to work on a web page and the second import on a Qt help page. I really wish I didn't have to do that, but...
    Last edited by agarny; 3rd February 2012 at 16:31.

Similar Threads

  1. qtHelp namespaces
    By winkle99 in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2010, 01:32
  2. QtHelp Module - registering compressed help file gives error
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2008, 15:14
  3. QtHelp
    By WinchellChung in forum General Discussion
    Replies: 5
    Last Post: 14th May 2008, 23:46

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.