Starting with Qt Creator 4.2.1 and later, the documentation for Qt 4.8 looks like this:


The Qt 5.8 documentation is fine:


On an older version of Qt Creator, everything is fine with both documentation.

Has anyone encountered this problem? Maybe somewhere you can download the corrected documentation files? Or somehow collect * .qch files via qhelpgenerator?

    1 answer 1

    The root of this problem is in QTextEdit . Namely, in the bug that appeared in Qt 5.7 version. The essence of the bug is that QTextEdit not properly handle the line-height .

    There are two solutions:

    Simple: Wait for Qt 5.10 release.
    This bug was fixed there. Accordingly, in the Qt Creator version compiled with Qt 5.10 there will be no problems.


    Complicated: Rebuild documentation manually.

    Under Linux I was helped by the following steps:

    1. Open the file /usr/share/qt4/doc/html/style/offline.css .
    2. Replace all lines line-height: <число> ; at line-height: <число>em .
    3. Go to /usr/share/qt4/doc/html/ .
    4. sudo qhelpgenerator qt.qhp -o ../qt.qch .
    5. Restart Qt Creator.

    Now the qt.qch file has appeared in the /usr/share/qt4/doc/ qt.qch , which Qt Creator automatically qt.qch up. For order, you can move it to the qch folder

    Theoretically, the same can be done under windows, but for some reason in Qt 4.8 for windows there is no qt.qhp file and I do not know where to get it.

    Result: Success!