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

Why RPATH_CHECK in CMake deletes executable?

The following CMake's action will delete executable if RPATH is not the same. file(RPATH_CHECK FILE "${CMAKE_CURRENT_SOURCE_DIR}/moc" RPATH "\$ORIGIN/../lib") If RPATH will not be $ORIGIN/../lib then - ops, and no more executable. Is it…
Igor Mironchik
  • 582
  • 4
  • 17
0
votes
1 answer

libyaml: retrieve the key of the root element

Given this simple YAML example: {CR: {ab: 12}} I want to retrieve CR. Perhaps I don't know the correct word to identify the "root key", hence I didn't find anything useful. I use QtYaml that is based upon libyaml, in Ubuntu 20.04. QString yaml =…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Read QMediaMetaData without wait after set the media source

Qt 6.2.0 / Ubuntu 20.04. I want to read the title tag from a mkv video file. So at first I'm trying to retrieve all the available tags: QMediaPlayer p; p.setSource(QUrl::fromLocalFile(dir.absolutePath())); QMediaMetaData metadata =…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Hide first or last item in PathView

I wrote a simple carousel in QML. I run Qt 6.2.0 under Ubuntu 20.04. import QtQuick PathView { id: view property int item_width: 864 property int item_gap: 250 anchors.fill: parent anchors.bottomMargin: 150 …
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
2 answers

CMake, Qt6 - module "QtQuick.Controls" is not installed

I'm currently working on learning QtQuick, and I've been running into a variety of issues, but this is the first one I've been unable to solve so far. For background, I'm using MVSC, Visual Studio 2019, CMake, and Qt6. ​ Upon running my very basic…
Noah
  • 31
  • 1
  • 6
0
votes
1 answer

DropShadow QML widget in Qt6

I have a problem: I need to use DropShadow effect from QGraphicalEffects (which deleted in qt6) in my app. How I can do it or replace it?
Snake-net
  • 18
  • 4
0
votes
2 answers

Blur background in QML

I do not know how to blur the background of my window (something like backdrop-filter: blur in CSS). Apparently I have to use something called ShaderEffect but I do not know how to write a shader. I found the following code for Gaussian blur which I…
user11955706
0
votes
2 answers

Use Qt5Compat.GraphicalEffects in Qt6 and QtGraphicalEffects in Qt5 in the same QML file

I have a QML file originally written in Qt5, I am migrating it to the latest QtQuick.Controls 2 version and I am making it compatible with Qt6 too. I need to keep supporting Qt5 but I couldn't find a way to import Qt5Compat.GraphicalEffects when the…
rbrn
  • 35
  • 6
0
votes
0 answers

Passing QString as parameter to a QFuture

I need to pass a filename as QString with path to a function covered in a QFuture and watched by a QFutureWatcher, but only the first character of this QString will be passed to this function. Here the declaration in the *.h file: qint64…
hkottmann
  • 1
  • 1
0
votes
2 answers

Could not create the egl surface: error = 0x300b

I find a lot of questions about this error but they are related to embedded systems like RPi or iMX6. Instead, I run across this issue on a standard Ubuntu Server 20.04 x64 installation. I installed the mesa drivers: $ dpkg -l | grep egl ii …
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Qt6 Splitting a QString

*Edit: Im trying to use this in regards to QT6 The issue comes with reading a CSV file that is seperated by commas, as well as having embedded commas in quotes. Example: example.csv this is a pole,"made by: you, me",quantity:1 this is a pole, made…
0
votes
0 answers

QML text not in the center of TextField, when creating a rounded TextField

The following code to create a rounded TextField TextField { id: usernameTextField placeholderText: qsTr("username") width: 250 height: 40 anchors { top: parent.top topMargin: giveDetailsLabel.anchors.topMargin +…
user7179690
  • 1,051
  • 3
  • 17
  • 40
0
votes
1 answer

cross-compile QT6, configure doesn't recognize installed packages/libs on target

I'm on a native bullseye machine building QT6.2 from git using the compiler and cross-compiler that comes packaged in bullseye cmake version 3.21 first I build QT for the host using jgnoss@mav-dev:~/Devel/QT/qt_x86_64_build$ ../qt_git/configure…
jgnoss
  • 33
  • 5
0
votes
1 answer

Replot function which depends on time, Qt

I'm writing a study project and I need to plot a function that depends on real-time. I used QCustomPlot. This plot should start drawing when I pressed a button. So I've wrote next code void MainWindow::on_pushButton_restart_clicked() { ...…
deethereal
  • 53
  • 1
  • 12
0
votes
1 answer

cmake qt6 static ubuntu: libicuuc.so.66: error adding symbols: DSO missing from command line

I've built qt6 (6.2.0) static libs. Try to use it in my cmake project (OS Ubuntu 20.04) and got an error: /usr/bin/ld: /home/balisong/project/../3rdparty/Qt/qt6/gcc_64/lib/libQt6Core.a(qtimezoneprivate_icu.cpp.o): undefined reference to symbol…
balisong
  • 1
  • 1