Categories
Development

undefined reference errors when using oscpack in QtCreator

I’ve seen several similar posts but have been unable to fix my specific problem. I want to use oscpack, described here, http://www.rossbencina.com/code/oscpack and downloaded here, https://github.com/hecomi/qml-osc and then clicked on the button ‘clone or download’, then ‘Download ZIP’ link. Note: the link I had previously, ‘https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/oscpack/oscpack_1_1_0.zip‘ was incorrect. Note2: I also installed oscpack on my […]

Categories
Development

Qt5-QML: ColumnLayout is overwriting another ColumnLayout when in a nested loop

After successfully designing the layout of a small application from my previous post I am adding the logic of the events. I almost completed it but some events are not happening as I am planning. Below the logic and the full source code here in case would like to verify: 1) As soon as I […]

Categories
Development

How to close the programme when running a qtconcurrent from another thread in qt

I am running a programme that has multithreading . The programme firstly has a main / UI thread running in it. In this programme I have a worker and handler class. The worker class is having a simulate function which simply generates the random number. The simulate function continuously generates the number without blocking any […]

Categories
Development

QMqttClient – Socket notifiers cannot be enabled or disabled from another thread

I have create a simple mqttclient in Qt which is trying to connect to MqttBroker. If i dont use another thread and calls everything from the same thread than it works fine. However, when I create another thread in main.cpp and try to run mqttclient from it. It does not make connection with mqttbroker but […]

Categories
API Development

QScreen geometry() api is giving wrong values for the resolutions 2736 x 1824 and 2560 x 1600

#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QQuickView> #include <QScreen> #include “rearend.h” int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); //qmlRegisterType<RearEnd>(“io.backside”,1,0,”RearEnd”); QScreen *screen = QGuiApplication::primaryScreen(); QRect screenGeometry = screen->geometry(); int height = screenGeometry.height(); int width = screenGeometry.width(); qDebug() << “height = ” << height; qDebug() << “width = ” << width; QQmlApplicationEngine engine; […]

Categories
Development

Custom Length of Scrollbar / scrollView in QML / QT

Hi I am facing a problem with the length of scrollbar in QML. Basically I have two parts in qT, In c ++ i am making a model and that model is displayed in qml listview. In c++ mDataIn consists of 40 elements. mDataOut fetches elemnts from mDataIn and passes to QML model. mDataOut or […]

Categories
Development

In Qt “no matching function for call to ‘connect'” An error occurs

If I create a project with Qt Quick Application-Empty in Qt5.12.5, it will be created in the main.cpp file from the start of creation. “no matching function for call to ‘connect’” An error occurs. I’ve searched the problem on both google and stack overflow but didn’t find the right result. This is the first time […]