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.5k Topics 35.1k Posts
  • Using qmake for the first time

    Unsolved a day ago
    0 Votes
    5 Posts
    76 Views
    Hmm... amonra@Saturn kchmviewer-master % cat .qmake.conf QMAKE_MACOSX_DEPLOYMENT_TARGET = 13.4 QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64 QT += core5compat amonra@Saturn kchmviewer-master % but it didn't appear to impact the subdirectory stuff as I still get the same problem. Clearly there's more to this... David
  • How to install Qt Creator on Windows 7? Last working version?

    Moved Unsolved 3 days ago
    0 Votes
    6 Posts
    188 Views
    @garlicbox I think Creator 4.14 still works in Windows 7. You might try that from the link @Christian-Ehrlicher gave you. Regards
  • Navigate to header in source tree

    2 days ago
    0 Votes
    1 Posts
    42 Views
    No one has replied
  • Live Camera Showing Black Screen

    Solved 3 days ago
    0 Votes
    10 Posts
    266 Views
    @SGaist Thank you!
  • Asking how to help improve Qt

    Unsolved 3 days ago
    0 Votes
    2 Posts
    74 Views
    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 3 days ago
    0 Votes
    2 Posts
    72 Views
    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 days ago
    0 Votes
    4 Posts
    151 Views
    @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.
  • 0 Votes
    13 Posts
    12k Views
    @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.
  • 0 Votes
    5 Posts
    306 Views
    What means complex structure ? It seem that it takes nearly exactly the same time in every dialog in dependent of its count of widgets. Nothing seem to be cached. The next call of the same issued costs exactly the same time. Cannot really understand what is the complexity to find a funktion with a special signature in some code lines. Esprcialy because the old Creator made this task 25 times faster. Besides, a nice feature for the Designer would be, if on can see in the slot list if a slot funktion exists yet. A * sign or so. Sometimes I have not the overview what kind of slots are connected und I must check it all - what is very slow now.
  • Creator crashes by opening a special cpp-file

    Unsolved 15 days ago
    0 Votes
    5 Posts
    367 Views
    @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 7 days ago
    0 Votes
    2 Posts
    119 Views
    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
    76 Views
    No one has replied
  • Using Program Arguments with perf with Terminal Window

    Unsolved 16 May 2022, 14:33
    0 Votes
    7 Posts
    805 Views
    @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 11 days ago
    0 Votes
    1 Posts
    95 Views
    No one has replied
  • 0 Votes
    1 Posts
    77 Views
    No one has replied
  • 0 Votes
    15 Posts
    1k Views
    @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 17 days ago
    0 Votes
    8 Posts
    449 Views
    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
    193 Views
    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 20 days ago
    0 Votes
    4 Posts
    309 Views
    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
    166 Views
    @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...