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. Associate
Forum Updated to NodeBB v4.3 + New Features

Associate

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 2.8k 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.
  • R Offline
    R Offline
    Ruzik
    wrote on last edited by
    #1

    How can I associate files with certain extension (.qss) with the program?
    Advance many thanks for your help!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      What platform?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ruzik
        wrote on last edited by
        #3

        Windows and Linux

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          on windows :
          in explorer Right mouse button : open with.
          choose your program and make sure you use the checkbox to use that program everytime.

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • L Offline
            L Offline
            loladiro
            wrote on last edited by
            #5

            There is no way to do it in Qt.
            On windows can either use the native OS API or the "appropriate command line tools":http://commandwindows.com/assoc.htm (you could of course also add the appropriate registry entries yourself, but that might not work on future Windows version).
            On Linux it is up to the window manager to do that. Just use google to see how to do it.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              privet
              wrote on last edited by
              #6

              here is the solution for windows (it worked for me)
              http://developer.qt.nokia.com/wiki/Assigning_a_file_type_to_an_Application_on_Windows

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #7

                This wiki article describes a class you can use as editor main window class. it enables associating file extension to the exe during first start, like MFC does. It also enables MDI handling do newly opened files are opened in the running process.

                But this code only works for windows, definitly.

                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

                • Login

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