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. Creating app's shortcut & setting app as a default to .txt files

Creating app's shortcut & setting app as a default to .txt files

Scheduled Pinned Locked Moved Unsolved General and Desktop
shortcutdefault app
4 Posts 2 Posters 505 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.
  • C Offline
    C Offline
    Corvette653
    wrote on 26 May 2021, 15:30 last edited by
    #1

    Hi.
    Like the title says I want to:

    1. create app shortcut
    2. connect ".txt" files to open my app after double-clicking them(I've programmed serving argc and argv[] arguments, just have to change default application from notepad to my app)
      Is it possible to do without installer?
    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerReisende
      wrote on 26 May 2021, 15:36 last edited by
      #2

      Maybe this link will help?

      1 Reply Last reply
      3
      • C Offline
        C Offline
        Corvette653
        wrote on 26 May 2021, 17:41 last edited by
        #3

        @DerReisende
        I don't need multi document interface, I have SDI application.
        Like it is in first few lines, I have to get into HKCR and set path to my application, but have no idea how to do this.
        1cc3dd07-3373-49c9-a472-78736c9abd0e-image.png
        To be honest I don't understand this example, or at least I don't know where should I write that.
        I have found something like this:
        ea452cb7-03e3-4c95-8ec5-76bca0e13c1f-image.png
        but once again I don't know where should it be typed.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Corvette653
          wrote on 26 May 2021, 18:57 last edited by
          #4

          I think I found a solution
          https://answers.microsoft.com/en-us/windows/forum/windows_10-files/windows-file-association-explained-for-desktop/cfa62c00-82e0-4d05-b302-3444ab930bb7
          I understand windows xp and 7 ways but can someone help me win the new one?
          and say if I can do this by code (I mean if I give someone my app, I want this to set automatically)

          1 Reply Last reply
          0

          1/4

          26 May 2021, 15:30

          • Login

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