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]open TXT files in a text editor different from the default text editor
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]open TXT files in a text editor different from the default text editor

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k 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.
  • A Offline
    A Offline
    AbdelAli
    wrote on last edited by
    #1

    Hello,

    I'm searching from open TXT files in different text editors which are different from the default text editor,
    I'm using QDesktopServices to open text files, but it seems it opens them always in the default text editor, and there's no way to specify a preferred text editor,

    any suggestions ?
    Thanks

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You can use QProcess to run any app with any list of parameters. Just point it to your preferred editor and pass the name of the file as a parameter.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AbdelAli
        wrote on last edited by
        #3

        [quote author="Chris Kawa" date="1406157628"]You can use QProcess to run any app with any list of parameters. Just point it to your preferred editor and pass the name of the file as a parameter.[/quote]

        Thank you, It's exactly what I was looking for,

        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