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

Include libqtforandroid.so or libqtforandroidGL.so in package?

I try to run the QT C++ usb debugger on an Android smartphone, altough there is a compilation error (on the screenshot #1). The downloaded version of QTCreator is 4.14.2 with Qt 6.0.3 MinGw 64-bit.
Ivan Silkin
  • 381
  • 1
  • 7
  • 15
0
votes
0 answers

QtQuickCompiler was not found with CMake

I tried to use the QtQuickCompiler the first time, so I looked in the Qt docs. (https://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html). But if I call find_package(Qt6QuickCompiler) it shows me, By not providing…
TheDummy
  • 71
  • 1
  • 6
0
votes
2 answers

Building Qt3D under windows fails due to Vulkan SDK not being found (but in Path)

I am trying to build Qt3D as it seems to not ship by default with Qt6 anymore. I just finished installation on ubuntu, without major issue (it would have helped if the install instruction could have mentioned that the vulkan sdk is required, which…
tom
  • 361
  • 3
  • 11
0
votes
0 answers

How to programmatically add a menu bar to a QWidget?

I have created a QWidget (i.e something that acts as a window). However I am unable to set a Menu Bar to the QWidget using QMenu (NOT QMenuBar). I am not using Qt Designer. I am making the program in C++ and would like help with how I can get a menu…
Arnav Deo
  • 33
  • 1
  • 3
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…
mathieuJ
  • 1
  • 1
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
  • 7
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
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 couldn't get loaded from various pdf reader (even Adobe reader). I'm as well not getting any errors or anything else on the…
ratloser
  • 116
  • 1
  • 7
-1
votes
1 answer

Reusing window in Qt

I want to create a desktop application using Qt Quick and QML. I understand so far how to manage widgets until I need to change the whole UI. Example: After logging into Telegram, it loads a completely different UI with the list of your chats. What…
Hitsuki
  • 31
  • 8
-1
votes
0 answers

How to debug QtWebEngine sandboxing

we have an app that renders some off-line files via QtWebEngine. The app is multiplatform. Yet recently when upgrading to Qt6 on MacOS the rendering stopped working. If I turn of the QtWebEngine sandboxing, it works. The app does not use apple…
Kapitan
  • 73
  • 8
-1
votes
1 answer

Unable to use .raise_() but can use .show() in pyqt6

My problem is that i didnt want to save an image locally to display it in my ui program so I converted the image to bytecode to then be stored in the code itself and display from there itself. However when I do so, It doesn't show it on the ui when…
tirthjain
  • 1
  • 2
-1
votes
1 answer

Qt6 Cmake configuration not found

I am a newbie at Qt. I am not able to build the examples provided by Qt, because I get the following message in every example I try: Make Error at CMakeLists.txt:12 (find_package): By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project…
DLef
  • 1
  • 1
-1
votes
1 answer

Qt, Is there a more efficient way to crop out part of an Qimage?

I am making a simple editor where the user can click on points of an image and crop out a shape. My implementation is terribly inefficient and as I'm new to qt, I have trouble deciphering all the functions on qt's docs. QPolygonF…
symanoz
  • 51
  • 4
-1
votes
1 answer

PyQt6 how to get black menu bar in Mac OS Dark Mode

I'm developing an app with PyQt6 for Mac OS. When using Dark Mode in the Mac OS settings it applies to all widgets etc in my app however for some reason the menubar does not turn black like it does for most other apps e.g. Google Chrome when running…
Bearify
  • 43
  • 1
  • 5
-1
votes
1 answer

Problem with QGraphicsPolygonItem and drag their corners with mouse after move

i have been working on a QT application using the QGraphicsPolygonItem. First i created a class called DiagramScene who inherites the QGraphicsScene. First i create the item and put red corners in every point of the Polygon: item = new…
1 2 3
45
46