Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Assistant html style issue
Forum Updated to NodeBB v4.3 + New Features

Assistant html style issue

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 772 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robin26
    wrote on last edited by
    #1

    Hi,

    (First time poster, used Qt4 a lot but never Qt5.)

    I use the Qt 4.8.5 Assistant to display my help. I'm trying to update to the Qt 5.7.0 Assistant.

    My docs are written in html and include a lot of my own styling. e.g.

    <html>
    <style type="text/css" media="screen">
    h1 {
      margin:0 0 0.6em  0;
      line-height: 1.2em;
      max-width: 900px;
      font-weight: bold;
      font-size: 2em;
      letter-spacing: 1px;
    }
    ...
    </style>
    ...
    

    This all worked fine in the Qt 4.8.5 Assistant, but seems to get ignored in the Qt 5.7.0 Assistant. Is that expected?

    A quick look at the source suggests that the older Assistant subclasses QWebView by default:

    #if !defined(QT_NO_WEBKIT)
    class HelpViewer : public QWebView
    #else
    class HelpViewer : public QTextBrowser
    #endif
    

    The newer Assistant subclasses QTextBrowser by default:

    #if defined(BROWSER_QTWEBKIT)
    class HelpViewer : public QWebView
    #elif defined(BROWSER_QTEXTBROWSER)
    class HelpViewer : public QTextBrowser
    #endif
    

    Is this change to blame?

    From what I can see QWebView is now gone from the SDK. Would it be easy to migrate to the new code? If not, I think I'm safest to just switch back to Qt 5.5, which I believe includes QWebView.

    Thanks,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Yes, QTextBrowser is less featured rendering wise that QtWebKit or even QtWebEngine. QtWebKit has been deprecated in Qt 5.5 and removed since 5.6. If you need QtWebKit, you can still build the module from sources, it's available.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved