Results 1 to 8 of 8

Thread: Register QtCreator on Win7?

  1. #1
    Join Date
    Nov 2009
    Posts
    68
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded

    Default Register QtCreator on Win7?

    I have qt installed on a Win7 box and I was surprised that double clicking a *.pro file does not start QtCreator. Tried installing it again, same result.

    I tried right-clicking on a pro file and selecting qtcreator.exe but win7 would not let me do that since qtcreator.exe is not a registered file. Looked in my registery and sure enouch qtcreator.exe is not listed as a valid application.

    How do I get this running properly?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Register QtCreator on Win7?

    Either:

    Open QtCreator, and then open the .pro file (the recommended way)

    Or Right click, Open-With, Browse, and then choose QtCreator.exe. Then QtCreator will be registered and opened on doubleclicking a .pro file.

    Typically however, .pro files are for QMake, not QtCreator, hence the reason they are not, by default, associated with QtCreator.

  3. #3
    Join Date
    Nov 2009
    Posts
    68
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded

    Default Re: Register QtCreator on Win7?

    Actually Win7 will not let you browse/select an exe file if the application is not registered. A change from Vista and XP.

    I managed to edit the registry to get it to work.

    Thanks

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Register QtCreator on Win7?

    Really? I'm running Windows 7 and just tested what I wrote and it worked fine with both Qt Creator and one of my own applications. Upon selecting the executable, it placed the icon into the "recommended programs" dialog box for that file type.

  5. #5
    Join Date
    Nov 2009
    Posts
    68
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded

    Default Re: Register QtCreator on Win7?

    According to Microsoft's Knowledge Base the exe must be listed in the registry under HKEY_CLASSES_ROOT\Applications to allow you to associate it.

    http://social.answers.microsoft.com/...5-d98dbe96e327

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Register QtCreator on Win7?

    I don't know what to say apart from "It works for me". I can associate with my own programs which are not in the registry (I've checked) and it works correctly. I'm using Windows 7 x64 Ultimate. Maybe it's because the programs are not in Program Files (they are in a subdir of My Documents).

    I've checked your link and at least one person agrees with that fact, so I'm just going to assume thats the case here. It's a lot of hassle to try and manually alter the Program Files directory as it's a protected folder.

  7. #7
    Join Date
    Nov 2009
    Posts
    68
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded

    Default Re: Register QtCreator on Win7?

    I tried making a new type of file called *.xxr that was not associated with anything. Tried associating it with many programs, and your are right; sometime it would associate and sometimes it would not. Can't figure out the algorithm but it appears that it has to do with folders, permissions and if it is listed in the registry under HKEY_CLASSES_ROOT\Applications .

  8. #8
    Join Date
    Nov 2011
    Posts
    51
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Register QtCreator on Win7?

    In Windows Vista and Windows 7, you can only associate file types with programs in certain folders. The Program Files folder is one of them.

    There even exists a workaround for that reason, to make it possible to associate file types with the popular text editor Emacs, which is usually installed outside of the Program Files folder since its name contains a space. The program is open source and can be found here, it should be easy to modify the code and recompile it to make it associate files with Qt Creator instead of with Emacs.
    Last edited by Yes; 5th April 2012 at 23:37.

Similar Threads

  1. Cannot register Service name on System Bus
    By drf in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2012, 02:44
  2. LibQxt won't build with Qt 4.7.0 on Win7
    By qratman in forum Installation and Deployment
    Replies: 1
    Last Post: 14th October 2010, 14:09
  3. EXE compiled in Win7 NOT working in XP
    By fakhir in forum Newbie
    Replies: 3
    Last Post: 13th September 2010, 09:03
  4. How to register a global hotkey?
    By Fazer in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2009, 12:55
  5. How to register a font with Qt?
    By Vadi in forum Qt Programming
    Replies: 5
    Last Post: 1st February 2009, 05:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.