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.3k Posts
  • How to install Qt Creator on Windows 7? Last working version?

    Moved Unsolved
    9
    0 Votes
    9 Posts
    934 Views
    jsulmJ
    @garlicbox said in How to install Qt Creator on Windows 7? Last working version?: Can it be configured? And how to do it? Yes. Go to the Kit configuration. Add your custom Qt build there. If needed also the VS2017 compiler (should have been auto-detected by QtCreator). And then create a Kit with your Qt version and the compiler.
  • Navigate to header in source tree

    2
    0 Votes
    2 Posts
    218 Views
    S
    Why are you copying the header file to the build dir? Usually, this is not necessary. @Aleksey_K said in Navigate to header in source tree: navigates me to the header file copied to build dir, not to the original one in the source tree. Usually, this is because of the order of directories in the include search paths. I am only aware of additional preprocessor defines in QtCreator, but not separate include search paths.
  • Using qmake for the first time

    Unsolved
    7
    0 Votes
    7 Posts
    639 Views
    PerdrixP
    OK thanks - I'll work it all out ... D.
  • Qt Creator remote editing and debugging?

    Unsolved
    4
    0 Votes
    4 Posts
    471 Views
    SGaistS
    @Nikolay-Levun Answered in your thread
  • Live Camera Showing Black Screen

    Solved
    10
    0 Votes
    10 Posts
    957 Views
    QtFriend2024Q
    @SGaist Thank you!
  • Asking how to help improve Qt

    Unsolved
    2
    0 Votes
    2 Posts
    222 Views
    SGaistS
    Hi, The most simple way is to go to the bug report system and check the open issues. Find one that interest you and start hacking on it :-)
  • Prevent generation of qt.conf

    Unsolved
    2
    0 Votes
    2 Posts
    251 Views
    hskoglundH
    Maybe you can get around this problem by creating an empty qt,conf file at a place with higher priority than the current directory, I'm thinking of storing it in your executable as a resource ( i.e. :/qt/etc/qt.conf) more here: https://doc.qt.io/qt-6/qt-conf.html P.S. If Qt does not like an empty qt.conf, try (almost) the same as above: [Paths] Prefix = .
  • QtCreator missing examples (no Qt version drop down)

    Solved
    4
    0 Votes
    4 Posts
    448 Views
    B
    @ziller - Thanks for the reply, correct when I built Qt from source there weren't any examples (as I didn't build the doumentation), but as I did use the online installer initially for Qt6.8.1 it added those examples in the correct place yet they were still not seen after what I believe I did, which was install the stand alone QtCreator 16. It was at this point 'I think' the versions drop down for the examples disappeared, but I cannot be sure, hence posting). After posting I then installed from the maintenance tool the latest Qt6.9.1 MSVC, yet still no examples, but also a hint was that those newly installed kits didn't appear in the auto detected list. This was how I ended up seeing the 'Link to Qt' option which once done brought back all of what should of been the auto detected kits, and the examples for the versions installed by the maintenance tool. What's not clear is why they disappeared (I'm assuming the QtCreator 16 install as a stand alone wiped a settings/configuration for QtCreator - I'm going to try and look deeper at that today as time permits.
  • cc1plus.exe: out of memory | 60MB encrypted resource file

    Solved qrc rcc cc1plus.exe error resources
    13
    0 Votes
    13 Posts
    12k Views
    L
    @supaiku_ you call that necroposting? This is necroposting! I just discovered resources_big via this thread and it is a-maz-ing. It's also now documented: https://doc.qt.io/archives/qt-5.15/qtcore-cmake-qt5-add-big-resources.html I have a chunky-but-not-altogether-unexpected ~40MB referenced in my qrc, and it was blowing up with the dreaded "virtual memory exhausted: Cannot allocate memory" when compiling on a 32-bit target. No amount of exhaustive and exhausting memory tuning could prevent memory usage (not even involving swap!) from hitting the 2GB critical limit. I simply removed my qrc file from set(PROJECT_SOURCES in CMakeLists and reinstated it in qt5_add_big_resources(PROJECT_SOURCES instead. And boom, compilation blasted through the rcc step and barely broke 1GB usage getting the whole job done.
  • Creator crashes by opening a special cpp-file

    Unsolved
    5
    0 Votes
    5 Posts
    667 Views
    Andy314A
    @Axel-Spoerl said in Creator crashes by opening a special cpp-file: Does that happen with any file or just with that specific one? I have worked with a lot of files the last days, so I think its the only file.
  • Exec show hide problem i have

    Unsolved
    2
    0 Votes
    2 Posts
    260 Views
    SGaistS
    Hi and welcome to devnet, Are you trying to implement some sort of wizard ? If so, take a look a QWizard.
  • 0 Votes
    1 Posts
    153 Views
    No one has replied
  • Using Program Arguments with perf with Terminal Window

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    RokeJulianLockhartR
    @Alex-sw30, you might find strace useful for debugging this, since it should display the calls Qt Creator makes to invoke your application. Whether these differ with those options enabled or not might demonstrate something of use, although it's quite verbose.
  • How to debug a qt creator build dll memory leak in exe?

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

    Solved conan qtcreator15 cmake
    16
    0 Votes
    16 Posts
    2k Views
    S
    @cristian-adam Thanks no everything is working. <3 Really appreciate that you took the time. I'll mark this post as solved for others who may come across this post. So my learnings are: Solution/Learnings -Conan 2.0 + Qt Creator . You don't need the conan plugin for Qt Creator --> as for now March 2025; QT Version 6.9, Creator Version 16.0.0 conanfile 2.0 support for .txt and .py is build in Enable packagemanager auto setup in the cmake settings of your qt creator project If everything works fine you don't have to enter any conan command manual For anyone to copy and paste here the small demofiles for spdlog: conanfile.py: from conan import ConanFile from conan.tools.cmake import cmake_layout class ExampleRecipe(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "CMakeDeps", "CMakeToolchain" def requirements(self): self.requires("spdlog/1.15.1") def layout(self): cmake_layout(self) main.cpp: #include <iostream> #include <spdlog/spdlog.h> #include <spdlog/sinks/basic_file_sink.h> #include <spdlog/sinks/rotating_file_sink.h> #include <memory> int main() { try { // Einfacher Konsolen-Logger spdlog::info("Welcome to spdlog!"); spdlog::warn("This is a warning!"); spdlog::error("This is an error message!"); spdlog::debug("This debug message won't show unless you change the log level."); // Log-Level auf debug setzen spdlog::set_level(spdlog::level::debug); spdlog::debug("Now debug messages are visible!"); // Logger, der in eine Datei schreibt auto file_logger = spdlog::basic_logger_mt("file_logger", "logs/basic_log.txt"); file_logger->info("Logging to basic file."); file_logger->warn("Some warning in file log."); // Rotating file logger (max 5 MB pro Datei, max 3 Dateien) auto rotating_logger = spdlog::rotating_logger_mt("rot_logger", "logs/rotating_log.txt", 1048576 * 5, 3); rotating_logger->info("This is a rotating logger."); rotating_logger->error("Something went wrong in rotating logger."); // Log-Pattern ändern spdlog::set_pattern("[%Y-%m-%d %H:%M:%S.%e] %v [%l]"); spdlog::info("Using custom log pattern now."); // Flushing spdlog::flush_on(spdlog::level::info); } catch (const spdlog::spdlog_ex& ex) { std::cerr << "Log initialization failed: " << ex.what() << std::endl; return 1; } } CMakeLists.cpp: cmake_minimum_required(VERSION 3.24) set(CMAKE_CXX_STANDARD 20) project(spdlogexample) find_package(spdlog REQUIRED) add_executable(spdlogexample main.cpp) target_link_libraries(spdlogexample PRIVATE spdlog::spdlog) install(TARGETS spdlogexample)
  • How to open an exists project from the remote PC?

    Solved
    8
    0 Votes
    8 Posts
    813 Views
    SGaistS
    So it's exactly the same as for embedded systems. You cross-compile, copy and execute. Otherwise you also have VS Code (or alternatives) that have a remote dev feature through tunneling and some additional software installed on the other machine.
  • 0 Votes
    2 Posts
    293 Views
    Christian EhrlicherC
    Use a debugger and set a breakpoint in qsslsocket_openssl_symbols.cpp/tryToLoadOpenSslWin32Library: https://code.qt.io/cgit/qt/qtbase.git/tree/src/network/ssl/qsslsocket_openssl_symbols.cpp?h=5.3
  • Qt Creator 16 crash under Wayland during debugger break mode

    Solved
    4
    0 Votes
    4 Posts
    496 Views
    U
    I found that turning off the "Clang Code Model" plugin returned qt creator to normal operation, without the need for the QT_QPA_PLATFORM=xcb workaround.
  • 0 Votes
    2 Posts
    274 Views
    Axel SpoerlA
    @pi-squared said in Menu bar menu so long it cuts off, making me unable to add more buttons. (Yes, I'm being serious.): It works looks fine when running it, though. Do I understand that correctly - the first screenshot is from the Widgets Designer as part of Qt Creator, the second is from running the compiled executable? If I create large menus, I usually do it programmatically, not in Widgets Designer. I'd probably use a static constexpr std::array to store menu texts, maybe use a struct as a type that tells me whether a menu's action is enabled by default. Maybe I'd even keep an enum around that has a key for each action. Just loop over the array and add actions. That's much easier to maintain, than to change an entry in Widgets Designer. It hasn't been programmed to handle super large menus...