Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling of .qch document #47

Open
szotsaki opened this issue May 29, 2017 · 7 comments
Open

Styling of .qch document #47

szotsaki opened this issue May 29, 2017 · 7 comments

Comments

@szotsaki
Copy link

The styling of the latest qch book (20170409.tar.gz) is missing under Qt Creator 4.2 and 4.3.

Please, take a look at the attached screenshot:

image

@p12tic
Copy link
Owner

p12tic commented Jun 2, 2017

Thanks, I was able to reproduce this too. Not sure how such an error got into release...

@estan
Copy link

estan commented Oct 7, 2017

When QtWebkit was deprecated, Qt Creator switched to using QTextBrowser for the help browser by default, which only supports a very limited HTML/CSS (http://doc.qt.io/qt-5/richtext-html-subset.html). It will still use QtWebkit if available when building Qt Creator I think, but the official binaries do not.

For the cppreference qch to look good with this, someone would have to write a special CSS that takes the limited capability of QTextBrowser into account. I'm not sure how feasible that is.

@andoks
Copy link

andoks commented May 8, 2018

This problem is registered in the Qt issue tracker here

@p12tic
Copy link
Owner

p12tic commented May 8, 2018

The fix for this issue is in progress. QTextBrowser does not support <style> tags, but it supports style attributes. We're currently looking into using premailer project to transfer this information around.

@PeterFeicht
Copy link
Contributor

Should this be closed or are there still issues with the QCH archive?

@p12tic
Copy link
Owner

p12tic commented Oct 20, 2018

It's readable right now, but there are still some visual issues that need fixing.

@ilyapopov
Copy link

QtCreator 4.11 introduced a new help rendering backend which looks better than the old one, see #79 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants