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

Is it possible to know default size of the QML Control?

Is it possible to know default size (height) of the QML Control? Something like QWidget::sizeHint()... I want to set implicitHeight of the TextField to be 8mm, this is fine on desktops, but on Android 8mm is not enough, so I want something…
Igor Mironchik
  • 582
  • 4
  • 17
0
votes
1 answer

Why in QML TextField on Android character replacements are truncated?

I create text field for password input in QML with the following code: TextField { id: pwdField placeholderText: qsTr( "Password" ) leftPadding: appWindow.minimumCtrlHeight / 3 echoMode: TextInput.Password text:…
Igor Mironchik
  • 582
  • 4
  • 17
0
votes
0 answers

Https Server for Android with Qt6

I'm trying to build an https server on Android using Qt 6.3.0 since the qt module Qt HTTP Server is not available yet. Is it possible to code it from scratch? Is there any code that i can use or start with? Thank you for your help.
speryem
  • 1
  • 2
0
votes
1 answer

Cannot load QML plugin if folder is put into nested folder

maybe someone have an idea how fix such problem: By following that tutorial https://doc-snapshots.qt.io/interfaceframework/qtinterfaceframework-interfaceframework-qface-tutorial-example.html and using examples I managed to create working simulation…
Marcin_cyna
  • 97
  • 1
  • 1
  • 6
0
votes
0 answers

Turning on android flashlight in Qt6

Currently I'm trying to make an mobile app and I need to turn on the flash light of a mobile device. Actually I want to use it as a torch(On/off/blink etc). I searched in the qt docs and found QCamera class. But I'm unable to turn the light on. I'm…
0
votes
1 answer

Is it possible to fix failed build of multiple inheritance from Q_GADGET with Clang and Qt 6?

In one my project, a build on MacOS under GitHub action: macos: name: macos runs-on: macos-11 Subproject JKQtPlotter fails with: [ 64%] Building CXX object…
Igor Mironchik
  • 582
  • 4
  • 17
0
votes
1 answer

QPainter takes much more time to draw thicker curves?

I am drawing a sine wave (as a test) to check the time it takes to draw a curve using either QPainter::drawPolyline() or QPainter::drawPath(). In either case, if I set the pen width to more than 1, then the time it takes to draw the sine wave…
Chaitanya
  • 177
  • 2
  • 9
0
votes
1 answer

Wireframe of mesh in QtQuick3D (Outlines / Borders of triangles)

Does anyone know how to make a mesh wireframe in a QtQuick3D (Qt 6.4)? Setting the lines width and their color would be very much appreciated. Something that would be looking like this (it's done in a Qt3D, not the QtQuick3D,…
dany
  • 173
  • 1
  • 8
0
votes
1 answer

How can I mix both QT3D and QopenGL

Good morning, I developed an application that renders a textured cube and rotates it using quaternions. I used Qt6 and QOpenGL functions to make this work. Then I wanted to load a full 3D model ( without drawing it using shaders or opengl functions…
0
votes
1 answer

Qt6: "Unable to read Memory" when pointing to a QLineEdit from a QFormLayout

I want to get the text from a QLineEdit, which is in a QFormLayout, to save it to a File. The saving works fine, but I am not able to get the text form the QLineEdit and when I look at it from the Debugger it says "Unable to read Memory". I can´t…
Bugsia
  • 25
  • 6
0
votes
0 answers

Building Qt6 project - QMAKE_CXX.COMPILER_MACROS not defined

I'm building a Qt6 project using the following command ~/Qt/6.3.1/gcc_64/bin/qmake -o ~/nidb/bin/smtp/Makefile ~/nidb/src/smtp/SMTPEmail.pro -spec linux-g++ And it generates this error... ~/Qt/6.3.1/gcc_64/mkspecs/features/toolchain.prf:76: Variable…
Greg B
  • 609
  • 6
  • 19
0
votes
1 answer

Add column header to TreeView in Qt QML

I want to add headers for columns in my TreeView. Is there a way to do it in Qt6.3? Currently, my qml looks like this: TreeView { id: tree_view anchors{ fill: parent margins: 10 } model: FileSystemModel clip:…
no name
  • 3
  • 2
0
votes
1 answer

Qt-Quick button radius issue

I'm having an issue with a Qt Quick custom button. The planned behaviour is the button background, border, and text changes color on hover and pressed actions. The color change aspect is working, but when the button is pressed, it appears to lose…
CodgerCoder
  • 13
  • 1
  • 6
0
votes
0 answers

Qt6 QML Font glow effect

How to use QT6 QML to achieve font lighting effect. I know use Golw in import qt5compat graphicaleffects. However, after the golw is deleted by QT6 QML, does it not have its own function to realize font lighting?
刘晓天
  • 1
  • 1
0
votes
1 answer

Can't get correct value with QSettings and custom type

I am trying to read a small struct from my ini file using QSettings. Writing works fine, but when I try to read it back I always get the default value out of QVariant. This is the structure definition: struct CellSize { int font; int…
Jager
  • 1
  • 2