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

QT Creator - Centering elements(gridLayout) within stackedWidget page

MainWindow -> centralWidget -> stackedWidget -> page_startScreen -> gridLayout_StartScreen -> (page elements go in here) I have learned how to center elements in QT Creator using layouts and spacers, but when trying to do the same inside of a…
Pingus
  • 13
  • 2
0
votes
1 answer

Are accents and special characters broken in Qt6?

I've got a Qt program that reads from csv files and saves the info into a database. There was no problem until i tried to update from Qt 5.15.2 to Qt 6.3. Now, when I read from the files, all accents are converted to a question mark. I've tried…
0
votes
1 answer

QInputDialog with suffix

I'm getting double value quickly from user with QInputDialog. Actually, everything is fine just wondering if there is a way to write suffix next to this value. My code: double value = QInputDialog::getDouble(this, …
Hakan Kaya
  • 46
  • 4
0
votes
1 answer

QSQL won't connect to SQL Server 2022 Express Edition

I tried to connect to a MSSQLEXP2022 database, but it always does nothing. The database itself works fine with Windows ODBC manager and for sure from SSMS. This is my code now, I tried several things and code snippets but nothing works. #include…
T-Hope
  • 15
  • 5
0
votes
1 answer

Qt Creator Release Build Quit Unexpectedly

After compiling any version (Debug and Release) of the application with Qt Creator, it only runs from under Qt Creator with the option: "Add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH". I try compilation and use…
0
votes
1 answer

QML project gives 'unavailable type error' with CMake configuration (Qt 6.2)

I have created a test project with Qt6.2-MinGW-64bit and I choose CMake. The project structure is shown in the picture. Only 3 test files are embedded in each other and the first test file (test1.qml) is used in main.qml. Now when I want to start…
Mosi
  • 1,178
  • 2
  • 12
  • 30
0
votes
0 answers

Starting QT Application

I want to start my QT6 Application, but got exit code 139 (interrupted by signal 11: SIGSEGV). Login extends QMainWindow with the following code in the main.cpp: #include #include #include "Login.h" int main(int argc,…
0
votes
0 answers

cmake find package can not see Qt6

I downloaded qt6 -> qtbase only and built, install it , i write simple program to check it, when I tried to locate Qt6 it show me this error : CMake Error at CMakeLists.txt:13 (find_package): Could not find a configuration file for package "Qt6"…
0
votes
0 answers

QT6 ui file not found

I have a QT Application, but as I undestand, the ui file is not found. All of the listed files are located in the same directory, the projects root folder. I'm using Clion as IDE and have created the ui with Clion. My…
0
votes
2 answers

QPushButton signal

I'm trying to get a QPushButton's action method running doing the following. My login.h: // // Created by simon on 28.04.22. // #ifndef RESTCLIENT_LOGIN_H #define RESTCLIENT_LOGIN_H #include #include #include…
0
votes
0 answers

Can't use Qt5Compat.GraphicalEffects as it requires a version

I am using Qt Creator 7.0.0 Based on Qt 6.2.3. In order to use GraphicalEffects we have to use following method described: https://doc.qt.io/qt-6.2/qtgraphicaleffects5-index.html Now, if I apply this method I can easily access all its…
Muddybeast
  • 31
  • 4
0
votes
1 answer

how to pass a uers input from a lineEdit into a SQL Query QT 6.0 c++

Hello I have tried every forum and resource i have and can still not find the answer to my question. I am making a booking management system. One of the features is the admin can search someones email and get their details from the database. So i…
0
votes
1 answer

QSqlQuery binding values syntax

This code returns no records: QString sql = QString("SELECT * FROM %1 WHERE dd_nomdest LIKE '%:machine';").arg(TABLE_NEW_ORDERS); QSqlQuery query(_db); if (!query.prepare(sql)) { qWarning() << ID << "Prepare query failed" << sql; qWarning()…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Modify line behind QStatusbar widgets

Is there a way to modify (remove) the line behind a permanent widget in a QStatusbar? I don't know if it's important, but that's how I added the labels to the status bar: wStyleTest::wStyleTest(QWidget *parent) : QMainWindow(parent), ui(new…
Bamp
  • 25
  • 5
0
votes
3 answers

I don't manage to add a file to my QML project with Qt Creator Qt6

I feel a bit ashamed but I simply don't manage to add a file to my QML project in Qt Creator. I use Qt 6.2.3 and my build system is qmake. First off, I created a file MyButton.qml by doing a right click on the folder named QML of a project which…
Fila2016
  • 53
  • 1
  • 6