875 questions
-1
votes
0
answers
29
views
QtCreator, how to promote QWidget to another class
In QTCreator 15.0, after creating a class that is derived from QWidget,and promoting a QWidget to this class in the UI, I'm left with this compiler error:
This is the absolute minimum program (new ...
2
votes
0
answers
56
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
0
answers
13
views
pyrcc6 not found - MacOS and Windows pyqt6 [duplicate]
I installed PyQt6 and PyQt6-tools, but I don't get the pyrcc6 command. Everytime I get the error of pyrcc6 not found.
I tried with multiple version python from 3.8 to 3.11. I tried on both MacOS (...
-1
votes
0
answers
60
views
QT upload multiple files
I'm trying to make a small application to download Lego assembly instructions
but I have a problem only the last element of my address list is taken into account and I don't understand why
here is my ...
1
vote
0
answers
28
views
qtwidgetsglobals.h file not found
I am trying to install and use Qt6 on my system but have run into issues. Here's my setup:
OS: KDE Neon (Ubuntu-based)
Processor: Intel i5, 5th generation
RAM: 8 GB
I installed Qt6 using the ...
0
votes
0
answers
33
views
Watching GStreamer RTSP stream in QT6 Widget
I want to watch RTSP Stream in a widget in QT6, but although I specify it at the bottom of the code, it opens in a separate window called "Direct3D11 renderer", not on that qt app widget. If ...
-1
votes
1
answer
52
views
How to flip a static QMap to another static QMap in C++ Qt 6?
I need to map a set of string values to an enum type and back.
In my header file I have:
const static QMap<aMessage::Type, QString> type2str;
const static QMap<QString, aMessage::Type> ...
0
votes
0
answers
48
views
Changing _qs to _s in Qt6.8
I need to change from operator""_qs to operator""_s, thanks to Qt 6.8. The following code compiles
// notice no includes or using namespace of any kind
auto const label = u"...
0
votes
0
answers
34
views
QMediaPlayer QT6 How to get more accurate current file position?
I try to get current time with player->position(), but in the debug() I see not all frames, even I set timer update speed to 1 ms.
Debug output:
1828
1828
1828
1880
1880
1880
1933
1933
Seems that ...
0
votes
1
answer
49
views
Qt 6.8 How to force QML Camera to focus again
I'm porting an Android Qt 5.7 app to Qt 6.8.
The app uses the QML Camera module to take some photos and it also uses an "invisible button" covering almost all viewport to force a re-focus of ...
0
votes
0
answers
17
views
Record is not commited even if fully populated
I create a minimal code based upon the official example of QtModelUtilities library:
insertwhenalldone.h
#ifndef INSERTWHENALLDONE_H
#define INSERTWHENALLDONE_H
#include <InsertProxyModel>
...
0
votes
1
answer
31
views
Prevent Qt::Popup from going beyond screen border on wayland
I show some complex QWidget as Qt::Popup at certain position of parent window. Specifically I want it to stick to the selected text:
this part is trivial, but when there is no enough space to the ...
0
votes
0
answers
22
views
How to Expose C++ Qt WebView and Window Functions to Python Without Using PySide or PyQt?
I'm working on a project where I need to integrate a Qt6 WebView into Python. The WebView should allow dynamic control from Python, including:
Setting the window size and style (e.g., resizing, full-...
0
votes
1
answer
59
views
Cut a file to be pasted in a file manager
I want to put a file in the OS clipboard. I am using Qt6. The windows code works, the Unix code is failing. The file is copied, and the original file is left.
auto clipboard = QApplication::...
1
vote
1
answer
49
views
Dynamically zoomable vector image in QML
I have a vector graphics file (here a svg) that I would like to display in a window and be able to zoom in and out of at runtime (using CTRL +/-/0) without loosing quality. Unfortunately Qt seems to ...
2
votes
1
answer
50
views
Qt6 OpenGL to OpenGL ES (3.2) code porting
I have a microcomputer with GLES hardware acceleration. It uses risc-V archtechure so no GL drivers.
I'm currently working on adapting a QOpenGLWindow codebase to run on a device with GLES hardware ...
1
vote
1
answer
66
views
PySide6 - How to make transparent but clickable window?
I am making a screenshot snipping tool with PySide6 and I want to make an invisible frameless window to let user drag and capture. But every method I knew will let the mouse click behind the window ...
1
vote
0
answers
51
views
Loading c/c++ dynamic libraries in python
Following is my development Environment;
Qt: 6.5.5,
pyside 6,
OS: windows,
compiler for c++ libraries mscv2019
I am working on a project where the core logic is implemented in C/C++, and I am using ...
2
votes
1
answer
79
views
Issue to build qt Webengine submodule on arm platform
I am facing issue while build qt-6.2.9 on ARM platform. Getting below error. Any idea how to fix this
{standard input}:2829: Error: selected processor does not support `xpaclri'
[325/15536] ACTION //...
0
votes
1
answer
48
views
how do I open a second main window in QTQuick 6.8 without app shutdown?
I'm using Qt Quick (v6.8). I open a second application window from my first application window. I then shutdown the first window. A few seconds later, my second window closes automatically, which is ...
1
vote
0
answers
76
views
AVolute::GetProductInfoT - Error 20 - has not been implemented yet - where is it beeing called from? (Qt 6.8.0)
I am seeing these errors when running a simple Qt Application:
Error 20 (this feature has not been implemented yet) in function AVolute::GetProductInfoT::<lambda_3920e95365a48b95dd51020986e9e351>...
1
vote
1
answer
37
views
QML - Sort a TableModel using Python backend [duplicate]
In a Qt 6.8 project using QML for the frontend and Python for the backend, I am trying to implement a TableModel/ListModel filter system. I read the documentation of QSortFilterProxyModel, but I didn'...
0
votes
0
answers
51
views
QML - Generate a TreeView based on a ListModel
For a project based on Qt 6.8, QML, and Python, I would like to create a custom component that displays data from a ListModel in a TreeView format. I know that a TreeView component already exists in ...
0
votes
1
answer
64
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-...
0
votes
1
answer
62
views
Yocto Qt6: Qt6QuickTools dependency missing
I'm working on getting Qt6 to work on an embedded system. But I am getting the following error:
Qt6Quick could not be found because dependency Qt6QuickTools could not be found.
Could NOT find ...
1
vote
0
answers
72
views
How to properly quit an event-based thread that needs to clean up resources?
I need to properly quit a thread that only processes signals from another threads. This thread owns a resources that need to be cleaned up. Before the thread will be quit, I call it's abort function, ...
1
vote
0
answers
36
views
Python/QT and VideoPlayer replaying at end of media
Currently, I am trying to loop a video after it has finished using PySide6/Qt. The way I'm currently doing it is that I am sniffing at the mediaStatusChanged signal, and when that signals MediaStatus....
2
votes
1
answer
84
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 ...
1
vote
0
answers
75
views
Qt6 using Objective-C script in CPP (H) file
Normally, I use only *.h files in my c++ project as scripts are short and I don't need to really generate many files.
So, currently I have a c++ script used only in a header file. Also in there, I ...
1
vote
1
answer
41
views
How to use intel MKL in Armadillo to invert a non-singular matrix?
Armadillo code:
#define ARMA_DONT_USE_WRAPPER
#define ARMA_USE_BLAS
#define ARMA_USE_LAPACK
arma::mat A = { { 0.0013 , 0.1741 , 0.9885 , 0.1662 , 0.8760 } ,
{ 0....
0
votes
0
answers
41
views
Why does a QPointer start with 2 weakref's, -1 strongref's?
I am trying to use QPointers, switching from raw pointers as I am trying to avoid memory problems. I create an object using a QPointer like this:
QPointer<QFile> test = new QFile(...some file......
0
votes
0
answers
45
views
error running example qt applications on a remote linux device (v3s in this case)
I'm trying to run a sample qt application on a v3s with Linux ARMHF architecture.
I've successfully built a qt version 6.4.2 and add ARMHF compilers with cmake version 3.28.3
the v3s kit looks like ok ...
0
votes
0
answers
52
views
Qt6 C++ Using Mediaplayer declared in MainWindow in another Function
Im trying to get a sound effect every time a task is added to my to-do list, however I don't want to set up the mediaplayer every time a new task is added, so I want to set it up once and then use it ...
1
vote
0
answers
84
views
Undefined reference error When building Qt6-base from source on Raspberry Pi Zero 2 w
I am trying to build qtbase-everywhere-src-6.7.3 from source on my raspberry pi zero 2 w (without cross compilation) But cmake detected undefined reference to many neon-related functions. Since I want ...
1
vote
1
answer
49
views
How to read files inside the project with QFile [duplicate]
I follow these simple steps to recreate the problem. Create a new Qt project in Qt Creator, a widget. Create a new widget class "newform" with its .cpp, .h, and .ui files. Try to load it on ...
0
votes
0
answers
59
views
How to edit/add text to QVideoFrame
I have a demo PyQt6 application using the QtMultimedia library to capture live video from a webcam and record it via QCamera, QMediaCaptureSession, QVideoWidget and QMediaRecorder.
I want to add some ...
3
votes
0
answers
89
views
XmlListModel doesn't support query with index in Qt 6
I am trying to adapt a qml application for Qt 6.
The application uses XmlListModel.
In Qt6, XmlRole has been replaced by XmlListModelRole.
In Qt5, I can use the construct:
query: “/Keyboard/Row[” + (...
1
vote
2
answers
147
views
Trying to wordwrap and item in a QListWidget
Ive been trying to wrap the text in an item box in a QListWidget. My program is To Do application.
I see the context i added might not be enough so here is the github repo: https://github.com/...
1
vote
0
answers
35
views
TableViewColumn is not a type [duplicate]
I get an error when trying to create a table.
I realised this when I needed a table in the code I wrote. Everything works without error, except TableViewColumn. I tried separating it from the other ...
1
vote
1
answer
84
views
Change the background color of Editable item when it is being edited in Qt C++ using a stylesheet
I have a QListWidget which has items in it that can be edited(its a to do list), every item has the value Qt::ItemIsEditable which allows me to double click to edit the text value, however when i do ...
0
votes
0
answers
22
views
qt_generate_repc for CMake (3.23+)
I use C++, CMake 3.23+ and have to support Qt 5.15.2/6.x for building static library. I call qt_generate_repc, but I'd like to use target_sources, FILE_SET and BASE_DIR. When I feed add_library with ...
0
votes
1
answer
126
views
Q3DSurface only paints half of the given range of data
I have a Q3DSurface which draws a surface every 100 milliseconds with a time dependent function. The problem is only a quarter of my data is drawn every time. Here is the function that I use to ...
-1
votes
2
answers
84
views
What is the purpose of Qt.ClickFocus in qml
I have created a test snippet to understand focus behavior in qml:
import QtQuick
import QtQuick.Window
Window {
visible: true
width: 600
height: 600
Rectangle {
width: 600
...
0
votes
0
answers
51
views
Firebase in Qt6 and Qt5
I'm attempting to integrate Firebase into both my Qt6 and Qt5 applications using the Firebase C++ SDK to build a Cloud Messaging application. Despite including all the necessary directories and files ...
3
votes
2
answers
122
views
Crash when creating QT QList
I am trying to create a simple QT QList of type QLine, but every time I compile & run it on Windows I get an exception:
The call stack is:
> basic_example.exe!QArrayDataPointer<QLine>::...
0
votes
1
answer
57
views
How to cast QScreen* to QWidget* after following QT6 deprication information
I am converting a QT4 project to QT6 and ran into the following issue, the original code uses Desktop among other things, which was deprecated in QT6, and I have been trying to follow the suggested ...
0
votes
1
answer
70
views
Why does Layout.verticalStretchFactor or Layout.horizontalStretchFactor not work?
As the official document says, there are two attached properties since Qt 6.5, Layout.verticalStretchFactor and Layout.horizontalStretchFactor, which allow you to specify the vertical and horizontal ...
0
votes
0
answers
24
views
QT 4 LibQXT alternatives for QT6
I am currently trying to port a whole program from QT4 OpenSUSE to QT6 Debian 12.5 Kernal 6.1
The original code makes a lot of use of a QXT extension library, of which I have the following references :...
0
votes
0
answers
56
views
qt6-make make: *** No rule to make target 'mainwindow.ui', needed by 'ui_mainwindow.h'
I made a simple QT gui application through QTCreator. It is running well on my Linux 20.04
Now, I want to build this application in yocto to make it run on imx8mp board.
I have created a hello-gui_1.0....
2
votes
2
answers
152
views
Draw on the windows 11 wallpaper in C++/Qt
I'm trying to use Qt and C++ to draw a window on the windows desktop, between the icons and the wallpaper, to make that window into a wallpaper.
This simplified version of my program makes a window ...