Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Obtaining tool tips from Qt Help File
Forum Updated to NodeBB v4.3 + New Features

Obtaining tool tips from Qt Help File

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.6k Views 1 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
    rturrentine
    wrote on last edited by
    #1

    I would like all of my help documentation to be contained with my Qt help file(s). I have someone else writing the content. How can I extract the tool tips from it?

    I would store all of the tool tips in tooltips.html. For each tip, I could have a tagged anchor or div section with a unique id or something to identify it. The code would use this id to find the tool tip in the html file and set it on the widget.

    I'm just not sure how to get the data from the help file.

    Any suggestions?

    Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Did you see the QtHelp module docs?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rturrentine
        wrote on last edited by
        #3

        Yes I see the QtHelp docs. I see I can get the file data for the toolstips.html file but I'm not how to parse the data to get the html for the particular id I want. I guess I could put each tool tip in its own html file but that seems a little much.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          It's up to you to structure the html file in away that you can extract the snippet you need. The easiest way would certainly a singel file for every tool tip.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rturrentine
            wrote on last edited by
            #5

            The more I think about it, it's probably best to do one file per tool tip.

            Thanks for the replies.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              Another option would be small text files that you put into a resource file (.qrc). Either make one resource file for each language or make a subdirectory for each language.

              http://www.catb.org/~esr/faqs/smart-questions.html

              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