Questions tagged [qt6]

For questions specific to version 6 of Qt.

Qt6 was released in late 2020 and features some incompatibilities with the Qt5 release.

See: , , , etc.

Differences from Qt5


References

694 questions
0
votes
1 answer

Call QtConcurrent::run as slot

I'am trying to call asynchrone function like slot but when i click on the button nothing happen. Code: connect(ui->Button1, SIGNAL(clicked()), this, SLOT(QtConcurrent::run(func1))); func is declared in private slot. When i call function normally,…
thacaout
  • 33
  • 4
0
votes
1 answer

Qt Creator 6.0.1 and lagging autocompletion

Im using new Qt Creator version 6.0.1, but its autocompletion lags a lot. I set auto-completion timeout in ms to 0, but it didnt help. Any idea whats causing it? Some plugin?
black_gay
  • 143
  • 7
0
votes
0 answers

Qt6 C++ ownership of QObject when using QML_ELEMENT

I've started learning QML with Qt6 lately and am trying to apply "best practices" right from the start. When it comes to integrating C++ it seems that a family of macros (QML_ELEMENT and friends) is going to replace the old style *register…
Vinci
  • 1,382
  • 10
  • 12
0
votes
0 answers

ScaleAnimator not working inside SequentialAnimation

Following code gives the error: "QML ScaleAnimator: setRunning() cannot be used on non-root animation nodes." It works fine with Qt5 though. Cant we call animators inside Sequential animations: import QtQuick Window { id: root width: 640 …
virus00x
  • 713
  • 5
  • 12
0
votes
1 answer

Qt6 Multimedia module doesn't play audio on raspberry pi 4

I have builded Qt6 with QtMultimedia based on GStreamer 1.0, but QMediaPlayer not play audio file. Follow the Qt6 I have instancied QMediaPlayer in this way: m_player = new QMediaPlayer; QAudioOutput…
matzrm
  • 77
  • 3
  • 12
0
votes
0 answers

Qt plugin initialization failure upon starting Windows application

I could not start this simple startup code. #include int main(int argc, char* argv[]) { QApplication app(argc, argv); return app.exec(); } The following popup appears: The bin folder looks like this: I build the project with…
0
votes
0 answers

The procedure entry point _ZNSt3pmr20get_default_resourceEV could not be located in dynamic link library in QT

I am seeing this when running my application: I am getting this error even when I have all the required dll in my executable folder. I am using Windows 11, Qt 6.2 and Mingw 9 64 bit as a compiler, which I had in my Qt folder itself. Can someone…
U.Deo
  • 1
  • 3
0
votes
1 answer

QT6 Using QVideoSink with QCamera to process every frame

I`m digging example qt6 6.2.2 camera.pro and found next line code: m_captureSession.setVideoOutput(ui->viewfinder); this is the way of outing frames to ui. I know what QVideoSinc is used for grab every frame and process it. I have replaced this line…
svar
  • 11
  • 2
0
votes
1 answer

Q_OBJECT causes a parse error in my QQuickApp

I'm working on a class derived from QObject, I'm compiling for android and using android qt6.2.2 Clang arm64_v8a kit. To the default QQuickApp in qt creator I just added the following header file MyObject.h #ifndef MYOBJECT_H #define…
rain 183
  • 11
  • 3
0
votes
1 answer

How to translate a program into a language with QtLinguist in C++?

I wrote code on QtCreator to translate the GUI of my application into English and Spanish. This application was written in French. The .ts translation files have been generated. And I translated strings to English on QtLinguist (but not Spanish),…
user16610334
0
votes
1 answer

In Qt6 cin/getline does not read any input for me

I am just starting with QT6 (and with QT in general). I have tried to do simpe cin/cout operations and it's already troublesome. Somehow cin does not read a line, nor does getline. Here is my code: #include #include…
0
votes
1 answer

Concatenation of 2 byte arrays in constructor gives strange result

Qt 6.2.1 MinGW I have 2 arrays, header FirstArray and body SecondArray. I know that copy-paste, isn't good in programming, so at first, did so : int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); const QByteArray…
user10609288
0
votes
2 answers

VSCode IntelliSense problem with QT 6.2.2 on MacOS

I know, there is a lot of similar questions, but solutions from existing threads don't help me. I have installed QT6.2.2 (official installer) on MacOS 12.0.1. Project (cmake) opens and builds fine in QTCreator. In VSCode project builds and…
nshibalov
  • 103
  • 5
0
votes
1 answer

Retrieve the whole yaml object

Given this yaml: {CR: {cmd: fade, color: blue, panel: 0, value: 30, fout: 0.5, fint: 5},OL: {cmd: text, value: Blu at 30% on all, color: white, time: 5, position: [540,100], size: 50}} With this code: bool SEMTools::decodeYaml(QString yaml) { …
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
0 answers

How to create a custom ColorPicker widget in Qt?

I am making a desktop app with Qt6.2 and C++ and I want to create a ColorPicker widget that is much like QColorPicker. I want it to look like this: This is Evernote's color picker. For some reason, Qt6.2 does not have QColorPicker and I don't know…
Attitude12136
  • 47
  • 2
  • 9