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
  • Qt Creator auto format

    Unsolved
    3
    0 Votes
    3 Posts
    469 Views
    C
    @JonB "copy" solved the problem of placing the items, but can you explain to me how I can make it work? Like in the case of the 'if' above, here's my code and it also says that it doesn't have the 'clang' and other items. [image: WA4FfT2.gif]
  • Qt Creator : how to invoke uic automatically ?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    JonBJ
    @dpcrd said in Qt Creator : how to invoke uic automatically ?: @JonB : I love your way of "solving" problems 😂 ! Why didn't I ask some AI to do my job ? But wait ! How about my wages, then ? 🤔 I very rarely refer to ChatGPT. I did on this occasion because I did not know the answer and had trouble finding it. Your script always runs uic on every .ui file. If properly integrated into the build process it would only run it where .ui file timestamp newer than generated ui_....py file. However I guess it does not take too long.
  • Problems running lupdate from within Qt Creator

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    R
    In the meantime, I found the solution for me that works here: https://lists.qt-project.org/pipermail/interest/2017-December/028990.html I have the .cxx file in a separate folder called locale which I exclude (along with 3rd-party code) like this in the .pro file: lupdate_only { TR_EXCLUDE += \ ../3rd_party/* \ src/locale/* } At first, this didn't work until I realized that the /* after the folder name is important. Also, my lupdate finishes now in a second or two, as opposed to several minutes before. :)
  • How to configure Qt Creator and PySide

    Solved
    2
    0 Votes
    2 Posts
    3k Views
    D
    OK, the solution was indeed to add ENVNAME\Library\bin to PATH... with the right syntax 😉.
  • VS2022 Qt Addin moc problem

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    S
    Hello @Chris-Kawa, we tried many things and found a solution for our problem. The main problem was the given Includes are ignored. [image: 3b732675-7fdd-4d36-a60e-2c7b8d4df66a.PNG] We set "Override C/C++ Properties" to "Extend" and append all include paths in "Additional Inlucde Directories". [image: dab6d750-aed6-4536-a9da-648204b30a17.PNG] Is that a bug? We got another little problem with the C/C++ Preprocessor Defines. We cant set them because in the project was only one cpp file in our project and this is set to moc. We had to add a dummy.cpp file so you can get the C/C++ tree tab. [image: fd9f5e30-1597-4825-b3e9-5ea09a8e0f3e.PNG] Thanks for your help.
  • Network error when retrieving meta information from remote repository

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    T
    @jsulm I have solved the problem. Thanks a lot
  • Qt Creator 9.02 can't set ICON from my customize theme on UI designer

    Unsolved
    1
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • qt_add_resources error

    Unsolved
    2
    0 Votes
    2 Posts
    448 Views
    Christian EhrlicherC
    @abdelmaegd said in qt_add_resources error: Is this issue in the macro itself ? No since the macro only invokes cmake and rcc so you should create a cmake bug report but I doubt this will get high priority - even you're correct a qrc file is not meant to be modifed by anything else but the Qt tools.
  • Qt creator design tab greyed out

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    cristian-adamC
    You need to enable the QmlDesigner plugin in the plugins dialog. https://www.qt.io/blog/qt-creator-6-released mentions this as: The integrated Qt Quick Designer is now disabled by default. Qt Creator will open .ui.qml files in Qt Design Studio. This is a step towards a more integrated workflow between Qt Design Studio and Qt Creator (video). Qt Quick Designer is still there, you can manually enable it again by checking the QmlDesigner plugin in Help > About Plugins.
  • Output extra function args details

    Moved Unsolved
    3
    0 Votes
    3 Posts
    208 Views
    I
    @JonB when you target class with mouse it outputs extra details, but I want it to be static is there a way?
  • Expand QTextBroswer in QTabWidget

    Unsolved
    3
    0 Votes
    3 Posts
    358 Views
    L
    @jsulm Wow. Thanks. That worked. I guess I was not paying close attention that when I did it before, I right clicked on the container (QDialog) and not the widget (QTabWidget) in the container to get the QTabWidget to expand. So right clicking on the QTabWidget and selecting Lay Out in a Grid expanded the QTextBrowser. Was a long day and I guess my attention span was waning.
  • AUTOMOC issues when using QObject and QQmlContext

    Solved
    2
    0 Votes
    2 Posts
    307 Views
    Christian EhrlicherC
    See https://bugreports.qt.io/browse/QTBUG-102965 - remove Q_DECLARE_METATYPE(QList<QObject*>) from the header or update to Qt >= 6.3 or use the workaround mentioned in the bug report.
  • Installing '' Can't download archive"

    Unsolved
    7
    0 Votes
    7 Posts
    682 Views
    jsulmJ
    @trangggg Come on, I gave you the link! Did you check it?
  • Qt Creator import existing project not working, include headers parsing error

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • Qt Creator cannot copy code with HTML

    Unsolved
    1
    0 Votes
    1 Posts
    178 Views
    No one has replied
  • Color pane not showing properly on Qt Creator 9.0.1 | Mac OS

    Unsolved
    3
    0 Votes
    3 Posts
    288 Views
    E
    Exact same issue happening to me. I'm using Qt Creator 9.0.2 on Qt 6.4.2. Apple arm64. Hoping one of the devs sees this or there is a work around. Seems like it could be an easy fix
  • Variable not accessible during remote debugging

    Unsolved
    4
    0 Votes
    4 Posts
    398 Views
    Q
    @Mark81 We also have this problem. but with MFC , vs can display the variable value. did you use cdb remote debug or remote debugger ?
  • Debugging with QtCreator doesn't work correctly

    Moved Unsolved
    5
    0 Votes
    5 Posts
    383 Views
    ?
    @andr Using -O0 -g really makes a difference, the values are not optimized out anymore. I don't quite understand why this is, since I thought that g3 with -Og would create the most debug information, but at least it works now. The problem with the expression evaluator still remains though, it behaves the same as in the video. Do you have an idea why that might be?
  • QtCreator : auto-complete doesn't work with class std::string

    Unsolved
    2
    0 Votes
    2 Posts
    336 Views
    H
    So, I installed default QtCreator through apt, version 3.5.1. And its auto-complete works good, while 4.0.0 version's still doesn't work with std::string. I can use this version, but I still do not understand what's wrong with QtCreator 4.0.0 version which I've successfully built earlier from sources. By the way, I don't use ClangCodeModel in 4.0.0 version. It isn't even installed there.
  • Can't print the qmodel file

    Unsolved
    3
    0 Votes
    3 Posts
    259 Views
    Z
    @Milosz As it stands, that seems to be the solution, yes. The model editor plugin doesn't implement direct printing.