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

58 questions
0
votes
0 answers

The C compiler cl.exe is not able to compile a simple test program

I'm trying to set up VTK with cmake visual studio 16 2019 and Qt 6, But when i try to configure cmake i have the following pb : Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042. The C compiler identification is MSVC…
0
votes
1 answer

Is there way to make QPushButton background transparent, but adding icon?

Is it possible to make the background of the button transparent, but at the same time to add an icon? As I understood I should use: button -> setStyleSheet("background-color: rgba(255, 255, 255, 0); "); It works fine, but I want to add an icon too.…
sb69lg
  • 15
  • 1
  • 6
0
votes
1 answer

How to select a row in TableView (QML)?

In Qt 6, all QtQuick 1 components are removed. I want to rewrite an old application using Qt 6. The application uses the TableView control version 1. How can I select a row in a new control TableView and get the values of all cells in the row?
Compozitor
  • 19
  • 9
0
votes
0 answers

Cannot remove duplicated Android 6.0.0 Clang compilers kits auto-detected in Qt6

Problem 1: I'm using Windows 10 Home. I have installed Qt6, Android Studio 2019, and Visual Studio 2019. Before installing Visual Studio 2019, Qt6 was working fine, but since I have installed Visual Studio 2019, there are now duplicated compilers in…
Liara
  • 45
  • 1
  • 5
0
votes
1 answer

How to rotate map in qml?

How I can rotation Map in qml with using MouseArea (with press on MidButton)? Map { id: map z: 0.1 anchors.fill: parent property bool mapIsEmpty: submap && (submap.plugin.name === "itemsoverlay") property string provider:…
0
votes
0 answers

How to build from source Qt 6 without balsam and meshdebug

How to build qt 6 without balsam and meshdebug. I am compiling qt 6 from source but following error: Target "balsam" links to target "Qt::OpenGL" but the target was not found. Target "meshdebug" links to target "Qt::OpenGL" but the target was not…
Sam1324
  • 347
  • 2
  • 10
0
votes
0 answers

Calling a function when computer hibernates or sleeps

Title. I know how to send messages with QDBus, but I'm not sure how to receive DBus events or systemd events. Specifically, I need to receive hibernate/sleep events, from something like org.freedesktop.login1. I also tried using that with QDbus, but…
roach
  • 44
  • 1
  • 7
0
votes
0 answers

QtFuture not found

Please don't be confused with qfuture. I want to use connect function from QtFuture namespace to convert signal into future. https://doc-snapshots.qt.io/qt6-dev/qtfuture.html#connect according to docs, I only need to add following in my cmake…
너를 속였다
  • 462
  • 4
  • 13
0
votes
1 answer

QPdfWriter not embedding standard fonts properly since Qt 6.0.0

Since switching to QT 6.0.0 I got problems with QPdfWriter. Every Time I try to print a text, the embedded font couln't get loaded from various pdf reader (even Adobe reader). I'm as well not getting any errors or anything else on the…
ratloser
  • 11
  • 5
-1
votes
1 answer

Qt decided to ignore functions?

So i have this project with Frameless windows and in order to move them around the screen made such functions for every window: window.h private: Ui::MainWindow *ui; void main_mousePressEvent(QMouseEvent *event); void…
-1
votes
1 answer

Several Error with Implementing of Threads in QT [C++]

I'm new to implementing Threads in QT and even after reading the Documentation several times and watching Videos, I get some Error which not even Google can help me with. thread.cpp:14: error: C2440: "Initialisierung": "QFuture" kann nicht in…
Deto24
  • 7
  • 3
-2
votes
0 answers

Is there a way to add material design navigation drawers using PySide6?

Looking for a way to add a navigation drawer to a PySide6 + Qt6 app, any specific widget or something in QML to achieve this? Would prefer a GUI solution (via QtDesigner, for example) if possible.
-3
votes
1 answer

Qt qml Button hover color

I have a custom QML Buton as shown bellow. import QtQuick 2.15 import QtQuick.Controls 2.15 Button{ id: dashId width: 155 height: 40 implicitWidth: 155 implicitHeight: 40 text: 'hello' flat: true property color…
Chairman
  • 86
  • 7
1 2 3
4