4,965 questions
0
votes
0
answers
88
views
How do I print to application output window when debugging python in Qt Creator IDE?
I'm debugging a python project (pyproject) in Qt Creator using built-in debugger.
Python print() outputs only to Debugger Log window, where it's mixed with a lot of actual debugger output making it ...
1
vote
1
answer
79
views
How to open/close the bottom panel using shortcuts in Qt Creator?
I use Qt Creator 17.0.1.
I want to open and close the bottom panel (the one that shows Issues, Search Results, Application Output, etc.) using keyboard shortcuts:
Which shortcuts can do this?
1
vote
1
answer
60
views
Qt Creator does not recognize \ character as Doxygen prefix
At the moment, I write Doxygen keywords as @brief, but I would like to write \brief.
The problem is that when I start typing the \ character, Qt Creator does not provide Doxygen keyword completion. It ...
-3
votes
1
answer
89
views
QT Creator 17.0.1: Clang-Tidy interface looks nothing like documentation
I'm trying QT Creator's Clang-Tidy interface. The documentation suggests I'll see something usable and aesthetically appealing, like this:
The reality is a vomit of command-line output, like this:
...
0
votes
0
answers
52
views
C++: Using QtCreator on macOS without Xcode
I'm completely new/inept at computer things. I'm taking an intro CS course and we're using QtCreator. I have a Mac with a software version (Sonoma 14.8) that can't be updated to the version that's ...
0
votes
0
answers
63
views
Root for relative includes in Qt Creator
I have a C++ project which uses CMake as a build system.
Upstream recently refactored the code, moving most of the project’s own code to a subdirectory. For example, foo/foo_base.hpp is now in subdir/...
-1
votes
0
answers
33
views
How to edit or create a shortcut in toolbar in Qt_creator software
I want to edit the toolbar in qtcreator and add my icons and shortcut to it. Is it possible? How?
i tride right click.I tried every possible way I could think of, but it wasn't successful.
I searched ...
0
votes
0
answers
58
views
QT creator don't display qt project
I was coding locally in C++ Qt project. I was able to open project by selecting it from list in initial screen of Qt Creator version 16.0.2 (community). However, after I created git repository in ...
0
votes
0
answers
27
views
Qt Creator not populating Issues tab when using wrapper script around CMake
I am working on a project which uses a wrapper script around CMake to build its artifacts (upstream decision). Building directly with cmake works for some artifacts, but there is the risk of artifacts ...
1
vote
0
answers
79
views
windowsvista style causes hover animation to 'flicker' or 'jitter'
When I set 'windowsvista' as the style, hovering over widgets causes them to flicker. See linked GIF for details:
Flicker issue when hovering
Here is the code to reproduce it in a stock standard fresh ...
1
vote
1
answer
55
views
Debug third party library code in QtCreator in a CMake project
I need to be able to debug internals of calls to OpenCV functions in my code, using QtCreator.
I did the following:
Downloaded OpenCV source code (from here: https://github.com/opencv/opencv)
...
1
vote
0
answers
82
views
Qt Creator does not link Android compiler to Kit
I'm trying to set up Qt Creator for Android development using Qt 6.9.1 on Windows 10. The SDK, NDK, and emulator are all detected correctly in Edit > Preferences > Devices > Android. However, ...
1
vote
1
answer
76
views
Frameless window flag in QT creator program is ignored in debian, but accepted in ubuntu and wsl
I am working from Ubuntu, and my friend has a minimal Debian system. His system uses x11 and openbox, and the login manager is lightdm.
On my system, I compiled a QT-Creator application in which the ...
0
votes
0
answers
167
views
QSystemTray issues, kf.statusnotifieritem: KDE platform plugin is loaded but SNI unavailable
I'm trying to set up a tray icon for an app I'm developing in Qt with C++
I think it is pretty straightforward but I'm running into an issue, QtCreator throws:
kf.statusnotifieritem: KDE platform ...
1
vote
1
answer
267
views
How to get Qt Creator to support C++20 in its editor with CMake
I have a CMake-based Qt project that I'm developing with Qt Creator. Recently I enabled C++20 support with CMake via
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(...
2
votes
0
answers
142
views
How to get Qt Creator to use Qt installed via VCPKG
My project is set up as follows:
CMake build system
vcpkg checked out as Git submodule
Using vcpkg in manifest mode with a vcpkg.json
qtbase is installed via the above vcpkg.json.
A CMakePresets.json ...
1
vote
0
answers
36
views
Qt Creator Color Scheme for Python
I'm trying Qt Creator with a Python project.
Compared to Sublime Text it seems Qt Creator Color Scheme is less "fancy".
Below, the 1st is what I see on Qt Creator and the 2nd what I see on ...
0
votes
0
answers
63
views
Qt Creator default Kit Selection
When I create a new project in Qt Creator it, by default, enables all Kits
then I uncheck all but debug, which is the only one I use most of the time.
But next time I create another project it ...
0
votes
0
answers
37
views
Qt Creator kit recognition Error for QGroundControl Source Code
This is for a UAS project class, we are trying to modify QGroundControl Source code using Qt Creator. However, we are reciving error messages and having trouble getting Qt Creator to recognize the ...
0
votes
0
answers
73
views
Qt Creator: add Qt module to project (with out .pro file)
In Visual Studio you just need to add modules at here:
But how about on Qt Creator? I find this Qt Creator: add Qt module to project
But it points out you need to add them in the .pro file. But I don'...
0
votes
0
answers
68
views
The UI file error when I export .ui.qml to .py file
I see the answer that show the process to convert a .ui.qml file from Qt Design Studio to a .py file involves several steps(text)
But I get misstake in the step of save the .qml file as .ui in Qt ...
2
votes
1
answer
124
views
Can't run the Qt OPC UA example
I have imported the example project available in the oficial docs and tried to build it but it fails on the find package step with the following message
[cmake] CMake Error at CMakeLists.txt:17 (...
1
vote
0
answers
48
views
Auto completion is broken in Qt creator
Auto completion doesn't work in Qt creator with QtQuick module and qmldir which includes qml component from qrc
After defining my QML module which includes a c++ plugin and generating the .qmltypes ...
0
votes
1
answer
290
views
Qt 6.9.0, how to deploy Android apk signed automatically for debugging?
I'm migrating from Qt 6.2.2 (QtCreator 6.0.2) to Qt 6.9.0 (QtCreator 16.0.0).
With Qt 6.2.2, I could simply compile and deploy an apk on an Android device. The project's properties has a "Build ...
1
vote
2
answers
127
views
How to properly add external cmake library (OpenXLSX) to a Qt creator qml project?
I'm q newbie and i searched for the solution across the web making some "minor" progress but i'm pretty sure that i'm do things wrongly and there are very few video and tutorial about that, ...
0
votes
0
answers
18
views
When Qt Creator builds a project, ui_mainwindow.h always reports an type name error
I have a qt project, and every time it is rebuilt, it reports an error:
(Unknown type name 'controller'; did you mean 'Controller'?) in ui_mainwindow.h.
class Ui_MainWindow
{
public:
controller *...
0
votes
1
answer
27
views
JustMyCode mode for QtCreator
I've been using QtCreator, (gcc debugger) and when I use debugging it doesn't stick to my code. If the error is raised in a dependency, sometimes it even goes into the qt framework itself (I have no ...
0
votes
1
answer
65
views
How to add and use extra CMake build types in Qt Creator?
Qt creator can only select a build configuration from one of the five predefined: Debug, Release, Minimum Size Release, Profile and Release with Debug Information. Now I have several extra CMake ...
0
votes
0
answers
185
views
How to use a LibreOfficeKit GTK+ widget in QtCreator
I am trying to make Linux application in Qt Creator with LibreOfficeKitGtk widget, from usual QT project with widgets template.
In main.cpp I added a GTK initialization:
#include <gtk/gtk.h>
...
3
votes
1
answer
165
views
Qt Creator and Qt Design Studio connective programing error
In Qt Design Studio, I created a mobile project and set up CMake for export.
When I opened the CMakeLists.txt file in Qt Creator, I encountered this error in the project explorer:
CMake project ...
0
votes
1
answer
77
views
QtCreator on Windows: no rule to make target / Failure to find
I've only ever used QtCreator for very simple projects. I'm now trying to compile a working Linux project on Windows (an OS I haven't used in years...)
I'm struggling with the following vague compile ...
3
votes
1
answer
56
views
'isPacked' is not a member of 'Lua::jitComposer"
I am trying to build Simula67 parser, in QT 5.14.2 in the Qt Creator. It depends on LjTools, and luajit, I am using LuaJIT 2.0, running Kubuntu 22. I did have to modify LjTools and Simula to make them ...
0
votes
0
answers
44
views
Set child elements of QFrame to same size like the QFrame
I'm just getting familiar with qt.
My goal is to have a main window with two tabbed widgets.
The content of these tabs should be separated into own .ui files.
I tried to solve this by adding a new ui ...
0
votes
0
answers
32
views
Why Does Printing to std::cout Work in Qt Creator Terminal but not Windows Console? [duplicate]
While working on a Plain C++ Application in Qt Creator I noticed that there is no console output when running a built executable with cmd.exe. However, when I run the application through Qt Creator, ...
1
vote
1
answer
345
views
QT not responding to touch event with external touch screen
I am trying to use an HMDI/USB touchscreen with a QT application on Ubuntu. I am able to use the touchscreen to navigate in the OS, but my QT application is completely unresponsive to the touch events....
1
vote
1
answer
518
views
Can't load sql drivers when configuring and building Qt 6.8.1 from source on linux/Ubuntu 24.04.1
The Problem
In a fresh Ubuntu installation, I successfully built & installed PostgreSQL, Qt & Qt Creator from source. When I run my app and try to connect to the database, I get the following ...
2
votes
1
answer
201
views
Making QMYSQL driver
I was trying to make QMYSQL driver using official site: https://doc.qt.io/qt-6/sql-driver.html#qmysql. I enter this to the command line:
qt-cmake -G Ninja "C:\Qt1\6.8.1\Src\qtbase\src\plugins\...
0
votes
1
answer
173
views
Issue Using MuParser in Qt Creator Project for C++
I am trying to include MuParser in my Qt Creator project, but I have been struggling for quite a while to get it working properly.
Where I am now, it appears to be unable to find several symbols in ...
0
votes
1
answer
28
views
What is the number after CMakeLists.txt in QTCreator project overview?
In QTCreator, at the project overview, after CMakeLists.txt a mysterious number is shown. See picture (71 there).
What is this number?
I think it appeared first after I updated to QTCreater 15.0.0, ...
0
votes
0
answers
42
views
Can't Use my Build and Run settings in another system (QT Creator)
Recently I tried to create a one project and collect my projects in these project. I wrote a new pro file and "CONFIG" setting, now if I wrote terminal "CONFIG+=press" and then run ...
1
vote
0
answers
8
views
Is there a way to make two different Qt UIs use the saem instance of a particular widget
I have an app (github.com/rparkins999/sqliteman if you want to know) which has several dialogs defined by QT creator which use the same subdialog (queryeditordialog.ui). I want the information that ...
1
vote
0
answers
136
views
How can I solve the red status bar "launching debugger" error?
I'm using Qt 5.15.0 with Qt Creator 14.0.2 on Windows.
When I try to run the debugger (GNU gdb 8.1 for MinGW 8.1.0 32-64bit) with Qt 5.15.0, I always get a red status bar saying "launching ...
1
vote
0
answers
75
views
"module "MyQmlDll" is not installed" error when importing the DLL in a project
I've got 2 projects, a DLL, and a main project.
Importing the DLL into the main project causes this error before starting the application:
QQmlApplicationEngine failed to load component
qrc:/MainP/...
1
vote
1
answer
214
views
Add a python package to a PySide6 QtCreator project by .whl file
I have a custom python package that I created it is stored inside a .whl file and I would like to use it in my PySide6 QtCreator project; this package is only useful to me and I don't want to gum up ...
1
vote
1
answer
168
views
ui files made with qt creator have invalid syntax for qgis
I made a UI in QT Creator that only has QDialogButtonBox:
When I save it out, the .ui file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"&...
0
votes
1
answer
284
views
How to configure Qt Creator for cross-compiling
I am trying to run Qt6 demo examples on my RPi 3B running Yocto. The problem appears when I try to configure the cross-compilers in Qt Creator "Remote Linux Device".
The build machine is x86-...
2
votes
0
answers
34
views
Qt Creator Tab settings
Starting with code:
template <size_t bits>
struct type_from_bits<bits, false, estd::internal::Range<(bits <= 8)> > :
estd::type_identity<uint8_t>
{
};
adding a second ...
1
vote
1
answer
188
views
Program crashes valgrind only in Qt Creator
I'm writing a C++ program with several threads, lots of IO, etc. and I want to check for memory leaks. The program runs great in debug build, and release build. But, if I run Valgrind from within Qt ...
1
vote
0
answers
70
views
Follow Symbol Under Cursor Qt library symbols cannot jump to source files
After I updated Qt Creator to 12.0.2, the Follow Symbol Under Cursor Qt library symbols cannot jump to the source file. For example, if I select the method setMenuBar of QMainWindow and use Follow ...
5
votes
2
answers
2k
views
False Qt Creator warnings when importing a C++ element into QML with CMake
I'm following Defining QML Types from C++ — Registering an Instantiable Object Type to create a basic C++ custom QML element and then use it in Main.qml. However, I'm getting warnings suggesting that ...