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 remove `fromStdVector` method from Qt 6.3.0 c++ code

With Qt 6.3.0 QVector no longer has fromStdVector method. I didn't fully understand the answers in copying a std::vector to a qvector and would like to know how to modify the TreeWidgetController::getReponses method below. In particular these…
Sildeag
  • 74
  • 9
0
votes
0 answers

Trouble launching QApplication class with VSCode & C++

I am new to C++ as well as VSCode, so this issue might have a really simple answer I'm just overlooking. I'm trying to build an application using the Qt library after having loved its PyQt variant, but I cannot get the simplest possible app to…
khayni
  • 11
  • 1
  • 4
0
votes
0 answers

file path in QT pri file via function

I am creating a function in a .pri file that will be included in a .pro file with the intent of being able to do: template(subdirs) addMyProject(libA) addMyProject(libB) addMyProject(libC) instead of template(subdirs) SUBDIRS += libA libA.path =…
zerunio
  • 13
  • 3
0
votes
0 answers

PyQt6 Rounded corners on MainWindow when using FramelessWindowHint

I am working on a tool and am using PyQt6 as the GUI. I am using setWindowFlags(QtCore.Qt.WindowType.FramelessWindowHint) to remove the windows toolbar, however I wish to also make the MainWidnow have rounded corners. I have tried editing the…
user17230356
0
votes
0 answers

How to say Qt3D load material.lib located near obj file

6.3.0 MinGW Using Qt3DRender::QMesh to load my obj file: Qt3DRender::QMesh *planeModel = new Qt3DRender::QMesh(rootEntity); planeModel->setSource(QUrl("qrc:/tu-154/Tu154.obj")); rootEntity->addComponent(planeModel); File load correct but i don't…
user10609288
0
votes
0 answers

Problem linking Qt6 openGL library using Ubuntu

I would like to know if anyone knows how I can solve the error: libQt6OpenGL.so.6: cannot open shared object file: No such file or directory On my CMakeLists.txt I have the following: cmake_minimum_required(VERSION…
0
votes
1 answer

Installing the QT SQL driver for MySQL - How?

I have been using MySQL with QT C++ and it's working fine. Now I want to update to QT 6.3.0 and I need to re-do the procedure again. So there are one man who pre-compile libarires for MySQL support for…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
1 answer

How to confirm the Widget Order in Qt Creator?

I've just defined the order in which I want my widgets on a Qt GUI but I can't confirm my action after hours of researches. How can I do it please ? Here is the order I defined : I would like the widgets to be in this order : 1 - 2 - 3 But here,…
Fila2016
  • 53
  • 1
  • 6
0
votes
0 answers

mainform.ui.qml is missing in new QtQuick project

I'm pretty new in QT an have read/watched a lot of tutorials especially the QT documentation. Right now I'm stuck in creating new QTQuick projects. I have installed QT 6.2 and using a windows (Win 10) computer. Where ever I look I'm told, that…
0
votes
1 answer

How to use QHash::removeIf(Predicate Pred)

Qt 6.1 introduced the method removeIf(Predicate Pred) to a number of its collection classes: QByteArray, QHash, QList, QMap, QMultiHash, QMultiMap, QString and QVarLengthArray. But how do I write a predicate? Let's take a QHash example: struct…
Paul Masri-Stone
  • 2,843
  • 3
  • 29
  • 51
0
votes
0 answers

Qt Declarative cross compiling for STM32 giving error on Qt Base 6.3.0

Hey! I have successfully cross-compiled Qt6 (6.3.0) base module for the STM32. I then tried adding QtShader module via qt-configure-module and it worked! However, when I am trying to add Qt Declarative the same way (using qt-configure-module), I am…
Athem
  • 1
0
votes
1 answer

How can I build Qt6 for buildroot?

How can I build a Qt6 application for Buildroot ? I tried a lot to build Qt6 for Buildroot but I was unable to built it.
0
votes
0 answers

QBluetoothDeviceInfo serviceData() method presents strange issue with bytes having 0 value

I am trying to retrieve Service Data information from Bluetooth devices using QBluetoothDeviceInfo class (Qt 6.3), but when it contains bytes with 0 values it gets truncated. For example I have the Service Data in my bluetooth device written as…
srappose
  • 1
  • 1
0
votes
0 answers

Qt6 CMake for QML

I'm working on Qt with CMake. Is it possible to import runtime QML files using CMake? I wanto to creare a folder, near the .exe where I can put many QML…
0
votes
1 answer

Qt6 build error from source. Multi-config build is only supported by Xcode, Ninja Multi-Config and Visual Studio generators

I'm trying to build Qt6.3.0 from sources. I'm new in qt and trying to build static version. I'm use this tree: C:/Qt/6.3.0/Src C:/Qt/6.3.0/static In C:/Qt/6.3.0/Src/qtbase/mkspecs/win32-g++/qmake.conf: I add this in end of file: #…
dail45
  • 31
  • 4