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.6k Topics 35.4k Posts
  • Qt Creator Running project

    Moved Solved
    15
    0 Votes
    15 Posts
    713 Views
    Q
    Also on QT 5.10.1 I can open the project but can not run. Ive read the following documentation but [image: 738a38ec-7ee8-4df0-82ef-e3d2c062a307.png] [image: c8bbb426-6608-4559-b8c8-671a3d6af413.png] [image: a86f9fb8-d8c2-4fbc-a82c-d13899adcb97.png] [image: 6a582c19-56e3-4579-bae5-a21d97953458.png] Ive read this documentation but the my SUBDIRS seems to be correct https://doc.qt.io/qt-5/qmake-variable-reference.html#subdirs The project that I am running is a Demo from the QT Company located here: https://code.qt.io/cgit/qt/qtdoc.git/tree/doc/src/snippets/qtcluster?h=5.10
  • creating subfolders causes QML build issue

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    SGaistS
    @Alex777 hi, That's something you should check the bug report system for and maybe open a discussion.
  • Downloading code.qt.io files

    Solved
    3
    0 Votes
    3 Posts
    112 Views
    Q
    This thread is the answer to my problem https://forum.qt.io/topic/92957/files-from-video
  • How to edit or create a shortcut in toolbar in Qtcreator

    Unsolved icon toolbar
    2
    0 Votes
    2 Posts
    40 Views
    S
    Add QToolButtons to the toolbar.
  • Qt Automotive Instrument Cluster Demo Source code/hardware

    Unsolved
    3
    0 Votes
    3 Posts
    100 Views
    Q
    @jsulm I simply asked the QT company if the source code for their demo is located on their website (http://code.qt.io). If so under which directory? They said this is technical support, which they do not provide without a license. I’m not sure how this is technical support if it’s publicly available & provided by them for the public. This is the equivalent of asking where the download link is for the installer.
  • Local LLM-assisted text completion for Qt Creator

    4
    3 Votes
    4 Posts
    620 Views
    cristian-adamC
    πš•πš•πšŠπš–πšŠ.πššπšπšŒπš›πšŽπšŠπšπš˜πš› has now drag & drop support. This means you can upload source files to the model! πŸŽ‰ Or you can upload a. image to a multi-modal model and ask for a mockup application for example. Here is one example with π™³πšŽπšŸπšœπšπš›πšŠπš•-πš‚πš–πšŠπš•πš•-𝟸𝟻𝟢𝟽 https://youtu.be/bkrqAM8sStc
  • Qt Visual Studio Tools

    Unsolved
    1
    0 Votes
    1 Posts
    78 Views
    No one has replied
  • 0 Votes
    4 Posts
    102 Views
    cristian-adamC
    @Robert-Hairgrove Qt Creator doesn't use such a stylesheet. But you can achieve this task. If you search this forum after "stylesheet" you will find some threads about this, how people tried to customize things back in the day πŸ˜€
  • QT Design Studio - Generation of objectName

    Moved Unsolved
    2
    0 Votes
    2 Posts
    126 Views
    JKSHJ
    Hi, and welcome! @Targo said in QT Design Studio - Generation of objectName: Is it possible to ensure QT Design Studio generates an "objectName" for each component? Qt Design Studio does not currently let us edit the objectNames via the property editor. You could manually add it via the code editor, however: https://doc.qt.io/qtdesignstudio/qtquick-text-editor.html @Targo said in QT Design Studio - Generation of objectName: Finding components is typically done using the "objectName" ... how is one supposed to be able to find/reference the components from python or c++? May I ask where you learnt about finding items using "objectName"? The current recommendation is to expose C++/Python classes to QML via QML_ELEMENT/QmlElement: https://doc.qt.io/qt-6/qtqml-cppintegration-overview.html This way, you can call C++/Python methods from QML.
  • Prevent codeModel from considering some spaces as Compiler Flags delimiters

    Unsolved
    2
    0 Votes
    2 Posts
    52 Views
    No one has replied
  • Qt Creator displaying warnings related to C++98

    Moved Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    F
    I might be digging up the post but I encountered the same issue because I had spaces in my compiler flags. I am using clang-cl and in my .pro file I added includes using imsvc to avoid warning on those files like so: QMAKE_CXXFLAGS += /imsvc\"C:/path with spaces /to/include/folder\" Using \ before the quotes and / as path delimiter allows the code to compile as expected but it doesn't prevent the code model from being broken. If I go to Tools->Debug Qt Creator -> Inspect C++ code model , under Project Parts tab in the General tab and look at the compiler flags you can see that it will split the path on the spaces and consider the parts of the path as separate flags: [image: 1b4b1823-2977-4739-9d2c-cefb7e091fca.png] (Example shown on Qt5 but it's the same with Qt 6)
  • Very slow start of QtCreator debugger under Linux. (Linux Mint 22.1/Ubuntu 24.04)

    Unsolved
    5
    0 Votes
    5 Posts
    93 Views
    JonBJ
    And for anyone reading this the bug report has already been closed with: After further investigation, the issue could be reproduced using gdb in stand-alone mode. It is therefore not directly related to QtCreator.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    2 Posts
    151 Views
    cristian-adamC
    Building Android applications involves using a cross-compiler to build for Arm64 on your Desktop computer. But for some reason you are trying to build the example on the device. Which version of Qt Creator are you using?
  • FakeVim Plugin Emulation: vim-surround not working

    Unsolved
    1
    0 Votes
    1 Posts
    54 Views
    No one has replied
  • QDoc produces empty directory

    Unsolved
    5
    0 Votes
    5 Posts
    553 Views
    P
    @sierdzio said in QDoc produces empty directory: qdoc is considered to be an internal tool of Qt, it is only intended to generate Qt documentation. As this was thread was just brought to my attention, I'll respond here despite the thread being quite old: this statement is incorrect. QDoc is used for a range of projects outside of Qt and has been used by several commercial customers for a long time. As per an announcement at KDE Akademy yesterday, KDE's API documentation is now generated by QDoc. @Mark81 said in QDoc produces empty directory: I'm not sure how to include paths. You must pass the correct include paths when invoking QDoc. Under the hood, QDoc interfaces with Clang, and if Clang doesn't know the existence of types, you get errors. They cascade. The easiest way to do this is integrate QDoc with your build system, unfortunately, Qt doesn't provide a user facing CMake API for this (yet, anyway, there's an open task for it on bugreports). You can find an example of how you can have CMake generate and pass the correct include paths if you look at https://code.qt.io/cgit/qt/qttools.git/tree/src/qdoc/qdoc/tests/validateqdocoutputfiles/CMakeLists.txt#n25: On line 25; set an output path for the file. Lines 30-39: Extract Qt include paths and framework paths. Line 41 gets the target's include directories (here, for the test), and line 42 generates a file called qdocincludepaths.inc. Then pass that file (through its output path) to the qdoc invocation as an "at-file"; e.g. qdoc -outputdir /some/path @/path/to/qdocincludepaths.inc mydocconfig.qdocconf The include path requirement exists because QDoc needs to understand your actual code structure to generate meaningful documentation. The CMake approach handles this automatically, and that's why we use this in our CI tests.
  • VS2022 vs. lupdate

    Unsolved
    1
    0 Votes
    1 Posts
    103 Views
    No one has replied
  • Help needed using conan package manager inside QtCreator15.0.0

    Solved conan qtcreator15 cmake
    17
    0 Votes
    17 Posts
    3k Views
    V
    The error occurs because the auto-setup script created by QtCreator (build/.qtc/package-manager/conan_provider.cmake) cannot determine the current C++ standard. Take a look at the function function(detect_host_profile output_file). The error is fixed by moving the C++ standard setting to the very beginning of your CMakeLists.txt script, before the project keyword. For example, the correct CMakeLists.txt: cmake_minimum_required(VERSION 3.16) # it is important that the standard be defined before the project keyword set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) project(i18n_strict LANGUAGES CXX)
  • 0 Votes
    3 Posts
    155 Views
    B
    @Pl45m4 thank you for the reply. I have found the set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY") context here. and yes using msvc for opencv usage was chatgpt`s suggestion.Im very new to this. By initial parameters do you mean mingw and ninja?
  • Emoji on button labels causes a silent crash

    Solved
    6
    0 Votes
    6 Posts
    329 Views
    SGaistS
    Thank you !