Results 1 to 5 of 5

Thread: Exotic C++ Suffix

  1. #1
    Join Date
    Nov 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Exotic C++ Suffix

    Hi!

    We have special C++ suffixes in our company. When I try to import our projects in QtCreator, these files are not in the Project tree. I don't want to add them manually. Is there a way to specify some file types as C++ files in QtCreator?
    For example *.hwq / *.cwq should be C++ header/source suffixes.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Exotic C++ Suffix

    Add them to the SOURCES and HEADERS variable in your project file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Exotic C++ Suffix

    I'm sorry, but I don't know what project file.
    I created my project by: 'New Project' -> 'Import Existing Project' and indicate the location. I couldn't use any other way because of some reasons which would be hard to explain with my poor english
    So I don't have a project file. Only 5 files are created in the folder: xy.config/xy.creator/xy.creator.user/xy.files/xy.includes
    I can add files by 'Add Existing Files', but there are many subfolders and I would have to do it for every folder. And I'm afraid things like jumping to functions (by F2) into other files than the current opened don't work, because he doesn't recognize my files as C++ files.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Exotic C++ Suffix

    Quote Originally Posted by redruM View Post
    I'm sorry, but I don't know what project file.
    The thing with "pro" suffix. If you don't have it then QtCreator is not managing your project and you're on your own.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Exotic C++ Suffix

    I don't have a pro file. Does anybody know another way to tell QtCreator to handle certain files as C++ files? Maybe in general, independent from the current project?

Similar Threads

  1. Replies: 0
    Last Post: 17th December 2010, 09:50
  2. suffix for qt dlls
    By jobrandt in forum Installation and Deployment
    Replies: 6
    Last Post: 11th April 2008, 10:59
  3. how to add suffix to library like qtcore4_gcc.dll
    By furk in forum Installation and Deployment
    Replies: 3
    Last Post: 13th June 2007, 16:11

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.