Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. file extension association with app
Qt 6.11 is out! See what's new in the release blog

file extension association with app

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 1.7k 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
    Amarjit123
    wrote on last edited by
    #1

    Re: Using "RegisterFileType" in Qt Installer Framework

    Can someone share a sample project on the file association with app. My problem is that my own custom extension file doesnot open by default on double click. I understnad that i have to it by adding it to registry for Windows. please share me a demo project on how to do it through Qt ?

    jsulmJ 1 Reply Last reply
    0
    • A Amarjit123

      Re: Using "RegisterFileType" in Qt Installer Framework

      Can someone share a sample project on the file association with app. My problem is that my own custom extension file doesnot open by default on double click. I understnad that i have to it by adding it to registry for Windows. please share me a demo project on how to do it through Qt ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Amarjit123 Google gives me this: https://wiki.qt.io/Assigning_a_file_type_to_an_Application_on_Windows

      https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        @jsulm Thank you. It helped, I could able to understand, but while implementing I am facing issue. I tried to inherit my class from DocumentWindow class, but it does not recognize. Even I am not getting the right header file to include for this class. Could you please add the running sample code, if you have any which will help me in fixing the issue.

        A jsulmJ 2 Replies Last reply
        0
        • A Amarjit123

          @jsulm Thank you. It helped, I could able to understand, but while implementing I am facing issue. I tried to inherit my class from DocumentWindow class, but it does not recognize. Even I am not getting the right header file to include for this class. Could you please add the running sample code, if you have any which will help me in fixing the issue.

          A Offline
          A Offline
          Amarjit123
          wrote on last edited by
          #4

          @jsulm "I have set my Qapp.exe as default application to open for sample.dat", This is mentioned by you in "https://forum.qt.io/topic/85443/how-to-find-the-path-of-the-file-that-launches-the-qt-application-from-explorer/19". Could you please give me the source code. i want to know how to implement default app to open your custom file extension type, that is file extension with app by modifying registry. i hope I am clear on my query

          jsulmJ 1 Reply Last reply
          0
          • A Amarjit123

            @jsulm Thank you. It helped, I could able to understand, but while implementing I am facing issue. I tried to inherit my class from DocumentWindow class, but it does not recognize. Even I am not getting the right header file to include for this class. Could you please add the running sample code, if you have any which will help me in fixing the issue.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Amarjit123 said in file extension association with app:

            I tried to inherit my class from DocumentWindow class

            Is your app a MDI app? If not then there is no need to inherit from DocumentWindow, which is explained in the link I posted...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • A Amarjit123

              @jsulm "I have set my Qapp.exe as default application to open for sample.dat", This is mentioned by you in "https://forum.qt.io/topic/85443/how-to-find-the-path-of-the-file-that-launches-the-qt-application-from-explorer/19". Could you please give me the source code. i want to know how to implement default app to open your custom file extension type, that is file extension with app by modifying registry. i hope I am clear on my query

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Amarjit123 said in file extension association with app:

              Could you please give me the source code

              What more source code do you need? The source code is in the link I already posted...

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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