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
0 answers

Why does QChar( Qt::Key_Right ) now segfault?

I am updating some old cold from a project known as QFakeVim, and it is taking keyboard inputs as integers, and then returning QChar's based on that integer. That is not particularly important other than the fact that this code used to be…
0
votes
1 answer

How to generate a QVideoFrame from PylonImage buffer

I have a stream of pylon images that I would like to display to a user in a QML app, how can I convert the PylonImage to a QVideoFrame so I can display it? I am using PixelType_YUV422planar since it is supported by both pylonImages and…
UbiMiles
  • 71
  • 7
0
votes
0 answers

I wan to use qt to view more than one camera feed and it's really slow

I want any suggestion for making qt faster when dealing with multiple cameras at once it's making my PC very slow
0
votes
0 answers

Rotating an object using Class QQuaternion

I've been trying to rotate an object using the functions of the class QQuaternion. I defined my quaternion then normalize it. Now I'm struggling to make it rotate using this specific function : void QMatrix4x4::rotate(const QQuaternion…
user18332144
0
votes
1 answer

Specify database path for QMYSQL

Qt 6.2.0, Ubuntu 21.10. Usually MariaDb stores database under /var/lib/mysql/ directory. I can connect to my own database using this working code: _db = QSqlDatabase::addDatabase("QMYSQL",…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Switching between original condition and SequentialAnimation

Not sure how to express my question. My snippet code is just to illustrate what I want to achieve in a much bigger code base. I have an "originalCondition" that changes the opacity of an image which is independent of the SequentialAnimation. What I…
test me
  • 47
  • 6
0
votes
1 answer

Cannot access public function from different QML file

Qt 6.2.0 Ubuntu 20.04 Content.qml PathView { id: view function myFunc(type) { console.log(type) } } Main.qml ApplicationWindow { id: window Item { id: item Content { id: content } …
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
0 answers

Updating a property binding in another component

This is not a working example, my real code is to huge to add to the topic. I just want to understand the concept because I am quite confused. How can I update a property of another component after a signal handler in another component is triggered?…
test me
  • 47
  • 6
0
votes
1 answer

Why it is not possible to use unique_ptr in QFuture?

Here is my sample code, I am using std::vector> as future result. #include "mainwindow.h" #include #include #include MainWindow::MainWindow(QWidget *parent) : …
Jinesi Yelizati
  • 271
  • 1
  • 7
0
votes
0 answers

What is the Qt6/PySide6 equivalent of QXmlDefaultHandler?

I am currently trying to port from PyQt4 to PySide6 an application that uses the QXmlDefaultHandler, however this class (as many others) is no longer supported in Qt6 (as can be seen here). So I am looking for a solution on how I can adapt the code…
Martin
  • 105
  • 1
  • 10
0
votes
1 answer

How can I save a Window form in QTableWidget as it was a matrix?

I'm trying to save a Window form inside a QTableWidget table. int rows = 0; int columns = 0; QTableWidget cellTable; What I'm doing is that I first set the rows and columns cellTable.setRowCount(++rows); cellTable.setRowCount(++columns); For every…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
0 answers

QTableWidget crashes when I insert a new QTableWidgetItem

I have my QTableWidge here called ui->availableMeasurementsTableWidget and I want to set the row names and column names. My goal is to use the variable columnName to change each row of the ui->availableMeasurementsTableWidget but every time I insert…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
1 answer

How to create list of ThemeColor in Theme3D QML type?

Created custom Theme3D for Scatter3D component (QtDataVisualization module) like this: Theme3D { id: themeDark type: Theme3D.ThemeIsabelle font.pointSize: 20 baseColors: [ "red", "green", "blue" …
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
0 answers

How to embed Qt translation files in the executable when building from Visual Studio with the Qt VS tools extension?

When building a project in Qt Creator, these lines in the .pro file: CONFIG += lrelease CONFIG += embed_translations QM_FILES_RESOURCE_PREFIX=/lang will get the .qm translation files embedded in the built executable. The application can then load…
Gustavo Q
  • 61
  • 5
0
votes
1 answer

QT6 windows linker error when using Q_OBJECT

I am trying to build a simple QT6 program using VSCode and MSVC. For this, I have following files: CMakeLists.txt: cmake_minimum_required(VERSION 3.10.0) project(test VERSION 0.1.0) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED…
user14060819