跳到內容

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 主題 35.5k 貼文
  • Qt Creator: log(message) doesn't print any output

    Solved
    4
    0 評價
    4 貼文
    28 瀏覽
    R
    Solved this by the following: Define a variable close to the top of your *.pro file which stores the result of $$escape_expand(\\n), e.g.: NL = $$escape_expand(\\n) When you want to use log("some string"), with a newline at the end, write it like this: log("some string$${NL}") Quirky, but it works. Apparently, the log() function is a thin wrapper around the C runtime fputs() function (which I found by looking in the source code for qmake in the file Qt/<version>/Src/qtbase/qmake/library/qmakebuiltins.cpp).
  • Qt Creator Context Menu Takes up the Whole Screen

    Unsolved
    1
    0 評價
    1 貼文
    23 瀏覽
    尚無回覆
  • Qt Plugins external folder?

    Unsolved
    13
    0 評價
    13 貼文
    200 瀏覽
    D
    okay so i think this is a bug
  • QTCreator 'forgets' or 'resets' everything on every launch

    Unsolved
    2
    0 評價
    2 貼文
    62 瀏覽
    SGaistS
    Hi, Did you check if the configuration of Qt Creator itself have been reset ? I am not sure whether they would be in the registry or in a file on Windows. By default it should be the former though.
  • CMake project configuration failed. No CMake configuration for build type "Debug" found.

    Solved
    3
    0 評價
    3 貼文
    114 瀏覽
    8Observer88
    Thanks you very much! I moved source code to src folder but I forgot to change it in the qt_add_executable section like this: qt_add_executable(app WIN32 MACOSX_BUNDLE src/debug-drawer.h src/debug-drawer.cpp src/main.cpp src/mainwindow.cpp src/mainwindow.h ) Solved: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp [image: 505009b2-2615-4569-b2c7-a9cbaa254558.png]
  • Should I enable lldb debug scripts?

    已移動 Unsolved
    3
    1 評價
    3 貼文
    199 瀏覽
    cristian-adamC
    @Perdrix Visual Studio has its Natvis debugging helpers. The scripting part from Qt is maybe related to Qt Creator. I don't know if it works with Visual Studio's DAP support. I remember seeing somewhere that the scripts should also help with Xcode. You could test and say if you can see this program: #include <QCoreApplication> #include <QList> #include <QString> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QList<QString> message; message << "Hello"; message << "Qt"; message << "World!"; qDebug() << message; // <-- breakpoint here } works just as well as it does with Qt Creator: [image: 63386ea4-2624-46b1-b0d8-b0e37a69e057.png]
  • 此主題已被刪除!

    Unsolved
    3
    0 評價
    3 貼文
    174 瀏覽
  • QtCreator: Completion/Suggestions include function parameters?

    Unsolved
    3
    0 評價
    3 貼文
    386 瀏覽
    JonBJ
    @Byloo If you are a real, interested person, no it does not put in whole parameters' text on autocomplete. If you are not a genuine person it doesn't matter --- but the answer is still here for others reading the initial post :)
  • Qt Creator, clangd, CMake and CUDA

    Unsolved
    2
    0 評價
    2 貼文
    284 瀏覽
    cristian-adamC
    @asenzz I have https://bugreports.qt.io/browse/QTCREATORBUG-28861 opened. Can you provide a small project that highlights the issue? Either comment on that bug or here.
  • Solution for Debug QtCreator Plugins with QtCreator from source

    Unsolved
    2
    0 評價
    2 貼文
    471 瀏覽
    P
    Or, in latest versions of QT (6.9.x), you could just build with MinGW...
  • Qt Kits issue

    已移動 Solved
    2
    0 評價
    2 貼文
    153 瀏覽
    jsulmJ
    @JacobNovitsky You did not set the Qt version in your kit...
  • Using Cursor AI to control Qt Creator

    已移動 Unsolved
    3
    2 評價
    3 貼文
    286 瀏覽
    D
    excellent
  • Qt Creator Running project

    已移動 Solved
    15
    0 評價
    15 貼文
    1k 瀏覽
    Q
    Also on QT 5.10.1 I can open the project but can not run. Ive read the following documentation but [image: 738a38ec-7ee8-4df0-82ef-e3d2c062a307.png] [image: c8bbb426-6608-4559-b8c8-671a3d6af413.png] [image: a86f9fb8-d8c2-4fbc-a82c-d13899adcb97.png] [image: 6a582c19-56e3-4579-bae5-a21d97953458.png] Ive read this documentation but the my SUBDIRS seems to be correct https://doc.qt.io/qt-5/qmake-variable-reference.html#subdirs The project that I am running is a Demo from the QT Company located here: https://code.qt.io/cgit/qt/qtdoc.git/tree/doc/src/snippets/qtcluster?h=5.10
  • creating subfolders causes QML build issue

    Solved
    10
    0 評價
    10 貼文
    1k 瀏覽
    SGaistS
    @Alex777 hi, That's something you should check the bug report system for and maybe open a discussion.
  • Downloading code.qt.io files

    Solved
    3
    0 評價
    3 貼文
    265 瀏覽
    Q
    This thread is the answer to my problem https://forum.qt.io/topic/92957/files-from-video
  • How to edit or create a shortcut in toolbar in Qtcreator

    Unsolved icon toolbar
    2
    0 評價
    2 貼文
    159 瀏覽
    S
    Add QToolButtons to the toolbar.
  • Qt Automotive Instrument Cluster Demo Source code/hardware

    Unsolved
    3
    0 評價
    3 貼文
    284 瀏覽
    Q
    @jsulm I simply asked the QT company if the source code for their demo is located on their website (http://code.qt.io). If so under which directory? They said this is technical support, which they do not provide without a license. I’m not sure how this is technical support if it’s publicly available & provided by them for the public. This is the equivalent of asking where the download link is for the installer.
  • Local LLM-assisted text completion for Qt Creator

    4
    3 評價
    4 貼文
    768 瀏覽
    cristian-adamC
    𝚕𝚕𝚊𝚖𝚊.𝚚𝚝𝚌𝚛𝚎𝚊𝚝𝚘𝚛 has now drag & drop support. This means you can upload source files to the model! 🎉 Or you can upload a. image to a multi-modal model and ask for a mockup application for example. Here is one example with 𝙳𝚎𝚟𝚜𝚝𝚛𝚊𝚕-𝚂𝚖𝚊𝚕𝚕-𝟸𝟻𝟶𝟽 https://youtu.be/bkrqAM8sStc
  • Qt Visual Studio Tools

    Unsolved
    1
    0 評價
    1 貼文
    153 瀏覽
    尚無回覆
  • How to change the UI font in Qt Creator (not Text Editor font, but for Qt Creator itself)?

    Unsolved
    4
    0 評價
    4 貼文
    261 瀏覽
    cristian-adamC
    @Robert-Hairgrove Qt Creator doesn't use such a stylesheet. But you can achieve this task. If you search this forum after "stylesheet" you will find some threads about this, how people tried to customize things back in the day 😀