86,397 questions
1
vote
1
answer
65
views
ListView delegate height animation
I have a ListView with a SwipeDelegate as delegate. It's contentItem consists of a ColumnLayout with two RowLayouts inside. Now I want the second RowLayout to unfold, if I click the delegate. This ...
0
votes
0
answers
61
views
QLabel css "text-align: center" is ignored [duplicate]
Contrary to the spec, CSS setting text-align: center is ignored by QLabel (other settings like font-size and color are respected):
from PyQt6.QtWidgets import QApplication, QLabel
app = QApplication([...
1
vote
0
answers
71
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
votes
1
answer
71
views
QGraphicsScene.items() only returning items whose pos() exactly matches a test point, not items which contain the test point [closed]
A QGraphicsScene contains a number of MyItem items.
A MyItem is a QGraphicsItemGroup which contains, among other child items, a QGraphicsEllipseItem centred at the local origin.
A number of MyItem ...
0
votes
0
answers
87
views
recv() or select() doesn't return immediately after shutdown() and abortFlag in multithreaded socket listener
I'm working on a Windows TCP socket-based listener in C++ where the Listener() function runs in a separate thread. It waits for image frames from a detector device. I have implemented an Abort() ...
2
votes
1
answer
104
views
Error "TypeError: Property 'smth' of object 'smth' is not a function"
I'm following a tutorial for a game on QML (link:https://www.youtube.com/watch?v=0Nbt2yO85d0&list=PLeYV3WjZWmHyYUe-BElUVNeFYTmpOQ9Xq&index=10&ab_channel=KALI)
I'm pretty sure that I have ...
0
votes
1
answer
42
views
What does "ERROR: Qt: Usage of QPen is not allowed at this point!" mean?
I'm trying to draw an image in a SuperCollider GUI, but I keep getting this error message, despite having enough space to draw the image in a UserView:
ERROR: Qt: Usage of QPen is not allowed at this ...
0
votes
0
answers
86
views
I made an effect that can dissolve widgets with QMovie, but I can't find a way to only dissolve a single widget without affecting widgets behind it
How the dissolve looks like if you want to dissolve the entire window:
And if I apply it to a single widget like this:
self.test_label = QLabel()
self.test_label.setFixedSize(300, 300)...
0
votes
0
answers
72
views
How to combine QtGraphs and XYModelMapper?
How can I map the X- and Y-values from the QAbstractTableModel to QML Mapper in QtGraphs?
There must be some commands I have to fill in these QML code lines:
GraphsView {
antialiasing: true
...
1
vote
2
answers
118
views
QtQuick curve with rounded corners
I'm trying to create a spline in QTQuick using a ShapePath component, however I'm a bit lost and don't know where to start. The following gif and images are a reference for the result that I'm looking ...
0
votes
0
answers
63
views
ClassNotFoundException when calling custom Java class from Qt for Android using JNI
I'm developing an Android app using Qt 6.9 that needs to scan WiFi networks. I've created a custom Java class to handle the WiFi scanning, but when I try to call it from C++ using QJniObject, I get a ...
0
votes
0
answers
96
views
How to set filter by module in heaptrack_gui profiler that all gui application contains only my module?
I only started to use heaptrack and can not set filtering by modules. It possible to do from gui like this
Heap track
but output very nosy and this filter doesn't influence to other tabs. Does exist ...
0
votes
0
answers
61
views
Conflict with QPoint in Qt5Cored.lib despite not including Qt in Visual Studio project (using vcpkg)
I'm working on a simple SDL2 project in Visual Studio using vcpkg for dependency management.
In my vcpkg installation, I have both Qt5 and SDL2 installed. I've used vcpkg integrate install to ...
2
votes
1
answer
62
views
Find position of delegate in QML
I have an QML GridView that is displaying items from a model. A separate overlay needs to know the screen positions of the items within that GridView. However, I am having trouble accessing the ...
1
vote
2
answers
154
views
How to pre-load heavy qml pages and later push them to StackView
I have a QtQuick StackView application that involves some quite heavy pages. I want to pre-load some of the heaviest pages during app startup to reduce lag and wait time later on.
For reference, the ...
1
vote
1
answer
172
views
QMovie is stuttering / lagging when using an animated .webp file on both PyQt6 and PySide6
The animated .webp file on the left is being played on Google Chrome, while the one on the right with a QMovie.
I've tested this on PyQt6 6.7.1, 6.8.1 and 6.9.1, and also on PySide6 6.8.2. There ...
0
votes
1
answer
73
views
SSL certificate validated by Apache2 and browser but not by Qt Websockets
I have been developing a server-client messaging application with qt-5. Being close to release phase, I am experiencing a connectivity problem related to the SSL mechanism.
The program source is ...
0
votes
1
answer
109
views
PySide6 QGuiApplication.primaryScreen().grabWindow() creates null QPixMap
I'm trying to implement a screenshot functionality into my PySide6 application using QGuiApplication.primaryScreen().grabWindow().
So far I've tried on two systems, both are running Ubuntu 22.04.5, ...
1
vote
2
answers
204
views
Qt6 MultiEffect qml Type : cannot set a larger mask than the source item
I want to customize a ProgressBar so it looks like this:
.
I need to crop the internal "light orange" rectangle so it fits in the orange background. I use MultiEffect to do that, but I can't ...
1
vote
1
answer
284
views
Conflicting OPENSSL versions under Linux
I'm building a project linking both with QtNetwork (Qt6) and Python library (3.8).
At runtime, I get the error:
my_prg_bin: symbol lookup error: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl,...
0
votes
1
answer
96
views
Remote debugging using QT Creator
PC with the Ubuntu on the Virtual Box is used as a host. Raspberry Pi is used as a target device.
Is it possible remotely debug (using SSH and the possibilities of the QT Creator) a program with a GUI ...
1
vote
1
answer
180
views
How do I correctly use QtCharts in a Qt Quick project? (QML works in qmlscene but fails in app)
I'm trying to use QtCharts (specifically ChartView, PieSeries, etc.) in a Qt Quick project using Qt 6.9 with MinGW on Windows.
Everything works perfectly when I run the QML with qmlscene, but as soon ...
2
votes
1
answer
166
views
How to Access USB Device via USB-OTG in Qt 6.9 Android App?
I'm using Qt Creator with Qt 6.9.0 to develop an Android application. The code works fine, and I can successfully build and run the app on my Android phone.
Now, I'm trying to access a USB device ...
1
vote
2
answers
61
views
QVulkanInstance: Failure to Retain User Set Layers
As per the code found at: Qt Triangle Example
Adding a bit of debug logic:
#include <QDateTime>
#include <QDebug>
#include <QGuiApplication>
#include <QLoggingCategory>
#...
2
votes
0
answers
117
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 ...