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 651 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 5 Dec 2024, 10:28 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?

    J J 2 Replies Last reply 5 Dec 2024, 10:29
    0
    • G grimvian
      5 Dec 2024, 10:28

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 5 Dec 2024, 10:29 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 5 Dec 2024, 11:10 last edited by
        #3

        Thanks.

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

        J 1 Reply Last reply 5 Dec 2024, 12:10
        0
        • G grimvian
          5 Dec 2024, 11:10

          Thanks.

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 5 Dec 2024, 12:10 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 5 Dec 2024, 12:39
          1
          • G grimvian
            5 Dec 2024, 10:28

            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?

            J Offline
            J Offline
            JonB
            wrote on 5 Dec 2024, 12:11 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 5 Dec 2024, 13:12
            1
            • J jsulm
              5 Dec 2024, 12:10

              @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 5 Dec 2024, 12:39 last edited by grimvian 12 May 2024, 13:13
              #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
              • J JonB
                5 Dec 2024, 12:11

                @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 5 Dec 2024, 13:12 last edited by
                #7

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

                J 1 Reply Last reply 5 Dec 2024, 13:15
                0
                • G grimvian
                  5 Dec 2024, 13:12

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

                  J Offline
                  J Offline
                  JonB
                  wrote on 5 Dec 2024, 13:15 last edited by
                  #8

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

                  G 1 Reply Last reply 5 Dec 2024, 13:37
                  0
                  • J JonB
                    5 Dec 2024, 13:15

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

                    G Offline
                    G Offline
                    grimvian
                    wrote on 5 Dec 2024, 13:37 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.

                    J 1 Reply Last reply 5 Dec 2024, 15:05
                    0
                    • G grimvian
                      5 Dec 2024, 13:37

                      @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.

                      J Offline
                      J Offline
                      JonB
                      wrote on 5 Dec 2024, 15:05 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

                      1/10

                      5 Dec 2024, 10:28

                      • Login

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