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. [SOLVED] File standard system editor

[SOLVED] File standard system editor

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.1k Views
  • 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 Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        Anticross
        wrote on last edited by
        #3

        Thanks, Gerolf it's helped.

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

          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
          0

          • Login

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