Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Code::Blocks user trying QT
Forum Updated to NodeBB v4.3 + New Features

Code::Blocks user trying QT

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 677 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.
  • G Offline
    G Offline
    grimvian
    wrote on last edited by
    #1

    QT seem okay intuitive for me. Made a setup choosing cmake, because I think it's using GCC, but I want to use GCC and C99. I can start a new project, compile, run and see the result. If I later starts QT and load the test file, QT complains about the file is not a part of any project...

    I use Linux Mint and here is the System Information:
    Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.0) on "xcb"
    OS: KDE Flatpak runtime [linux version 5.15.0-126-generic]

    What I'm doing wrong here?

    jsulmJ JonBJ 2 Replies Last reply
    0
    • G grimvian

      QT seem okay intuitive for me. Made a setup choosing cmake, because I think it's using GCC, but I want to use GCC and C99. I can start a new project, compile, run and see the result. If I later starts QT and load the test file, QT complains about the file is not a part of any project...

      I use Linux Mint and here is the System Information:
      Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.0) on "xcb"
      OS: KDE Flatpak runtime [linux version 5.15.0-126-generic]

      What I'm doing wrong here?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @grimvian said in Code::Blocks user trying QT:

      If I later starts QT and load the test file

      What test file do you mean? You have to open the project, not just a source code file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grimvian
        wrote on last edited by
        #3

        Thanks.

        If I want to specify C99, pedantic and so on, where can I do that?

        jsulmJ 1 Reply Last reply
        0
        • G grimvian

          Thanks.

          If I want to specify C99, pedantic and so on, where can I do that?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @grimvian In CMakeLists.txt
          https://cmake.org/cmake/help/latest/command/add_compile_options.html
          https://discourse.cmake.org/t/setting-compiler-flags-in-cmakelists-txt/8820

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          G 1 Reply Last reply
          1
          • G grimvian

            QT seem okay intuitive for me. Made a setup choosing cmake, because I think it's using GCC, but I want to use GCC and C99. I can start a new project, compile, run and see the result. If I later starts QT and load the test file, QT complains about the file is not a part of any project...

            I use Linux Mint and here is the System Information:
            Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.0) on "xcb"
            OS: KDE Flatpak runtime [linux version 5.15.0-126-generic]

            What I'm doing wrong here?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @grimvian said in Code::Blocks user trying QT:

            but I want to use GCC and C99

            Assuming you mean you intend to write C code, not C++ (else why worry about C99?). Be aware that you won't be able to use any Qt libraries in this case. You can use Qt Creator to write a C-only program if you wish, but not one using Qt features.

            G 1 Reply Last reply
            1
            • jsulmJ jsulm

              @grimvian In CMakeLists.txt
              https://cmake.org/cmake/help/latest/command/add_compile_options.html
              https://discourse.cmake.org/t/setting-compiler-flags-in-cmakelists-txt/8820

              G Offline
              G Offline
              grimvian
              wrote on last edited by grimvian
              #6

              @jsulm I feared that I had to deal with cmake. I used to make the settings by a mouse, but thanks.

              1 Reply Last reply
              0
              • JonBJ JonB

                @grimvian said in Code::Blocks user trying QT:

                but I want to use GCC and C99

                Assuming you mean you intend to write C code, not C++ (else why worry about C99?). Be aware that you won't be able to use any Qt libraries in this case. You can use Qt Creator to write a C-only program if you wish, but not one using Qt features.

                G Offline
                G Offline
                grimvian
                wrote on last edited by
                #7

                @JonB I'm just interested in using QT as an IDE together with C99 and raylib graphics.
                Thanks.

                JonBJ 1 Reply Last reply
                0
                • G grimvian

                  @JonB I'm just interested in using QT as an IDE together with C99 and raylib graphics.
                  Thanks.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @grimvian That's fine, no problem, thought why Qt/Creator I'm not sure.

                  G 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @grimvian That's fine, no problem, thought why Qt/Creator I'm not sure.

                    G Offline
                    G Offline
                    grimvian
                    wrote on last edited by
                    #9

                    @JonB said in Code::Blocks user trying QT:

                    @grimvian That's fine, no problem, thought why Qt/Creator I'm not sure.

                    I need an IDE because I type and read as a broken arm. :) I had some go's with different IDE's and until now, I have not tried other that is so intuitive as QT yet. Sadly Code::Blocks seems to die slowly.

                    JonBJ 1 Reply Last reply
                    0
                    • G grimvian

                      @JonB said in Code::Blocks user trying QT:

                      @grimvian That's fine, no problem, thought why Qt/Creator I'm not sure.

                      I need an IDE because I type and read as a broken arm. :) I had some go's with different IDE's and until now, I have not tried other that is so intuitive as QT yet. Sadly Code::Blocks seems to die slowly.

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #10

                      @grimvian Oh, I believe Qt Creator (that's what the IDE is) is known for fixing a broken arm, so all the best :)

                      1 Reply Last reply
                      1

                      • Login

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