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.4k Posts
  • 0 Votes
    3 Posts
    50 Views
    R

    Thanks very much! The other piece I was missing is that CMake uses if/else statements. So, the result is:

    if(APPLE) target_compile_options(mytarget PRIVATE -DMAC_ONLY_SYMBOL) else() target_compile_options(mytarget PRIVATE -DOTHER_SYMBOL) endif()
  • QDoc does not produce documentation, only a .index file

    Unsolved
    4
    0 Votes
    4 Posts
    75 Views
    SGaistS

    In fact you need multiple things:

    Grouping and / or modules in the documentation of your code An "idk.qdoc" file for the main content of the documentation to act as a starting page

    I would recommend checking one of the smaller Qt modules. They should have a pretty simple set of documentation files that you can get inspiration from.

  • New AI Assistant

    Unsolved
    2
    0 Votes
    2 Posts
    53 Views
    SGaistS

    Hi and welcome to devnet,

    I haven't used it but its documentation is here.

    It's an extension.

  • ui has <not accessible value> in MainWindo

    Unsolved
    1
    0 Votes
    1 Posts
    31 Views
    No one has replied
  • Adding YouTube Transcript Feature in Qt App

    Unsolved
    2
    0 Votes
    2 Posts
    47 Views
    No one has replied
  • VSC: Qt kit found but not showing in CMake selection

    Unsolved
    3
    0 Votes
    3 Posts
    154 Views
    M

    @jsulm the kits are installed correctly and I can use them from QtCreator.
    With the QtInstaller I have cmake 3.29.3.

    Sorry, I'm not sure to understand your last question.

  • No output in "Application Output" with debugger

    Unsolved
    1
    0 Votes
    1 Posts
    92 Views
    No one has replied
  • Adding Icons in UI

    Unsolved
    2
    0 Votes
    2 Posts
    47 Views
    Ronel_qtmasterR

    @dencla You need to create and add a ressource file to your project. In the ressource file you can add all the icons. After that, they will be available in the designer as well. for more information , check this https://doc.qt.io/qt-5/resources.html

  • Creator Cmake - Hide generated files

    Unsolved
    3
    0 Votes
    3 Posts
    150 Views
    cristian-adamC

    The issue is tracked at https://bugreports.qt.io/browse/QTCREATORBUG-32319

  • Debugging a C++/QML/Python combo with QtCreator

    Moved Unsolved
    2
    0 Votes
    2 Posts
    56 Views
    B

    I finally found some more logs from Qtcreator. Just the terminal ones XD

    Copie d'écran_20250126_215615.png

  • I keep getting errors

    10
    0 Votes
    10 Posts
    255 Views
    JonBJ

    @Mahdir2111 That doesn't address any of the questions. Up to you.

  • QtCreator source build failed: psapi.h problem

    Solved
    4
    0 Votes
    4 Posts
    107 Views
    Christian EhrlicherC

    What has QtCreator to do with the Qt version you want to use for compiling? It's just an IDE...

  • QPushbutton

    Unsolved
    2
    0 Votes
    2 Posts
    72 Views
    JonBJ

    @dencla Only if you follow Creating Custom Widgets for Qt Widgets Designer.

  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    26 Views
  • Debugger doesn't stop after closing app

    Moved Solved
    8
    0 Votes
    8 Posts
    158 Views
    A

    The code above was just my attempt to create a minimal reproducible example because I had this problem with all of my 3 programs which are all pretty large and I couldn't come up with a small program that had the same issue other than this silly example.

    The dock widget, however, refers to one of my actual programs. That is, the problem with all 3 was the QML debugger being enabled and on top of that one of the programs needed the dock widget closed. I just thought I'd write it down in case someone has a similar problem and finds this post.

  • CTRL + ALT + UP or DOWN don't work on Ubuntu (Mac)

    Solved
    6
    0 Votes
    6 Posts
    133 Views
    GilboonetG

    After trying to change the layout configuration for those shortcuts without result, I found a workaround by using the up and down keys from the numeric pad of the keyboard, and it works, so I will use that on this machine.

  • class view possible for active project only?

    Unsolved
    1
    0 Votes
    1 Posts
    36 Views
    No one has replied
  • Conditional include of different .pri files

    Moved Unsolved
    2
    0 Votes
    2 Posts
    58 Views
    SGaistS

    Hi and welcome to devnet,

    You might want to make a feature request for that suggestion.

  • Autocompletion not working for Qt classes

    Unsolved
    2
    0 Votes
    2 Posts
    92 Views
    M

    I have similar problems:
    autocompletion works with user defined classes, but not with Qt classes.
    Following some google search I have tried playing around with disabling and enabling the clang tools plugin. This did not change the autocompletion's behaviour.

    I remember that autocompletion worked very smoothly with Qt Creator 4, which I have been using for a very long time .
    I don't know exactly, when it stopped working.

  • Qt VS Tools, QML Debugging

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    C

    After much back and forth, I finally figured out how to debug QML code using the current QT Visual Studio tools with CMake + Qt + Visual Studio IDE. First, if you have a project built with CMake + Qt, open the root directory of your project using the "Open Folder" method in Visual Studio 2022, and select the CMakeLists.txt file. At this point, Visual Studio 2022 IDE will create CMakePresets.json and CMakeUserPresets.json for you based on the QT Visual Studio tools.

    At this stage, you can only modify CMakeUserPresets.json to configure the dependencies required for building your project, ensuring that your project can be successfully built. Once the build is successful, you can directly press F5 to start debugging.

    I hope the method I discovered can help those who have this need.....