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
  • Add New, Add Existing files... all greyed out in Qt Creator 9.0.0 (Enterprise)

    Moved Unsolved
    4
    0 Votes
    4 Posts
    383 Views
    jsulmJ
    @raxo You did not answer the question. Is it a widgets project, or QML or WebAssembly?
  • Qt Creator 9.0 "VcsConfiguration"

    Solved
    3
    0 Votes
    3 Posts
    324 Views
    posktomtenP
    Thanks! I'll check when I get home from work. Your suggested workaround worked perfectly! Thanks again!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Qt Creator is not indexing header files in docker container

    Solved
    2
    0 Votes
    2 Posts
    616 Views
    M
    Hi, The Docker plugin in Qt Creator 7.0.2 is already quite old and still very experimental, so indexing is not expected to work at all. While in 9.0 the indexing is still not quite ready to use, you can already get some indexing to work by installing clangd in the docker and selecting it in the project settings. ( Projects => Project Settings => Clangd, underneath where you can edit the Build & Run configuration ). You do have to create the path manually though, as the file chooser does not support remote paths there yet. The path then needs to look similar to: "docker://qt-linux-llvm:latest/usr/bin/clangd". This at least allows you to jump to definitions inside your project. Qt Creator 10.0 will probably streamline this a lot more.
  • Beginner Pathing Problems

    Unsolved
    2
    0 Votes
    2 Posts
    211 Views
    jsulmJ
    @Chapungu said in Beginner Pathing Problems: copying over my resources What are those resources?
  • qt picks the wrong environment

    Moved Unsolved
    7
    0 Votes
    7 Posts
    538 Views
    I
    @Paul-Colby hi, i want connect this directory: [image: f198fff1-ee4c-490f-bf16-c31fc8d9a1df.png] but [image: 2568d58f-c58d-4032-a0ef-9a0595f10622.png]
  • This topic is deleted!

    Moved Solved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Code model finds header but editor does not

    Unsolved qtcreator code model
    1
    0 Votes
    1 Posts
    330 Views
    No one has replied
  • error setting up Qt for Android

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    cristian-adamC
    At setup_android.cmake I have a CMake script that downloads the JDK and Android SDK via CMake. Usage is: cmake -P setup_android.cmake Works cross-platform. I tend to keep it up to date with Android's sdk_definitions.json, but you can have a look there if things do not match. Having control and transparency over what's getting installed results in less confusion. I don't know why the Android settings dialog doesn't have the same functionality for the JDK like it does for the Android SDK.
  • 0 Votes
    2 Posts
    737 Views
    JonBJ
    @MHuysmans I think it is intended behaviour. But whatever it should have nothing to do with Qt Creator. That is only a front-end to whatever debugger you use. Which you don't say. So go test this behaviour in the debugger, e.g. gdb with step and next commands.
  • How to turn two projects into one

    Unsolved
    2
    0 Votes
    2 Posts
    213 Views
    sierdzioS
    Look into SUBDIRS. It allows you to create multiple libraries (for shared code) and executables in a single project. However, since you're about to rewrite your build system files anyway, I highly recommend moving away from qmake and to use cmake for this. Cmake syntax is horrible but it makes managing more complex projects much easier.
  • Creator project view shows lots of "unnecessary" stuff

    Solved
    13
    0 Votes
    13 Posts
    939 Views
    mzimmersM
    I hear what you're saying, but when you think of it, a project is at heart something that gets built, so perhaps it's appropriate to show everything that the build system relies on. It's been a few weeks since I started this thread, and I hardly notice the "unnecessary" stuff anymore. I do like your idea about another view...maybe something to suggest for the next major release of Creator...?
  • 0 Votes
    10 Posts
    1k Views
    J
    https://codereview.qt-project.org/c/qt-creator/qt-creator/+/442538 should hopefully fix it. Is anyone able to confirm / deny whether the provided patch fixes this reproducible crash?
  • Shadow build - default?

    Moved Solved
    1
    0 Votes
    1 Posts
    247 Views
    No one has replied
  • Show clangd annotations without cursor hover?

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • Missing .pro file ?

    Moved Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    Chris KawaC
    I'm not sure what you mean by "preconfigure Qt". Qt is just a C++ library. It's mostly self-contained, but it interacts with other libraries if you need to. A library on its own won't do you any good though. Developing any non-trivial size C++ program requires your own code, libraries, compiler, linker, build tools and an editor. Most computer users are not programmers, so their OS does not come with a C++ compiler or any of those development tools preinstalled, as it would be a huge waste of space. The good and bad thing is that there's so many different tools available for C++ development that there is no single way to choose or set them up. There's plenty of homebrew tutorials out there, but it's likely that if you refer any two of them they will differ in some ways and sometimes contradict. Start with what you want to achieve, list the things you need for that in your particular environment (OS, package manager, development tools, external hardware etc.) and just go one by one with setting them up. For a basic Linux setup there's this though: Requirements for Development Host
  • Where is " custom run configuration" ?

    Moved Unsolved
    2
    0 Votes
    2 Posts
    851 Views
    Axel SpoerlA
    Don’t know if it’ll be a hit, but our documentation at least has a hint for it :-)
  • Register at least one Qt version…

    Moved Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    Chris KawaC
    Environment looks fine, nothing is missing. Sorry, I don't know what causes these issues. I don't have an idea beyond maybe reinstalling the extension. You could also run VS installer and make sure you have MSBuild installed (look in the individual components tab of the installer). Beyond that you could maybe ask at the interest mailing list, where the developers of the extension are more likely to see you, or report an issue via the bugtracker and get help that way.
  • QMessageBox

    Unsolved
    8
    0 Votes
    8 Posts
    726 Views
    SGaistS
    Can you provide a minimal compilable example that shows this behaviour ?
  • ICONS symbols description ?

    Moved Unsolved
    1
    0 Votes
    1 Posts
    164 Views
    No one has replied