Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Creator: customizing default .pro-file
Forum Updated to NodeBB v4.3 + New Features

Creator: customizing default .pro-file

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 881 Views 3 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.
  • B Offline
    B Offline
    Brono
    wrote on last edited by
    #1

    Hello there
    I am using Qt Creator for making my C language assignements for university.
    Course have strict requirements: everything should be ANSI C standart, no warnings allowed.
    So, basically, it should just be compiled somehow like this:
    gcc -ansi -pedantic -Wall -Wextra -Werror

    I'm getting tired of manually entering the string
    QMAKE_CFLAGS += -ansi -pedantic -Wall -Wextra -Werror
    every time I'm starting a new project.

    So the question is: am I able to somehow edit Qt Creator's default "Pure C" template or create a custom one, so every time i start a new project all the needed settings are already there?

    K 1 Reply Last reply
    0
    • B Brono

      Hello there
      I am using Qt Creator for making my C language assignements for university.
      Course have strict requirements: everything should be ANSI C standart, no warnings allowed.
      So, basically, it should just be compiled somehow like this:
      gcc -ansi -pedantic -Wall -Wextra -Werror

      I'm getting tired of manually entering the string
      QMAKE_CFLAGS += -ansi -pedantic -Wall -Wextra -Werror
      every time I'm starting a new project.

      So the question is: am I able to somehow edit Qt Creator's default "Pure C" template or create a custom one, so every time i start a new project all the needed settings are already there?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Brono

      Hi and welcome to devnet forum

      You can try to place the QMAKE_FLAGS command in file called ".qmake.conf" in the parent folder of your project folders. This file gets executed before the .pro files.

      Hope that helps.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        You might find this thread of help.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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