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.7k Topics 36.0k Posts
  • How to Enable Python Type Hints in Qt Creator?

    Unsolved
    18
    0 Votes
    18 Posts
    154 Views
    JonBJ
    @cristian-adam encode works on strings, str or QString. decode works on bytes, bytes or QByteArray. That may explain <unavailable> on text().decode(). I told you I didn't understand :) If you had stuck to Hello world! we wouldn't be having this discussion ;-)
  • QtCreator installer/app poisons the Win11 registry

    Unsolved
    11
    2 Votes
    11 Posts
    118 Views
    cristian-adamC
    @JonB said in QtCreator installer/app poisons the Win11 registry: @cristian-adam Is it the case then: the uninstall either does nothing or does not work, the reinstall does not really uninstall/remove but just happens to overwrite retained values with something else so it ends up working OK? I know I can't be that much use as I don't do Qt under Windows. But would you like me to go find where the Uninstall script is stored in registry so you can try it out standalone, or do you already know this? See above at the manual removal script. I think the Qt Installer should be able to reproduce and fix the QTIFW-3944 issue. I see @ziller is still assigned, hmm.
  • QtCreator 18 ContextMenu covers entire screen!

    Unsolved
    7
    0 Votes
    7 Posts
    136 Views
    aha_1980A
    @Gerd-Brecht Please have a look here: https://forum.qt.io/topic/164022/unable-to-create-bug-report-on-jira Ps: You can now post faster Regards
  • How to start multiple applications in QtCreator at once

    Unsolved
    2
    0 Votes
    2 Posts
    93 Views
    GrecKoG
    You can write a script starting all your applications and add a "Custom Executable" run configuration pointing to that script in the "Run Settings" of your project.
  • Warning signs in code editors

    Moved Unsolved
    2
    0 Votes
    2 Posts
    62 Views
    aha_1980A
    @cuijg I'm not totally sure if this is a bug or a feature, but for me the warnings go away if I use the Trash bin symbol in the Issues pane: [image: 40424c4f-f1ac-448c-9b98-a79ff2fcb4c4.png] Regards
  • Recent Qt Creator: scanf still doesn't work

    Solved
    8
    0 Votes
    8 Posts
    979 Views
    aha_1980A
    @Taupter Have you selected Project > Run Settings > Run in Terminal? That is a per-project setting. Regards
  • Unable to Copy directory recursively

    Moved Unsolved
    9
    1 Votes
    9 Posts
    931 Views
    J.HilkJ
    Oh my, didn't know this was a thing! I assume these settings are lost/not usually part of a versioning system? @Alex-To do you use cmake? I use this function in cmake: function(copy_dir TARGET SRC_REL DEST_REL) add_custom_command(TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory "${DEPLOYMENT_PATH}/$<CONFIG>/${DEST_REL}" COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_REL}" "${DEPLOYMENT_PATH}/$<CONFIG>/${DEST_REL}" VERBATIM ) endfunction()
  • 2 Votes
    2 Posts
    60 Views
    JKSHJ
    @shyney7 Thank you for highlighting this issue. I have created a bug report on your behalf: https://qt-project.atlassian.net/browse/QTBUG-144585 If you find any other issues, please report it directly to our bug tracker like the link above. You can log in using the same Qt Account that you use to log into this forum.
  • Qt creator no qDebug() output in debug mode - Qt 6.10.2

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    cristian-adamC
    @cristian-adam said in Qt creator no qDebug() output in debug mode - Qt 6.10.2: For Qt Creator 19 I've made sure that lldb would work when Run in terminal is set. There is an update for Qt Creator 19 final, all debuggers on Windows will get the QT_WIN_DEBUG_CONSOLE=attach environment variable set for the running programs. This means that if you have the checkbox Run in terminal, you will get the qDebug() output there. cdb or lldb! This is for console and WIN32 applications. It simply works! ™️
  • Installing Gamma Ray on Windows using QtCreator

    Solved
    5
    0 Votes
    5 Posts
    153 Views
    W
    That was it - thank you!
  • Qt Creator: Remote Linux Device Kit is unsuited for this Project

    Moved Unsolved
    2
    0 Votes
    2 Posts
    102 Views
    Z
    To build the project on the build device you need to open the project from the build device, not a local project. In contrast to Docker support, Qt Creator doesn't do any magic mapping there. You can open projects from the device with File > Open From Device, the device is accessible with the "f" (file system) filter in Locator (and starting with QtC 19 the device root is also accessible in File System view).
  • Qt Creator 19 RC released

    Unsolved
    1
    1 Votes
    1 Posts
    49 Views
    No one has replied
  • Disabling breakpoints in Framework code

    Moved Unsolved
    1
    0 Votes
    1 Posts
    48 Views
    No one has replied
  • qDebug() doesn't show messages in Qt Creator/Application Output

    Moved Solved
    45
    0 Votes
    45 Posts
    4k Views
    cristian-adamC
    This topic was also present as a bug report at https://qt-project.atlassian.net/browse/QTCREATORBUG-33741 Which I've fixed, and with Qt Creator 19 things would simply just work out of the box with lldb.exe.
  • Fakevim follow symbol under cursor

    Unsolved
    2
    1 Votes
    2 Posts
    386 Views
    J
    Let me just bump this. I have the same question and am in general not clear about the command/mapping mechanics. One more example (of several) I don't get: I assigned the "Ex Trigger Expression" rb to Rebuild project and i can type :rb - but it always builds without cleaning. In contrast, when I select the same corresponding menu item (mouse click), it does rebuild with an initial cleaning step.
  • Qt Installer Framework Buttons?

    Unsolved
    1
    0 Votes
    1 Posts
    50 Views
    No one has replied
  • Setting up a SUBDIRS project correctly

    Moved Solved
    2
    0 Votes
    2 Posts
    123 Views
    R
    I have solved this by defining everything under the "build" folder in the different *.pro files. It seems that if a subproject is configured individually, i.e. outside of the SUBDIRS project, whatever configuration is overridden by the SUBDIRS main project configuration. I put the "TEMPLATE=lib" subproject files into the "3rd_party" folder. The only drawback is then that the different Makefiles.* and .qmake.stash files used in building the libraries are also generated in that folder which is under source code management. However, these can be ignored by the SCM by applying the corresponding settings necessary for ignoring certain files.
  • Dependency deadlock of MacOS Monterrey, Qt Creator and Qt 6.10

    Unsolved
    10
    0 Votes
    10 Posts
    375 Views
    I
    Thanks @ziller @aha_1980 @J.Hilk for your suggestions. I decided to do a full backup of my machine first. Then I realised that my project's config and current state data-files had probably been damaged when my Qt Creator got wiped by Qt Maintenance Tool. So I set about finding out how to recover those files as well as my original Qt Creator (version 15.0.0, installed Nov 2024) - from backup. Google AI was quite helpful, as long as I took its advice with a grain of salt, as I usually do. Apple's Time Machine utility was even more help, as I cherry-picked the files and folders I needed to restore. That all went well, except that I had an obsolete 'ui_mainwindow.h' file (generated by Qt), which would not compile. I hacked my way around that and am back in business now. My app is working fine again. It is full-screen by default and does not really need a complicated KDE-style main window.
  • Undefined symbol argc with Qt 6.10.2

    Solved
    4
    0 Votes
    4 Posts
    202 Views
    richferraraR
    I figured out the problem. When I installed Qt 6.10.2, I selected "Qt/Build Tools/LLVM-MinGW 17.0.6 64-bit" but not "Qt/Qt 6.10.2/LLVM-MinGW 17.0.6 64-bit". So it was trying to link my LLVM-MinGW project with the MinGW version of libQt6EntryPoint.a.
  • Anyone had success with compose-based devcontainers in Qt Creator

    Unsolved devcontainer docker compose
    1
    0 Votes
    1 Posts
    76 Views
    No one has replied