Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] File standard system editor

    General and Desktop
    3
    4
    1931
    Loading More Posts
    • 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.
    • A
      Anticross last edited by

      I have some doc file with description of my program and I need to open it as standard help by pressing F1 key. I understand that I must start some process which opens my file. But I don't know standard editor for doc-type files. So in Windows it can be MS Word or Wordpad in Linux - Open Office Writer. The question is: How to get the path of standard editor of my file ?

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        you could use "QDesktopServices::openUrl":http://doc.qt.nokia.com/latest/qdesktopservices.html#openUrl to achieve this

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply Reply Quote 0
        • A
          Anticross last edited by

          Thanks, Gerolf it's helped.

          1 Reply Last reply Reply Quote 0
          • G
            goetz last edited by

            You can also include the "help framework":http://developer.qt.nokia.com/doc/qt-4.7/qthelp-framework.html that's provided by Qt. You can find a simple example "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-helpsystem.html

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post