Results 1 to 11 of 11

Thread: Assistant won't display short htmls. Why? Is that a bug?

  1. #1
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default 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:

    Qt Code:
    1. <html>
    2. <h1>Test</h1>
    3. Test
    4. </html>
    To copy to clipboard, switch view to plain text mode 

    will not get displayed. Neither this one:

    Qt Code:
    1. <html>
    2. <h1>Test</h1>
    3. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    4. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    5. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    6. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    7. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    8. TestTestTestTestTestTestTestTestTest
    9. </html>
    To copy to clipboard, switch view to plain text mode 

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    What happens if you wrap the content in <body> tags?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default 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

    Qt Code:
    1. <html>
    2. <body>
    3. <h1>Test</h1>
    4. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    5. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    6. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    7. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    8. TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest
    9. TestTestTestTestTestT
    10. </body>
    11. </html>
    To copy to clipboard, switch view to plain text mode 

    not being displayed, +1 character displayed correctly

  4. #4
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    So? Anyone some advice? Or there's nothing to be done?

  5. #5
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default 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.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default 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

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    Quote Originally Posted by Raadush View Post
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    Yes, depends on libQtWebKit

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    Does it work if you display the same content on QWebView?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Apr 2012
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Re: Assistant won't display short htmls. Why? Is that a bug?

    Created:
    Qt Code:
    1. QWebView view;
    2. QFile file("test.htm");
    3. file.open(QIODevice::ReadOnly | QIODevice::Text);
    4. QString string = file.readAll();
    5. file.close();
    6. view.setHtml(string);
    7. view.show();
    To copy to clipboard, switch view to plain text mode 

    with test.htm looking:

    Qt Code:
    1. <html>
    2. <body>
    3. <h1>Test</h1>
    4. T
    5. </body>
    6. </html>
    To copy to clipboard, switch view to plain text mode 

    Everything looks fine, QWebView displayed page correctly

Similar Threads

  1. Cant make assistant display page using -showUrl
    By philp in forum Qt Programming
    Replies: 0
    Last Post: 29th June 2012, 16:54
  2. Qt Assistant Deployment doesn't display gif/jpg images
    By waterstw in forum Installation and Deployment
    Replies: 0
    Last Post: 25th October 2011, 15:55
  3. Qt 4.6.2 Assistant fails to display
    By bcastalia in forum Installation and Deployment
    Replies: 1
    Last Post: 5th May 2010, 05:14
  4. Replies: 0
    Last Post: 9th April 2009, 06:35
  5. Using Short cut keys
    By joseph in forum Qt Programming
    Replies: 14
    Last Post: 18th March 2008, 19:34

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.