Category "qt"

QT: qmake not recognising 3dcore, 3drender

I am using qmake to compile my QT project. In my .pro file I have a line: QT += 3dcore 3drender 3dinput 3dextras When executing qmake myprofile.pro I get the

Qt Window incorrect size until user event

I'm creating a screen where users can add certain tiles to use in an editor, but when adding a tile the window does not correctly resize to fit the content. Exc

QMediaPlayer and Segmentation Fault

Hello Guys i used just this simple example to play music with this code: QMediaPlayer *mediaPlayer { new QMediaPlayer }; mediaPlayer->setMedia(QUrl(currentMe

Passing data from Qdialog to main window in Qt

I am trying to pass data from a Qdialog (Login dialog) to my mainWindow after a successful login and was wondering if it is possible to use Signals and slots to

How to connect in Qt signal and slot in dynamically added buttons to get in slot index of added button?

I have list with pointers QPushButton: QList<QPushButton*> listButtons; In this code I am adding dynamically buttons listButtons.push_back(new QPushBu

How to handle macOS dock Quit action in QML app?

I have a simple ApplicationWindow that should prevent quitting by overriding onClosing signal. However, when the app is closed from macOS dock, the onClosing is

How to customize QModbusDataUnit to send hex values in modbus?

I would need to customize the QModbusDataUnit by sending custom hex via modbus, below my code, I'm trying to customize the post but I do not understand how to d

<command-line>:0:3: warning: ISO C++11 requires whitespace after the macro name

I am compiling qt sources (C++) on different version of Ubuntu OS (14.04 and 16.04 LTS). The sources compile (g++) on 14.04 LTS without warnings. But on 16.04 g

Can't get OAuth 2.0 code in Qt app, but is seems to work in browser

I'm trying to configure communication with Google OAuth 2.0 in my Qt project. I was using this tutorial, although it seems to be a bit outdated. I configured ev

How to equally distribute the width of QSplitter

I have a problem with adjusting width of QSplitter. I prepared UI in Qt Designer and it looks now like that: Designer view: And here is my object inspector:

QT Creator and OpenCV455: 'arm_neon.h' file not found

I'm building a project using qt6 and opencv455. I'm doing this on the new MacBook with a silicon chip (arm64). I can compile the whole project without errors, b

How to add rows with the same specifications as the ones in a tableWidget after a table is already created?

In my app I enter a vlaue and said value sets the number of rows to the table. Within the function I will post here I do all the stuff related to setting up the

Video Lagging while Object Detection on C++

There is an object detection pre-trained model i.e. Yolov3/v4-tiny, when the algorithm is implemented in python, everything looked good, there is no lag while p

How to stop long operation on QThread?

I've made some research but I couldn't find the answer to why my solution is not working. But to the point. I've got QWidget as a separate dialog in my app. I'm

How do I insert customType array data in QDBusArgument

I am trying to set and get DNS using QtDBusInterface. As per the documentation, it has "a(iay)" format. which contains an array of IP types and an array of unsi

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,

qt add a database sql into a project imported from cmake

Normally, to add a database to qt, we would go to the .pro file and add sql, but the project am working on was imported from cmake, so it does not have a .pro f

draw cursor on a QChartView object

I need to draw a cursor on the QChartView object. something like this: Cursor on the Chart Whenever a user clicks on the chart the cursor should be moved th

Qt C++ QString to QByteArray Conversion

I have created an encrypt/decrypt program, when encrypting I store the encrypted QByteArray in a text file. When trying to decrypt I retrieved it and then put

How to debug/step into QT SDK sources from my project

I want to debug, set break points etc in QT SDK sources, I have QT5.5.0 built with symbols and symbols are picked up, at lest GDB says so. But I still cannot de