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. Remove default file association

Remove default file association

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 753 Views 2 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.
  • J Offline
    J Offline
    JohnPSoluri
    wrote on last edited by
    #1

    Hello all,
    I want to remove the default app associated with a particular file type not change it to another app, just remove the association completely. I haven't found a clear answer online. Does anyone know how to do it?

    Thanks!

    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You can't do this with Qt as it's to OS-specific.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      1
      • J JohnPSoluri

        Hello all,
        I want to remove the default app associated with a particular file type not change it to another app, just remove the association completely. I haven't found a clear answer online. Does anyone know how to do it?

        Thanks!

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.

        J 1 Reply Last reply
        0
        • JonBJ JonB

          @JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.

          J Offline
          J Offline
          JohnPSoluri
          wrote on last edited by JohnPSoluri
          #4

          @JonB said in Remove default file association: block blast

          @JohnPSoluri As @Christian-Ehrlicher says, write some C++ code for each platform/windowing system you want to support.

          Thanks for your good comments

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #5

            Hi,

            Out of curiosity, is it something that you want your users to be able to do with your apps ?
            If not, they might not appreciate their system being altered without their knowledge.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              You can't do this with Qt as it's to OS-specific.

              S Offline
              S Offline
              SimonSchroeder
              wrote on last edited by
              #6

              @Christian-Ehrlicher said in Remove default file association:

              You can't do this with Qt as it's to OS-specific.

              You are certainly right about the first part. However, I would claim that this is something (at least up to a certain point) that could actually fall into the realm of Qt. All operating systems have some sort of file type association. Windows and macOS should be pretty straight forward. I am not entirely sure about Linux if this is related to the window manager. There is certainly a certain standard with xdgutils. But, I believe this is mostly for the command line and not used by every window manager. A lot of people would already be covered by supporting Gnome and KDE (maybe another 1 or 2 window managers).

              What I'm saying is that it is not too crazy to expect this to be part of Qt. QSettings properly stores configuration according to common platform rules (even uses the registry on Windows).

              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