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
  • New UI widgets elements inaccessible to code model

    Moved Solved
    24
    0 Votes
    24 Posts
    6k Views
    ThirdStrandT
    Additional note: I built a new CMake file (using a file from another project and editing it) for an existing qmake project and attempted to build it. All components built until it got to building the UI. For some unknown reason, the resulting "ui_mainwindows.h" file, which is in it's normal place in the build folder was not found by CMake. I changed CMake to turning on AUTOUIC and it built properly. Then changed it back to the qt6_wrap_ui method and it continues to build properly.
  • How to delete preceding whitespaces with Qt Editor

    Moved Unsolved
    2
    0 Votes
    2 Posts
    238 Views
    Paul ColbyP
    Hi @JacobNovitsky, try selecting the lines, then Shift-Tab one or more times? :) Cheers.
  • Supplementing qt6_add_qml_module in CMake

    Unsolved
    5
    0 Votes
    5 Posts
    716 Views
    D
    Currently I am able to build my shared objects. I was able to simply use add_library(), as well as target_include_directories(). However, since qt_add_qml_modules() does a lot more under the hood I still have more work to do. I was able to auto-generate qmldir files (using the write capability of CMake). I am currently trying to invoke qt5's qmltyperegistrar with parameters to correctly generate my .qmltypes files, however I seem to be missing the *_metatypes.json, my *_*Plugin.cpp file, and my *_qmltyperegistrations.cpp is very bare. I am unsure if there is an additional stage before the type registration, there are references to lint as well as auto_MOC.
  • translation files with CMake

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    cristian-adamC
    Which CMake version are you using?
  • Invalid toolchain

    Moved Unsolved
    3
    0 Votes
    3 Posts
    614 Views
    cristian-adamC
    Just click "Apply" and the error will go away. At least this is what happens on my machine 🙂
  • 0 Votes
    5 Posts
    1k Views
    ThirdStrandT
    I am not sure I follow what you are attempting to do, but mention of the private-dev packages perked my ears. In a "Debian/Ubuntu"-esque environment, there are multiple *-private-dev packages, some of which are required for compiling additional libraries like QtMqtt. apt search "private-dev" for a long list for both Qt5 and Qt6. This may be the one you are looking for. qtbase5-private-dev/jammy-updates,now 5.15.3+dfsg-2ubuntu0.2 amd64 [installed] Qt 5 base private development files
  • Using ccache with Qt Creator, cmake and MSVC

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    A
    I created a minimal example (default console application without anything else). It fails in Qt Creator with the same error. On the command line, it succeeds. The trick seems to be that the path to ccache needs to be prepended in the project environment. It's not sufficient to add it to the build environment.
  • 5.15.10 build failed with qdoc

    Solved qdoc 5.15.10 msvc2022
    5
    0 Votes
    5 Posts
    873 Views
    A
    @cristian-adam I changed to https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_60-windows-vs2015_64-clazy.7z and it worked! Thank you very much!
  • Creator: Cannot write file ...\AppData\Roaming\QtProject\qtcreator\debuggers.xml

    Unsolved
    1
    0 Votes
    1 Posts
    295 Views
    No one has replied
  • Code completion is not working in QtCreator?

    Moved Unsolved
    18
    2 Votes
    18 Posts
    13k Views
    MehrshadM
    Thanks @JonB. But there's still a problem. As I am on a Mac, I cded to ~/Qt/'Qt Creator'/Contents/MacOS' and ran ./'Qt Creator' -tcs. Qt Creator opened up, with auto-completion and rest working, but when I closed the app an opened it again, no information was preserved, e.g. font size, Use FakeVim, etc.
  • Error when starting debug with Qt Creator

    Moved Solved
    4
    0 Votes
    4 Posts
    833 Views
    cristian-adamC
    It's a regression in Qt Creator 11.0.0. Qt Creator 10.0.2 works fine. See https://bugreports.qt.io/browse/QTCREATORBUG-29440 Take libcpp_stdtypes.py and replace your version from c:\Qt\qtcreator-11.0.0\share\qtcreator\debugger\libcpp_stdtypes.py and it should be fine.
  • ninja subcommand failed: How to get more info?

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    A
    @sierdzio said in ninja subcommand failed: How to get more info?: I have not tried this myself, but the documentation mentions a way to disable qmllint warnings, see: https://doc.qt.io/qt-6/qtquick-tool-qmllint.html#settings Yes, I've seen that page, but the .ini file seems to be ignored and I don't know how to pass these settings through cmake
  • Troubles with Clang Format in Qt Creator 11

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    A
    @SGaist Hi. Of course. I've divided it into two sections: https://bugreports.qt.io/browse/QTCREATORBUG-29435 https://bugreports.qt.io/browse/QTCREATORBUG-29434
  • Qt Creator creates file without permissions

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    N
    @JonB Ah ok, both are ext4. But i think the problem starts earlier, because the open() is already called with different parameters. It could still be some platform related reason, if the call is made from a lib or so, which differs. The Qt version is in both cases 5.15.3.
  • GDB Python version error on WIndows 11 pro

    Unsolved
    4
    1 Votes
    4 Posts
    679 Views
    K
    @cristian-adam Thanks for work around apparently it does work. Interesting is that in the new installation was only the libcpp_stdtypes.py available. Even though I have tried to debug a couple of times. Now with the version of creator 10.0.2 (I believe) libcpp_stdtypes.pyc was created immediately when debugger was started.
  • Memorizing the indexing and parsing

    Unsolved
    3
    0 Votes
    3 Posts
    331 Views
    T
    @sierdzio Ok. Thanks for letting me know. the_cowboy
  • What is "Replacement" good for ...and selection questions.

    Moved Unsolved
    4
    0 Votes
    4 Posts
    905 Views
    C
    @JKSH sure, except I didn't remove or delete the kit in any way. QT just decided it was gone after I restarted m computer
  • Unable To Find $(Qt_INCLUDEPATH_) And $(Qt_LIBS_) Macros In VS Qt Tool

    Moved Unsolved
    5
    0 Votes
    5 Posts
    926 Views
    A
    @SGaist Can you loop in anyone who has any idea about this. I see for some of my projects for all configurations the macros are enable and for some only for few configurations enabled. Maybe some option is not enabled. can Identify which one
  • How to open qt project in Qt Creator in one click or macro or shortcut in Ubuntu

    Moved Solved
    6
    0 Votes
    6 Posts
    939 Views
    jsulmJ
    @JacobNovitsky said in How to open qt project in Qt Creator in one click or macro or shortcut in Ubuntu: locate QtCreator Use which: which qtcreator"
  • Qt creator online install: 18 hours to install?

    Unsolved
    2
    0 Votes
    2 Posts
    455 Views
    SGaistS
    Hi, Try with a different mirror. For the size difference, there are the libraries for debug and release builds. The former are not installed by default with your package manager. As for Androïd build, unless your distribution explicitly provides it (which is highly unlikely), you need the installer (or build it yourself).