Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.4k Topics 34.3k Posts
  • Multiple variable name patterns in quick fixes

    Unsolved
    1
    0 Votes
    1 Posts
    36 Views
    No one has replied
  • Qt Creator Build Sound

    Moved Unsolved
    7
    0 Votes
    7 Posts
    176 Views
    cristian-adamC

    There is another plugin that does what you expect: https://github.com/vivaladav/SIGBUILD

    A Qt Creator plugin to get notified when your builds terminate and to track their stats.

    Project Status

    Currently the plugin is usable and the project is under development with regular releases to update it to the latest major version of Qt Creator.

    People who want to start to use SIGBUILD need to build it from scratch following the instruction in the Development section.

    Because of the current status of the project, it's guaranteed only that SIGBUILD will work >with the latest version of Qt Creator. Previous versions are likely to work too, but they are >not officially supported, so please do not create issues for them.

    Current features Systray notifications Audio notifications Latest build info Session log Full Qt Creator options
  • How to manage subdirs examples (C/C++) ?

    Unsolved
    8
    0 Votes
    8 Posts
    239 Views
    T

    Would it be acceptable to re-post the "update" ?
    Upon further research I have found than the failing project ( all in 5.15 ) is actually part of subdir project,
    and my guess is that that is why it worlds by itself but fails when added as subdir.
    The "bluetooth.pro" "main" suproject actually consist of two more sub protects.

    All of them are still "only" in 5.15 - no Qt 6 at all

  • How do I change the system font for QtCreator?

    Solved
    18
    0 Votes
    18 Posts
    9k Views
    hskoglundH

    Agreed that some screen elements can look small on a 4K monitor, but since you're spending all of your workdays in Qt Creator, eventually you'll learn all the keyboard shortcuts and perhaps introduce some of your own (at least I have).

    By then you'll permanently hide the menu with Ctrl+Alt+M and don't mind small-sized elements on the screen because they're fixed/static and you know them very well by heart anyway. My own C++ code, of course, that needs to visible and some days I'll increase the font size :-)

  • Autocompletion not working for Qt classes

    Unsolved
    1
    0 Votes
    1 Posts
    31 Views
    No one has replied
  • 0 Votes
    2 Posts
    57 Views
    Pl45m4P

    @Elerence-Hooke

    Not 100% sure for Qt DesignStudio but also with QtCreator most UI elements are only available through code as just a few are selectable from QtCreator's Widget toolbox. Menus like QMenu is not one of them.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    6 Posts
    145 Views
    SGaistS

    @Renu hi,

    QtConcurrent already running tasks in different threads, why do you need to create a new separate one ?

  • 0 Votes
    2 Posts
    69 Views
    JonBJ

    Try disabling the code completion for Qt Creator, something like clang or clangd. You will have to hunt through all the settings/options, I cannot recall where it is (and am not running it now). You want to get the stage where Creator does not make any suggestions/comments on your code, or at least is not using the default clang to do that. Does that make the problem go away? Or, for example, if you have Creator running but no project/files at all open/loaded inside it, does it still happen?

  • How to configure QtCreator to use Clang 19 instead of GCC

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    S

    It is not sufficient to enable modules for the compiler. Your build system (CMake in this case) needs to now about modules as well to compute the right dependencies. You have to tell CMake which files are defining modules (maybe have a look here: https://cryos.net/2024/01/c-modules-and-cmake/). Otherwise your build might fail (it also might just work right most of the time if the dependencies are accidentally compiled in the right order). If I'm not mistaken modules with CMake so far only work with the ninja generator.

    The reason why the build system needs to know about that is because if the compiler is looking for a module and it hasn't been compiled yet, there is no way for the compiler to tell the build system to just build the necessary module. So, the build system has to make sure that all modules have been built (in the right order) before regular compilation starts. (It would be certainly nice if the compiler could just compile the required module as well and then continue. But this is not how it works.)

  • 0 Votes
    4 Posts
    121 Views
    cristian-adamC

    Thank you for opening a bug report: https://bugreports.qt.io/browse/QTCREATORBUG-32293

  • 0 Votes
    5 Posts
    2k Views
    S

    Thank you so much for pointing me at these settings!
    Disabling the QML debugging had no effect BUT unchecking "Run in terminal" solved the problem!
    RunInTerminal.png

  • 0 Votes
    3 Posts
    141 Views
    InTheBeningingI

    This might help.

  • Altcoin/Bitcoin Wallet UI compile issues

    Solved
    3
    0 Votes
    3 Posts
    90 Views
    U

    Come to find out I was removing a label that didn't have any visible text when moving items around the UI. Once I added it back and/or removed it from the .cpp files, the UI compiled fine.

  • qmake: Get parent path / chop one path level

    Solved
    21
    0 Votes
    21 Posts
    11k Views
    SGaistS

    @kkmspb you're welcome!

    That's likely related to the old forum which rendered double $ as single hence using a space was mandatory in the answer to show that two were required.

  • how to use Performance Analyzer on Windows

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    JonBJ

    @shokarta
    perf is only available on Linux, not Windows. E.g. https://stackoverflow.com/questions/34641644/is-there-a-windows-equivalent-of-the-linux-command-perf-stat. I don't think MinGW offers a perf. You would have to search around for your own equivalent, and change command line. Basically you might want to try to do it externally from Creator.

    Linux perf I think would not tell you anything/much about what's going on in JS scripts. Don't know about Windows, MSVC has a profiler, don't know if you can use it best outside VS.

    https://forum.qt.io/topic/129737/qtcreator-5-performance-analysis-on-a-windows-10-platform
    https://training.kdab.com/portfolio/debugging-and-profiling-qt-applications-on-windows/
    https://wiki.qt.io/Profiling_and_Memory_Checking_Tools
    https://stackoverflow.com/a/34689067/489865

  • 0 Votes
    6 Posts
    1k Views
    J

    For latecomers, you could keep track of this issue here: https://bugreports.qt.io/browse/QTCREATORBUG-32283

  • Qt VS Tools not (fully) working with MSVC 2022 & Qt 6.8.0

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    JKSHJ

    @dano said in Qt VS Tools not (fully) working with MSVC 2022 & Qt 6.8.0:

    but now the Qt VS Tools (version 3.3.1 (rev.1)) seem to have stopped working.

    Do you mean this bug? https://bugreports.qt.io/browse/QTVSADDINBUG-1284

    If not, please elaborate -- What exactly has stopped working?

  • 0 Votes
    2 Posts
    502 Views
    C

    +1. View is greyed out. Also having a weird problem of this version hogging focus.

    Arch Linux Latest w/ Sway (Wayland)

  • How do I create a CMakePresets.json file with Qtcreator?

    Solved
    3
    0 Votes
    3 Posts
    557 Views
    cristian-adamC

    Thank you for creating https://bugreports.qt.io/browse/QTCREATORBUG-32220!