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

How to Draw a circular progress Bar using QML in QT6

Conical gradient is not there in Qt6 and hence i want a circular progress bar just like the code. But i am unable to use Conical Gradient because import QtGraphicalEffects 1.15 is scrapped in Qt6 This is my code is there another alternative for…
Vinay
  • 81
  • 1
  • 8
0
votes
1 answer

Can't save file with ImageCapture.capture() in qml

I'm new at qml. I'm working in windows 10, Qt creator 6.0.0, using Mingw64 as compiler and Qt 6.2.2. I'm trying to take a picture clicking on the screen. import QtQuick import QtCore import QtMultimedia Window { id: main_window width:…
rain 183
  • 11
  • 3
0
votes
2 answers

Qt6 Connect Signal to Lambda Function

I'm using a DataRouter class to handle communication with a QSerialPort (and then communicate the results elsewhere). The connected device sends a status package every second or so, and I would like to read it without polling the device. I tried…
paperplate
  • 17
  • 4
0
votes
1 answer

How to create QOffscreenSurface with alpha?

Found an example of offscreen rendering in QT (there is a working code in Update 1). But was unable to make it support alpha, see the code below: QSurfaceFormat surfaceFormat; …
Dmitriano
  • 1,878
  • 13
  • 29
0
votes
0 answers

Save OpenGLES texture to PNG file

I was able to create OpenGL texture from QImage with a code like this: QImage qImage(file_name); qImage = qImage.mirrored().convertToFormat(QImage::Format_ARGB32); GLuint Id; glGenTextures(1, &id); glBindTexture(GL_TEXTURE_2D,…
Dmitriano
  • 1,878
  • 13
  • 29
0
votes
2 answers

How to cross-compile Qt6 on Linux for Windows?

I'm trying to cross-compile Qt 6.2.1. Target - Windows, my machine OS - Linux (Mint 20.2) (both 64bit). Unfortunately I can't compile it on Windows, so I have to do this cross-compilation. My configure cmd: ./../qt-everywhere-src-6.2.1/configure…
papoj
  • 1
  • 3
0
votes
1 answer

Combine multiple animations for PathView delegate

Qt 6.2.0, Ubuntu 20.04. Here the code of my PathView: PathView { id: view property int item_gap: 60 anchors.fill: parent pathItemCount: 3 preferredHighlightBegin: 0.5 preferredHighlightEnd: 0.5 highlightRangeMode:…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
0 answers

How can you demangle QStringList in Qt6, so it does not convert to "QList"?

I have been using this function for quite some time in Qt5: static QString demangle( const QString &name ) { int status; std::unique_ptr< char, void(*)( void* ) > res ( abi::__cxa_demangle( name.toLatin1(), nullptr, nullptr, &status…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
3 answers

QML does not write to C++ property when bound to component and component value changes

I'm working on a QML project. In the UI I'm working on, I need to both update slider from C++ and read the current value into C++ from QML. Properties seems to be the right solution. So far I've read different questions on SO without success Two…
Mary Chang
  • 865
  • 6
  • 25
0
votes
1 answer

How to prevent Qt 6.0 Installer from crashing?

Here’s what happens I open the installer, choose the packages I want(I choose to install some 1.7 GB of components), everything goes well. But then when I click on the Install button, and Qt installer crashes! And by crashes I mean it crashes,…
Asdf
  • 1
  • 2
0
votes
2 answers

How to run a member function in QtConcurrent in QT6

i try to run a member function with QtConcurrent. I am just learning c++ and qt and i used the way i found in their official documentation: https://wiki.qt.io/QtConcurrent-run-member-function mainWindow.cpp #include "mainwindow.h" #include…
Yata
  • 17
  • 4
0
votes
1 answer

Dynamic property name assignments inside delegate

I am trying to include a Settings object inside the delegate of a Repeater so that I can save the value of a SpinBox. However, I can't figure out how to dynamically set the property alias name. What I want to achieve is to have the property alias…
Vlad
  • 223
  • 2
  • 10
0
votes
0 answers

Qt Multimedia: Is there a way to implement gapless loop video playback in pyside6?

I'm trying to loop a video on the background of my Pyside6 application, currently implementing it through QML. Everything works fine so far, but I've noticed the media player clears the screen for a moment before actually repeating the video. I've…
Seifu
  • 9
  • 1
0
votes
1 answer

Cannot use Qt Charts - QT6 | Cmake

I am using Qt 6.2.1 with cmake and I can't find a way to use Qt Charts. The Qt Charts is installed under "C:\Qt\6.2.1\Src\qtcharts" In my cmakelists.txt I've included the Qt Charts in find_package and target_link_libraries. That seemed to work on…
0
votes
0 answers

Qt.createComponent() causes later "Object already has a QQmlContext" error when binding dynamically

I'm getting this error with pure QML (no C++): QQmlEngine::setContextForObject(): Object already has a QQmlContext It happens when a binding is created dynamically, but only if some component was previously loaded at run-time using…
jimav
  • 671
  • 6
  • 16