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.5k Posts
  • Should I report a bug ?

    Moved Unsolved
    8
    0 Votes
    8 Posts
    686 Views
    JonBJ
    @AnneRanch Are you happy with the definitive answers you got here? Are you going to mark this topic as solved? Or just ignore everything?
  • Qt 5.12.12 install not finding any compilers on Win 10, fails to make useful Kits

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    VStevenPV
    Thanks @jsulm and @sierdzio OK - I installed MS VS2017 Professional and made sure to choose the right things. Now, the MSVC 2017 64-bit compiler and MinGW 64-bit compiler are both installed correctly. I then installed Qt 5.12.12 and it made Kits for both compilers, which is great. I was able to easily configure and build one of their examples, then verify it built a 64-bit app - by checking in the TaskManager. Thank you !
  • Qt Creator 6.0.2 released

    2
    0 Votes
    2 Posts
    414 Views
    hskoglundH
    Thank you, I'm on Windows and 6.0.2 feels snappier. Do the yellow warning triangles from ClangTools.dll also appear faster? (or maybe it's just me because I haven't had coffee yet). BTW they are nice to have , for example I learned from https://github.com/KDE/clazy/blob/1.10/docs/checks/README-qstring-arg.md that QString::arg accepts more than 1 QString, saves typing :-) Keep up the good work!
  • Qt6Natvis any1?

    Moved Unsolved natvis qt6
    6
    0 Votes
    6 Posts
    2k Views
    H
    Now there is something: https://download.qt.io/official_releases/vsaddin/ https://download.qt.io/official_releases/vsaddin/qt6.natvis from @firefly by www.c-plusplus.net/forum
  • How to use QMAKE to execute wildcard clean targets?

    Unsolved
    2
    0 Votes
    2 Posts
    285 Views
    sierdzioS
    Try good old message debugging ;-) QMAKE_CLEAN += QMAKE_DEL_DIR($(MOC_DIR)) /S /Q message($${QMAKE_CLEAN}) the answer likely is a semantic error. Yeah, qmake is very sensitive to those. Things to try: use double dollar sign and curly brackets QMAKE_DEL_DIR($${MOC_DIR}) /S /Q escape slashes
  • [solved] Qt Creator. How to use C++ error parser for custom build step?

    5
    0 Votes
    5 Posts
    3k Views
    F
    QtCreator 5 (maybe earlier, too) supports parsing also stdout, not only stderr: [image: a3db3fff-dcdd-4729-8361-209828ee9321.png]
  • QPromise not found...wrong kit in use ?

    Moved Solved
    10
    0 Votes
    10 Posts
    1k Views
    A
    SUCCESS Manged to rebuild, with lots of errors (to work on) , the entire project using 6.2.2. I did two things wrong I did not delete the user files , just renamed them I did not delete ALL user files. Thanks for your help.
  • QCreator puts slot handlers in wrong class.

    Moved Solved
    31
    0 Votes
    31 Posts
    4k Views
    M
    @andr said in QCreator puts slot handlers in wrong class.: Note that you can sort selected lines alphabetically by pressing Alt-Shift-S You can also change how they are sorted in the symbols drop-down by right-clicking on it and then checking 'Sort Alphabetically'. That is a sticky option that then applied to all files. [image: 7309496c-768b-4b2d-bec5-6063e4d174cd.png]
  • How do I ...

    Moved Unsolved
    4
    0 Votes
    4 Posts
    411 Views
    M
    It's not clear to me what you are referring to in the 'upper right section' of your screenshot. Are you wanting to delete the files -- delete them from your computer, or do you just want to close them so they are no longer opened in QtCreator? If the latter, you can right-click on the filename dropdown and get a menu with options to close some or all of the currently opened files. [image: 963da6b3-0347-44d5-9438-4f28ac50d0b6.png]
  • Qt Visual Studio Tools

    Unsolved visual studio visualgdb rpi qmetaobject superdata
    4
    0 Votes
    4 Posts
    2k Views
    S
    We have a little more information regarding our problem. When using Visual GDB to create a new QT project for Raspberry PI, if the toolchain folder ‘C:\SysGCC\raspberry\Qt\v5-CMake’ doesn’t exist or is empty, the QT build tools are automatically downloaded and installed. The problem we are seeing is that the build tools end up being a different version (Qt v5.15.2) than what is being used on our target Raspberry Pi platform (Qt v5.12.3). This results in the following error produced by the moc compiler indicating that its attempting to compile using the much newer header libraries. LinuxProject1_autogen/EWIEGA46WW/moc_MainWindow.cpp:80:18: error: 'QMetaObject::SuperData' has not been declared QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(), ^~~~~~~~~ LinuxProject1_autogen/EWIEGA46WW/moc_MainWindow.cpp:80:65: error: expected primary-expression before ')' token QMetaObject::SuperData::linkQMainWindow::staticMetaObject(), Is there anything we can set in Visual Studio or elsewhere that will insure the downloaded Qt build tools match the Qt version on the target board? This is our development environment Windows 10 Visual Studio 2017 Qt Visual Studio Tools Version 2.8.1.6 Visual GDB 5.6R2 Qt build tools vers 5.12.3 And we are targetting Raspberry PI OS vresion Raspbian 10. We are working around this problem by manually copying the odler set of build tools into ‘C:\SysGCC\raspberry\Qt\v5-CMake’ before making a new project using VisualGDB. We were fortunate that we had an older set of Qt build tools on another development PC to copy these from. This is not a good long term solution for us.
  • 0 Votes
    5 Posts
    2k Views
    F
    I haven't solved the problem yet, but I know what caused it. QtCreator is doing what it's supposed to, that is, finding the 5.15.1 libraries correctly. My problem is that my Cutelyst version was built with Qt 5.12.8. CMake automatically found and used the Qt 5.12.8 libraries I have installed, which allowed the version built with only CMake to run correctly. So, I built a Cutelyst version manually using the 5.15.1 libraries instead. I'm having trouble getting CMake to detect that version, but that's a separate issue, so I'll close this one.
  • Multiple Tab support:Qt Creator

    Unsolved
    15
    3 Votes
    15 Posts
    16k Views
    andrA
    @JonB said in Multiple Tab support:Qt Creator: @mrjj said in Multiple Tab support:Qt Creator: and ctrl +K is so much better than tabs. wtf does Ctrl+K do? :) It opens the "Locator" which lets you search for practically anything with a few keystrokes, see https://doc.qt.io/qtcreator/creator-editor-locator.html To explain the idea a bit (and mostly repeat what others have said here): Tabs do not scale beyond a few dozen files. It's not an efficient way to handle non-trivially sized projects. If you really need to see the names of your open files on screen to be able to jump around using mouse, you can use the "Open Documents" view. That's kind of similar to "vertical tabs". And also doesn't scale well beyond a few dozen files. And there are better ways to navigate around a project. I found it useful to forget about the notion of "open files": The main entity is the project. Files are part of a project, and file contents is important. Whether the files themselves are "open" in some not directly visible buffer (accessed by tabs or otherwise) does not really matter for the project, nor for the contents, and is really secondary when you can jump to the right file when needed. At this time you have a context, like "Usages of symbol X" or "Definition of class Y" or such, i.e. you are already at a mention of X or Y. From there it typically takes just one of the navigation shortcut to "open" the file. It is really rare that one sit in fronts of the project and then thinks "I need to go to file abc.cpp" without further context. And even then, that's just Ctrl+K + some unique bits of "abc.cpp". Which is in all non-trivial projects faster than optically scanning through tabs, perhaps handle "overflown tabs" etc.
  • QT creator crashes during debugging (Linux)

    Unsolved
    3
    0 Votes
    3 Posts
    434 Views
    kshegunovK
    @jsulm said in QT creator crashes during debugging (Linux): What QtCreator version on which Linux distribution? My 6.0.1 on debian does crash from time to time, but I haven't had the will to track the reason. It's rare enough that it's just annoying.
  • subproject has issues wiht SAME named objects

    Unsolved
    3
    0 Votes
    3 Posts
    251 Views
    J.HilkJ
    [image: 6Jb92WB.png]
  • Cannot place breakpoints in subproject

    Moved Unsolved
    3
    0 Votes
    3 Posts
    250 Views
    A
    @mchinand said in Cannot place breakpoints in subproject: Is main.cpp part of more than one of your sub-projects? If so, that yellow warning is stating that It doesn't know which sub-project (and primarily, the sub-project's settings/configuration) to use for the syntax highlighting. There should be an added drop-down menu at the top of the edit window to select the context (sub-project) that it should use. Also, it's unusual for a main.cpp file to be part of two sub-projects. ...but I should be able to set breakpoints and run / debug ONLY subprojct. I'll check for the other menu...
  • Help working on windows arm devices (QT6)

    Unsolved
    2
    0 Votes
    2 Posts
    787 Views
    SGaistS
    Hi, This is mainly an educated guess but: there's likely a cross-compiler provided by MSVC qmake wise, you should be able to use the one from the x86_64 version and there is the win32-arm64-msvc mkspec that I suspect it geared toward that platform. So I would go with setting up a kit in Qt Creator if not already available that uses that Qt build with the Visual Studio cross-compiler. Hope it helps
  • Cannot drag icons from action editor into windows designer

    Unsolved
    2
    0 Votes
    2 Posts
    174 Views
    SGaistS
    Hi, Please give more details like software version, OS, etc A video showing your issue might also help.
  • can *.creator projects be a part of subdir project?

    Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • QT Creator 6.0.1 Design view not working

    Moved Unsolved
    8
    0 Votes
    8 Posts
    4k Views
    artwawA
    @Crisian-Adam-0 what I believe that my definition of the word "integrated" is somewhat different. Obviously I could not notice since I don't remember when I was installing Qt from scratch.
  • Configure / Build Qt Project (cmake) from batch script on Windows

    Solved build cmake command line
    3
    0 Votes
    3 Posts
    2k Views
    gde23G
    @Christian-Ehrlicher Got it working by myself now, but thanks anyhow for the quick reply. The problem was that i called cmake from within the source not the build dir so it ran cmake for a fresh new build that wasn't already setup from within Qtcreator and did not know where to search for Qt stuff. This is my script now: cd C:\Build\myQtApp\build_r cmake -S Y:/ -B C:/Build/myQtApp/build_r "-DBUILD_TYPE_1:BOOL=ON" "-DBUILD_TYPE_2:BOOL=ON" cmake --build C:/Build/myQtApp/build_r --target all -j2 ... cmake -S Y:/ -B C:/Build/myQtApp/build_r "-DBUILD_TYPE_1:BOOL=OFF" "-DBUILD_TYPE_2:BOOL=ON" cmake --build C:/Build/myQtApp/build_r --target all -j2 The boolean parameters BUILD_TYPE_1 and so on are used inside cmake to add a preprocessor defines that are then used to switch between different build configurations just in case anybody wants to know. In cmake: if(BUILD_TYPE_1) message(STATUS "Build Type: Type 1") add_definitions(-DBUILD_TYPE_1) endif() in c++ #ifdef BUILD_TYPE_1 ... #endif