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

58 questions
0
votes
0 answers

How to add two or more lines of QSplineSeries to one QChartView

I tries to add two lines of QSplineSeries to one QChartView. Exapmle: QSplineSeries *series = new QSplineSeries(); series->setName("spline"); series->append(0, 6); series->append(2, 4); series->append(3, 8); series->append(7, 4); series->append(10,…
0
votes
1 answer

QtConcurrent::mappedReduced without mapped

Consider the following code (Qt 6.0.3, C++17): const QVector arr = {1, 2, 3, 4, 5}; auto future = QtConcurrent::mappedReduced(arr, [](auto item) { return item; }, [](int& result, auto item) { result += item; }); As you can see the…
Roman Podymov
  • 3,416
  • 3
  • 28
  • 49
0
votes
1 answer

QPSQL driver not loaded (Qt6, Postgres-13)

I try to repeat QPSQL driver not loaded Qt but it does not helped me. I used x64 Postgresql and my Qt application also x64 m_dataBase.addDatabase("QPSQL"); m_dataBase.setHostName(g_hostName); m_dataBase.setPort(g_databasePort); …
0
votes
0 answers

Loading QML Bytecode at run time in C++

I'm using the QQmlApplication engine to load my QML code at runtime using the load method. I would like to know how I can load QML bytecode generated using the qmlcachegen tool? I am using Qt 6 modules and CMake.
edition
  • 558
  • 10
  • 27
0
votes
1 answer

Include libqtforandroid.so or libqtforandroidGL.so in package?

I try to run the QT C++ usb debugger on an Android smartphone, altough there is a compilation error (on the screenshot #1). The downloaded version of QTCreator is 4.14.2 with Qt 6.0.3 MinGw 64-bit.
Ivan Silkin
  • 95
  • 10
0
votes
0 answers

Include built libraries in Qt project

I m using Linux 20.04 and built 3D library of Qt6.0.3 version. I referred following links to build the…
surajj4837
  • 11
  • 4
0
votes
0 answers

Link CorePrivate from Qt6

I am writing a server using QtHttpServer (from Qt6). It's time to implement chats for the system using web sockets, but it hasn't been added to Qt6 yet. I see two ways out – either use long-pulling instead of web sockets, or download the web sockets…
garbart
  • 305
  • 1
  • 14
0
votes
0 answers

Undefined symbols error while using QWindowsIntegrationPlugin with Qt6 Static Libraries

I have built the static libraries of Qt6 for Windows. Source code was cloned from Qt's git repo and below configure command used followed by cmake --build and cmake --install : ..\qt5\configure -debug-and-release -prefix -commercial…
Abhi_M
  • 1
0
votes
2 answers

Partial build of Qt6 from source

I need to install Qt6 on Ubuntu 18. Since qt6 is not in the repositories (or is it?), I have to compile them from the source code. However, I do this on my VDS server, which is not very powerful (2 cores, 4GB of RAM), so I do not have enough power…
garbart
  • 305
  • 1
  • 14
0
votes
1 answer

Qt. Copying file error while trying to run the project. How to fix a mistake and why is it happening?

I’m trying to install and create the first Qt project. I am using CLion with CMake and Qt 6. I set up CMake: cmake_minimum_required(VERSION 3.17) project(QSnake) set(CMAKE_CXX_STANDARD 20) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC…
0
votes
0 answers

Unknown CMake command "qtquick_compiler_add_resources"

I want to use QtQuickCompiler for my project, but as soon as I call qtquick_compiler_add_resources I get the following error message: Unknown CMake command "qtquick_compiler_add_resources". I use Qt6 and CMake 3.18.2. I have read a lot in the…
TheDummy
  • 21
  • 4
0
votes
0 answers

QtQuickCompiler was not found with CMake

I tried to use the QtQuickCompiler the first time, so I looked in the Qt docs. (https://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html). But if I call find_package(Qt6QuickCompiler) it shows me, By not providing…
TheDummy
  • 21
  • 4
0
votes
0 answers

QT rpath is pointing to version 'A' instead of a number @rpath/QtCore.framework/Versions/A/QtCore

just installed latest QT 6.0.1 and I was about to run my applicationbn and I encountered the issue dyld: Library not loaded: @rpath/QtWidgets.framework/Versions/A/QtWidgets I was surprised that instead of a version number, the letter 'A' is…
0
votes
2 answers

Building Qt3D under windows fails due to Vulkan SDK not being found (but in Path)

I am trying to build Qt3D as it seems to not ship by default with Qt6 anymore. I just finished installation on ubuntu, without major issue (it would have helped if the install instruction could have mentioned that the vulkan sdk is required, which…
tom
  • 191
  • 9
0
votes
0 answers

How to programmatically add a menu bar to a QWidget?

I have created a QWidget (i.e something that acts as a window). However I am unable to set a Menu Bar to the QWidget using QMenu (NOT QMenuBar). I am not using Qt Designer. I am making the program in C++ and would like help with how I can get a menu…
Arnav Deo
  • 31
  • 2