Results 1 to 2 of 2

Thread: QtCreator file add

  1. #1
    Join Date
    Apr 2017
    Posts
    37
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QtCreator file add

    In QtCreator when you add a new .cpp or .h file is there a way to automatically insert a standard banner at the top of those files. My employer requires every .cpp and .h file to have a long copyright blurb and other stuff at the top of each file. I know that while in QtCreator if you type three /// before a function it will insert a very short spot for a "brief". If it can do that, there should be a way for it to do more.

    Thanks for any info.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    3,896
    Thanks
    225
    Thanked 607 Times in 597 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QtCreator file add

    is there a way to automatically insert a standard banner at the top of those files
    Yes. See the "Adding a License Header" section here in the Qt Creator manual.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. .QRC file of QtCreator
    By ehnuh in forum Qt Tools
    Replies: 1
    Last Post: 3rd November 2012, 03:56
  2. QtCreator .pro file question
    By bryang in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2011, 18:27
  3. Replies: 8
    Last Post: 24th November 2010, 11:34
  4. Replies: 9
    Last Post: 17th November 2010, 08:18
  5. QtCreator add a pri file without compiling it
    By bunjee in forum Qt Tools
    Replies: 1
    Last Post: 3rd May 2009, 14:35

Tags for this Thread

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.