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

persistent issue with PyQt6 QtWebEngine

In Chrome, if you close the pop up dialog of this page, then it won't show if you open the page again. However, in my following code, the pop up dialog still shows in a second run even you close it in the first run, it seems to be a issue with the…
iMath
  • 2,326
  • 2
  • 43
  • 75
0
votes
1 answer

Use derived class to add properties and maintain compatibility with existing classes

I'm writing a Qt 6.2.0 application running in Ubuntu 20.04. My goal is to add a property to the existing class QtOpcUaNode. So I wrote: class MyOpcUaNode : public QOpcUaNode { Q_OBJECT public: explicit MyOpcUaNode(QOpcUaNode *parent =…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Qt6Quick in yocto

Is it possible to use QtQuick in yocto? (Or I missed something out) I created simple coffee_6.2.0.bb recipe which uses demo from ~/Qt/Examples/Qt-6.2.0/demos/coffee/ But the error is: Could NOT find Qt6Quick (missing: Qt6Quick_DIR Recipe is quite…
TadejP
  • 912
  • 11
  • 21
0
votes
1 answer

QT6+VTK9.1 on Windows build error: Undefined Reference to QVTKOpenGLStereoWidget

I have installed QT6 and successfully build VTK 9.1. I have added the following environment variables: %QTDIR%\bin %QTDIR%\lib %VTK_DIR%\bin where QTDIR points to C:\Qt\6.2.3\msvc2019_64 and VTK_DIR points to C:\VTK where the VTK is installed after…
Simon
  • 3
  • 2
0
votes
0 answers

Qt Data Visualization fails to complie

I am trying to use Qt Data Visualization on MSVC2019 Qt 6.2.2 inside Visual Studio 2022 project. But just including #include already leads to compile failure with tons of nonsensical error…
Virgileo
  • 55
  • 4
0
votes
2 answers

Q_INVOKABLE on all getters and setters functions inside QT?

I have some fields in my class. I want to have Q_PROPERTY on all these fields and also have getters and setters. Example for the private field float pwm7Min, I can get my getters and setters and also property using this code. Q_PROPERTY(float…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
0 answers

Problem not knowing QT += gui-private in Qt

When I enter this " QT += gui-private " in the *.pro for a project, the program gives the following error. I use Qt 6.0.1 GCC 10.3.1 in Ubuntu 20.04 -1: error: cannot find -lxkbcommon -1: error: collect2: error: ld returned 1 exit status -1: error:…
sn01
  • 36
  • 6
0
votes
1 answer

Is it possible to access a method from QMetaMethod in QT?

Assume that you have two classes A and B in QT C++. Your goal is to transfer data from A to B and B to A. For A class, you have the ability to use the method findChildren. Assume that you have objects inside class A that you want to access and find…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
1 answer

Skipping indices with a repeater

How do I skip the indices in a repeater such that I can create the following exact string: A • D • G • J • M • P • S • V • Z Is this achievable? My new code based on suggested answers, I created a function newLetters(index) to determine which…
test me
  • 47
  • 6
0
votes
0 answers

Qt 6++ Bluetooth Pairing

Info: bluetooth-changes-qt6 The pairing agent related API was removed without replacement. This includes pairingConfirmation(bool), pairingDisplayPinCode(..) & pairingDisplayConfirmation(..). I would like to know: Why it has disappeared Even…
Afalsa
  • 1
  • 1
0
votes
1 answer

QVirtualKeyboard default style for PySide6 and PySide2 not the same

I use the keyboard in the project written on pyside2, without any additional settings it looks like this: But the same code on pyside6 displays the keyboard in another style: How can I use style from pyside2 in pyside6?
uralbash
  • 3,219
  • 5
  • 25
  • 45
0
votes
1 answer

QT6 - signal/slot between 2 classes

I have created a new class for qpushbutton, I am trying to establish signal slot communication between this class and my mainwindow class connect(&MyPushButton, &pushbutton::pb_isChecked, this, &MainWindow::MainWindowPBClicked,…
0
votes
1 answer

Problems building QT6 for embedded Linux with cmake

I am trying to compile the qt6 for embedded linux (arm). I set the following configuration: Cmake : 3.22.1 Toolchain: cc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf path to my rootfs: /home/manra/rootfs/mysysroot my…
user1657666
  • 351
  • 2
  • 9
0
votes
0 answers

When I use Qt6 and draw a pixmap on a QWidget however in some conditions the pixmap will disappear

I use Visual Studio 2022 to write a Qt demo to show a icon of an image in my Qt application. To make sure QPainter::Antialiasing enable, I write a derived class from QWidget instead of using QLabel, and rewrite the void paintEvent(QPaintEvent *) to…
hehe HE
  • 21
  • 1
0
votes
0 answers

Qt6 - QComboBox applying style(sheet) to one specific item

In a QComboBox, I have an item list. One of this item is the default value (whatever the item currenlty selected). For example, here, the current selected item is "INST IN", but the default value is "ALL" for this combobox. Currently, I am using…