Assistant won't display short htmls. Why? Is that a bug?
Hi. Came across strange issue. I have html page, created .qhp, .qch, .qhcp and .qhc files as usuall, but Assistant haven't displayed that page when I cliced on corresponding leaf in tree structure of assistant. After further testing where the problem could be, I figured out, that the problem is in length of html page. This test page:
Code:
<html>
<h1>Test</h1>
Test
</html>
will not get displayed. Neither this one:
Code:
<html>
<h1>Test</h1>
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTest
</html>
But after adding another character behind last "Test" the page is suddently displayed correctly. Anybody have some idea why is that? Is that a bug? I want to create really short help page telling what happens when user click Exit in my app.
Re: Assistant won't display short htmls. Why? Is that a bug?
What happens if you wrap the content in <body> tags?
Re: Assistant won't display short htmls. Why? Is that a bug?
The same thing. Only shortens page content which causes the error a bit
Code:
<html>
<body>
<h1>Test</h1>
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
TestTestTestTestTestT
</body>
</html>
not being displayed, +1 character displayed correctly
Re: Assistant won't display short htmls. Why? Is that a bug?
So? Anyone some advice? Or there's nothing to be done?
Re: Assistant won't display short htmls. Why? Is that a bug?
Still anyone? :( Besides of this strange behavior, I found very hard to make assistant do what I want to do.
Re: Assistant won't display short htmls. Why? Is that a bug?
Are you using the webkit backend for assistant or the text browser backend?
Re: Assistant won't display short htmls. Why? Is that a bug?
Neither one? Im using set of html pages on hard-drive loaded via <files></files> element in help.qhp file. Doing nothing programatically with anything so far, just calling assistant from terminal
Re: Assistant won't display short htmls. Why? Is that a bug?
Quote:
Originally Posted by
Raadush
Neither one?
You have to be using one of the two :) My question is about how your assistantclient library was compiled. See if it depends on webkit or not.
Re: Assistant won't display short htmls. Why? Is that a bug?
Yes, depends on libQtWebKit
Re: Assistant won't display short htmls. Why? Is that a bug?
Does it work if you display the same content on QWebView?
Re: Assistant won't display short htmls. Why? Is that a bug?
Created:
Code:
QWebView view;
file.close();
view.setHtml(string);
view.show();
with test.htm looking:
Code:
<html>
<body>
<h1>Test</h1>
T
</body>
</html>
Everything looks fine, QWebView displayed page correctly