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
4
votes
1 answer

Why wayland and xorg appearance of Qt6 are different?

I'm trying to use Qt to make a very simple window. My goal is to obtain something that looks like a native OS window (with the least effort), nothing more, but if possible nothing less. In order to make it easier, I'm using Qt python bindings, and I…
Annibale
  • 241
  • 3
  • 6
4
votes
1 answer

Using QSGTexture/QSGMaterial and Qt's RHI to implement a custom texture format for shaders

With Qt 6.2 there is a whole system of "graphics API independent" infrastructure (both on tooling and on C++ side) that enables you to render things in e.g. QML without writing one bit of Vulkan, Metal, Direct3D or OpenGL. Based on the "custom…
rubenvb
  • 74,642
  • 33
  • 187
  • 332
4
votes
1 answer

How to use QVideoSink in QML in Qt6

I created my own video sink inherited from QVideoSink in Qt 6. And I want to show content of this sink in QML side. How can I do it? VideoOutput QML type has videoSink property, but it's read only..
Igor Mironchik
  • 582
  • 4
  • 17
4
votes
1 answer

Why is there no QtWebEngine in the Qt6?

Why there is no QtWebEngine in the Qt6? Is it depricated? Should I use a new widget?
mh taqia
  • 3,506
  • 1
  • 24
  • 35
4
votes
0 answers

Qt6 imports with qtcreator 4.13+

Qt6 supports importing QML modules without specifying the version number. Example: Qt5: import QtQuick 2.0 Qt6: import QtQuick where Qt6 will just choose the newest version of the module. My problem is, that the current version of qtcreator does…
user8408080
  • 2,428
  • 1
  • 10
  • 19
3
votes
2 answers

How can I access the model's data in QtQuick (for icons in a ComboBox)

I am trying to extend the QtQuick's ComboBox with icons, and I struggle to access the model's data for the currently selected item. I need to have a textRole, a valueRole and my new iconSourceRole (which defines a qrc: url to a .png file). Using…
feedc0de
  • 3,646
  • 8
  • 30
  • 55
3
votes
1 answer

Qt example project fails to build (No CMake configuration found)

I am trying to simply open Qt6.4.1 sensors example project, but it says that no CMake configuration found. I already made some simple Qt6 applications for Windows, and i have entire Qt6.4.1 package installed, so cant blame on bad installation. There…
3
votes
0 answers

Can't run my built Qt Design Studio (Qt 6) project with CMake on Windows

I'm trying to run a compiled Qt6 project with CMake and mingw64, however, Qt6 apparently can't find QtQuick.Studio.Effects, QtQuick.Studio.Components and QtGraphicalEffects. > This is the error log when executing the compiled…
E-Berry
  • 45
  • 4
3
votes
0 answers

Error in Qt 6.2.2 source building at final stage, AutoMoc subprocess error

i download qt 6.2.2 source files from qt.io and start to build it according to its ReadMe in windows 10 x64. in final stage must do cmake --build . to build configured files but it cause error. C:\Qt\Qt6.2.2>cmake --build . [ 0%] Built target…
Mahdi-M
  • 31
  • 2
3
votes
1 answer

Understanding QML_INTERFACE

I've a really hard time understanding what the QML_INTERFACE and QML_IMPLEMENTS_INTERFACES macros are supposed to do. Naively I assumed that the macro does what it says it does, registering a non-instantiable ("uncreatable") type to the QML type…
Vinci
  • 1,382
  • 10
  • 12
3
votes
1 answer

[C++][ QT ] is not meant to be copied. Pass it by move instead

I am a beginner in C++. And I don't understand this error. I just need you to explain me. I try to show a .sqlite database in a QTableview. The problem come from: model->setQuery(*qry); I want to use a function called setQuery but in first…
thacaout
  • 33
  • 4
3
votes
3 answers

QT6 Protocol "ftp" is unknown

I have projects that have to use FTP for file transfers. And all the projects are created with Qt 6.0.2. The problem is, I can't upload any files to my FTP server. I tried it with Qt 5.15.2 and it all works fine, but whatever I try, I just couldn't…
ka ra
  • 31
  • 3
3
votes
3 answers

Qt. Copying file error while trying to run the project. How to fix a mistake and why is it happening?

I’m trying to install and create the first Qt project. I am using CLion with CMake and Qt 6. I set up CMake: cmake_minimum_required(VERSION 3.17) project(QSnake) set(CMAKE_CXX_STANDARD 20) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC…
3
votes
1 answer

qt qml Object already has a QQmlContext

I want get json file from local and send it to QML using this: #include #include #include int main(int argc, char *argv[]) { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) …
Tryliom
  • 895
  • 1
  • 12
  • 37
3
votes
3 answers

How to create DropShadow effect in QML with Qt6?

In Qt5 this was easy with using DropShadow. But in Qt6 the module QtGraphicalEffects is removed. Is there any trick, workaround or maybe new way in Qt6 to create drop shadow around some component?
user123445151156
  • 331
  • 2
  • 10
1
2
3
45 46