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. [SOLVED] Automatic header at the beginning of files when creating a new class
Forum Update on Monday, May 27th 2025

[SOLVED] Automatic header at the beginning of files when creating a new class

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 611 Views
  • 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.
  • B Offline
    B Offline
    BlackMamba
    wrote on 15 Mar 2015, 17:40 last edited by BlackMamba
    #1

    Hello,
    I would like to know if there is a way to create a class in Qt creator which will automatically paste some comment text at the beginning of the .h and .cpp files.
    For example :

    /This code is the property of blablablal, licence GNU GPL, etc .../

    Or does it need to be manual?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on 15 Mar 2015, 17:57 last edited by
      #2

      Hi,

      you can use the Licence Template inside the Preferences->C++ Tab.

      You can also use the Custom Wizard feature

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BlackMamba
        wrote on 15 Mar 2015, 21:00 last edited by
        #3

        Great thank you very much :)

        1 Reply Last reply
        0

        1/3

        15 Mar 2015, 17:40

        • Login

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