1,892 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
202
views
Custom mouse cursor in C++ using the Qt toolkit - constant flicker
I have implemented a custom cursor in C++ using the Qt 5.15 toolkit, as shown in this small test program containing three classes:
A mainwindow, a testwidget and a box.
The testwidget and box are both ...
1
vote
0
answers
171
views
After compiling qt6 with buildroot 2025.02, the ABI of my qmake is x86-linux-generic-elf-64bit
After compiling qt6 with buildroot 2025.02, the ABI of my qmake is x86-linux-generic-elf-64bit;
The cross compiler I use is arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-linux-gnu;
The environment ...
0
votes
0
answers
55
views
Disable CLazy check for qstring-arg
I would like to disable the clazy check for "qstring-arg" in Qt Creator 6. I don't want to do it via the GUI, I really want it in my .pro file.
My online searches have shown me two possible ...
0
votes
0
answers
46
views
How to include a library located in a custom path, using QT+=library_name
So I have a library, installed under /mylib_build/ for sake of clearness, and it has both a pkg_config and a mkspecs pri file.
The dir structure is as follows:
/mylib_build/
└── usr
├── include
...
0
votes
0
answers
70
views
runtime error in qml qmake project with qt 6.8.3
i create new project with qt 6.8.3 and select qmake instead of CMake.
When I added QML Text in qml file, rease error segfault in QmlEngine. Something fail in QFontDatabase inside QmlEngine
I built ...
-1
votes
1
answer
70
views
How to build and run both my Qt app and unit test app using a single CLI command?
I am trying to build my qt app and test together using this cli
qmake .. CONFIG+=tests && make -j 4
My app structure is
📦 workspace
└─ my-app
├─ .devcontainer
├─folder 1
├─folder 2
...
mhhabib's user avatar
- 3,147
0
votes
1
answer
370
views
Generate compilation database (compile_command.json) using `qmake` (not GUI)
There was a self-answered question, How to generate compile_commands.json with QT project?, where the asker however was satisfied with the generation through Qt Creator.
Sadly, that's not an option ...
0
votes
0
answers
62
views
CMake trying to compile using multiple SDKs
I have build the Qt source on Windows 10 using Admin x64 Native Tools Command Prompt for VS 2019 and the command:
configure.bat -debug-and-release -platform win32-msvc -opensource -confirm-license -...
0
votes
1
answer
79
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 ...
0
votes
2
answers
93
views
Why can't the copy command copy the file during the build process?
In qmake, I want to copy a file from my source directory to the build directory. I noticed that Windows uses \ in paths, so I made sure to replace it accordingly, as shown in the code below:
win32:...
0
votes
0
answers
716
views
Compiling Qt 5.15.15: error: 'XKB_KEY_dead_lowline' was not declared in this scope
I am trying to compile Qt 5.15.15 from scratch because Qt now requires you to create an account in their website.
I've run:
mkdir build
cd build
../configure
gmake
I am getting the following error:
/...
1
vote
1
answer
240
views
Why is necessary to provide path to the library if ldconfig is used?
I have Qt[4|5] project with QMake build configuration and several library dependencies:
OpenCV library installed by zypper
Custom libnf_cln.so library installed in /some/path
I created /etc/ld.so....
0
votes
0
answers
47
views
/usr/bin/ld: in function `main.cold': (.text.unlikely+0x11): undefined reference to `QWidget::~QWidget()' [duplicate]
In simple words for I got this problem for several Qtpackages: how to make g++ know what Qt is when using qmake?
When compiling a program I got problems with letting the parts link each other
/*
* ...
3
votes
1
answer
272
views
Incorporating CGAL into an existing QT6 project
I have a QT6 project with a .pro file and I want to include the CGAL libraries I saw in a StackOverflow question where a person asked the same question but in linux and I can't find the libs folder in ...
2
votes
1
answer
182
views
build C++ program by qmake,nmake in windows11 ,but can not run
My C++ program source code at work is build with Qt5 on Windows 11(cross platform code, linux works well), which contains several project and all belong to One software of my company.I have question ...