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.3k Posts
  • Missing arch linux debug symbols

    Solved
    7
    0 Votes
    7 Posts
    72 Views
    C
    I ended up cloning the latest version from github: git clone https://github.com/qt/qtbase then running cmake install with the cmake variables I need like vulkan
  • Local LLM-assisted text completion for Qt Creator

    1
    2 Votes
    1 Posts
    27 Views
    No one has replied
  • Qt Creator: query on GraphsView and C++ model interaction:

    Unsolved
    4
    0 Votes
    4 Posts
    82 Views
    JKSHJ
    @avio said in Qt Creator: query on GraphsView and C++ model interaction:: @JKSH Many thanks, your help is very much appreciated. I have followed your advice: excellent result! I guess this approach should also work well for real-time data streaming from the C++ backend. Great to hear! You're welcome. Before I close this conversation, I have a question, though, if I may, about the view-model approach I originally attempted. Surely, that must work too. Further debugging has shown that QML does call "QVariant data(const QModelIndex &index, int role) with a valid "index". Yet, "role" has got "random" values nowhere near the ones (257, 258) in the enum role below We'll need to see your QML code (how you integrate your model with the GraphsView) to be able to say what went wrong. Seeing your implementation of List2dPlotModel::data() could also be helpful.
  • QtCreator:How to use kits qt5.12.12 debug project in QtCreator 16/17

    Unsolved
    2
    0 Votes
    2 Posts
    37 Views
    cristian-adamC
    You need to update your gdb, not the whole toolchain. See https://www.qt.io/blog/mingw-and-side-by-side-manifests for details.
  • Is there a way to visually edit a cpp file with Design

    Solved
    9
    0 Votes
    9 Posts
    150 Views
    A
    @SGaist said in Is there a way to visually edit a cpp file with Design: To add to @JonB, the header generated by uic is not to be edited. Check the designer examples. You have a pair of header/implementation files that will use that generated header and that's where you'll be adding the business logic Yes i know, and i did not wanted to edit the .h generated from the .ui after i saw it was just a .h for interfacing @JonB said in Is there a way to visually edit a cpp file with Design: Still don't understand what you are actually saying. It's just that i'm working on a project that is 13 year old, and all the interface is made whit C++, no ui file at all, only pure cpp and some java scripts. Adding some elements in midle of the existing code of the interface is not possible whit .ui files I wanted to know if there was a way to have any kind of interface editor for all the layout and widgets made in C++. And after reasearch and the first answer that confirmed that we can't do anithing whit cpp files on designer, i understood that i can't have any interface editor for what i have.
  • 0 Votes
    9 Posts
    103 Views
    cristian-adamC
    Which type of project are you trying to use? C++ or Python? At https://forum.qt.io/topic/158263/line-0-the-design-mode-requires-a-valid-qt-kit there a similar case.
  • Qt Creator hangs when deploying to a remote device if that device is rebooted.

    Unsolved
    4
    0 Votes
    4 Posts
    138 Views
    A
    @sbela I reported the issue, you can vote: https://bugreports.qt.io/browse/QTCREATORBUG-33302
  • 1 Votes
    4 Posts
    870 Views
    cristian-adamC
    @breeze0801 has been fixed now. Will be part of Qt Creator 17.0.1. You can get a snapshot the next days from https://download.qt.io/snapshots/qtcreator/17.0/17.0.1/ Thank you for reporting, your message triggered this fix!
  • 0 Votes
    7 Posts
    183 Views
    Deng_YaoheD
    @SGaist Yes,it worksπŸ‘
  • Qt on RPi 4B has missing libraries

    Solved
    6
    0 Votes
    6 Posts
    117 Views
    JonBJ
    @OldRoly Qt Creator is just a standalone IDE, it does not bring any Qt packages with it for you to use to build your own programs, technically it could be used as e.g. a text editor without anything to do with Qt development (though you would not want to). I don't know why you ask for the "complete package" and then mark this topic as Solved with no further comment. To build your own code you need to fetch some of the distro packages. I can't recall just what they are called, and it can vary from distro to distro or release to release, but you need to type something like sudo apt install qt and then press the Tab key once or twice to see the offered completions. You will probably want things starting from qt6 and then Tab, there something like qt6-dev with most of what you will want? You can Google for what exactly the names are and what might be wanted, but as I say the names change so it may not be accurate for current your distro.
  • Fakevim ex commands for multiple lines don't work as expected

    Unsolved
    5
    0 Votes
    5 Posts
    108 Views
    SGaistS
    @peblus hi, Your link is the correct one :-)
  • QTCreator 17 : code bookmarks and bookmarks in help pane

    Unsolved
    3
    0 Votes
    3 Posts
    63 Views
    R
    @cristian-adam I think its more a bug. They key bindings that dont work are in the hover. I'll follow up later.
  • Qt Creator settings - backup & setup another machine

    Unsolved
    3
    1 Votes
    3 Posts
    569 Views
    H
    Unfortunately, not.
  • QTCreator 17 : Silver Searcher options not visible in find.

    Solved
    4
    0 Votes
    4 Posts
    95 Views
    R
    @aha_1980 I see. My error was not setting scope to "files in file system" - which then requires a root dir. The option isnt available in the project/projects scope for some reason. Since I cant tell if ag is being used in project scope, I'll assume it is after setting it in file scope. post edit : it doesnt. Hmm. Ok. so use "file system" and set directory root to "current". It seems a little strange. But all good.
  • Navigate to header in source tree

    Solved
    4
    0 Votes
    4 Posts
    267 Views
    Aleksey_KA
    Solved by moving build dir out from the source one: Initial project structure: + app β”œ src β”‚ β”œ build β”‚ β”‚ β”” Desktop_Qt_6_8_2-Debug β”‚ β”” CMakeLists.txt β”” conanfile.py Current one: + app β”œ build β”‚ β”” Desktop_Qt_6_8_2-Debug β”œ src β”‚ β”” CMakeLists.txt β”” conanfile.py This move also cleaned up the project tree from cmake generated garbage.
  • QtCreator: Refactoring shreds project

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    Christian EhrlicherC
    @osirisgothra what's the point of recroposting an 8 year old thread?
  • Qt 6 on RPi 4 broken installation

    Unsolved
    2
    0 Votes
    2 Posts
    75 Views
    cristian-adamC
    For #2 it would help it you could provide information why it won't start. Usually you get some error output when you run the application from the terminal. Qt 6.8.0 package on Linux arm64 does not work on Debian 11 is one bug report regarding running on Raspberry Pi. For #3 you need to install the Qt development packages, which are not needed for just running Qt applications like Qt Creator. At https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04 you have a tutorial on how to build Qt Creator itself using a host Qt installation (no Qt SDK involved). You will have to do a few calls to sudo apt install to get things running. Ubuntu is based on Debian and I do hope that the package naming is the same.
  • External terminal does not stay open after running the program

    Unsolved
    4
    0 Votes
    4 Posts
    140 Views
    Pete CarterP
    @aha_1980 @cristian-adam Thanks you for your help
  • QtCreator's QtSingleApplication not so single?!

    Solved qtcreator single instance
    4
    0 Votes
    4 Posts
    116 Views
    Pl45m4P
    @cristian-adam Now it behaves like expected :) @Christian-Ehrlicher I'm not after to reproduce this behavior in my app, I just stumbled upon this part in the code of QtC and thought about it. Because you can usually open multiple instances of QtCreator at the same time. So you need extra arguments to activate the single App behavior... I did not know that :)
  • Release Note Qt 6.8.3

    Unsolved
    2
    0 Votes
    2 Posts
    63 Views
    Christian EhrlicherC
    See https://wiki.qt.io/Qt_6.8_Release (google: "qt6.8.3 release notes")