Specifying font for many Text-elements in Qt QML

I have a widget specified through a QML file. This widget contains a top levelRectangle which contains two Columns. Each of these Columns contains many Text-elements. This QML widget is wrapped in...

C++ signal to QML slot in Qt

I want to send a Signal from C++ to a Slot in my QML File. I already got it working without and primitive type parameters, although if I want to send a QString to my QML Slot I get an error whilst...

How to print degree symbol on the window using qt5(QtQuick 2.1) and above

When I was using up to qt4.8(qt quick 1.1) for gui then I am successfully able to print degree with \260 but when things got upgraded to qt5 and above then this stopped working. I searched on the...

Calling a QML function from C++

I'm developing a Blackberry 10 mobile application using the BB Native SDK. I need to call a QML function into my C++ class. I searched a lot on this but I only found the possibility to call C++...

OpenGL scene under Qt qml application

This should be the best way how to add custom opengl into qml app. http://qt-project.org/doc/qt-5/qtquick-scenegraph-openglunderqml-example.html The problem is, i dont want to paint over the whole...

Qt SSL: Handshake failed for requests made from QML

I make some https requests directly from my qml views, for instance for image sources. As I have a self signed certificate server side, I need to tell qt to ignore some ssl errors (I control both...

Select/Highlight multiple rows in TreeView programatically

I have a TreeView and an array containing ModelIndexes from that tree. The treeview's selectionMode is set to Controls.SelectionMode.ExtendedSelection. Is there a way to highlight all the rows in...

Two way binding C++ model in QML

I'm trying to learn more about QtQuick and QML. My current goal is to understand how to bind data from a C++ model to my view. So far I've been able to setup the model in my QML and get data from...

'QML Connections: Cannot assign to non-existent Property' despite the opposite being true

So, I checked the following questions, which seemed most similar to my existing...

Temporarily disable (ignore / not display) the animation on a complex QML component

Is it possible to temporarily disable (ignore / not display) the animation on a complex QML component until a certain point in time? And later activate the animation and work as usual. For...

QML: Attach scrollbar to ListView

I'm having an issue with ListView. ListView is too long and part of it appears outside of the window but I can't attach a scrollbar. I tried many different combination. I think that problem lies...

Dynamically retranslate Qt Quick UI

I want to dynamically retranslate Qt Quick GUI strings. There is intrusive trick to retranslate affected string properties, whose notifications about changes cannot be centralized. Is it possible...

Qt Camera Example - changing settings does not work

I have built and run the Camera Example project from the examples in Qt (QtCreator -> examples). All went correctly. I can run the program and display video stream from my laptops camera (Lenovo...

How Does Windows 7 / 10 Taskbar Resize Its Default Height Relative Screen Resolution?

In current Qt/QML the taskbar height is not considered in Windows OS (see: QTBUG-61232). A kludgy solution I've come up w/ is: height: { switch (Screen.desktopAvailableHeight) { return...

Is it possible to apply a custom font to all elements in QML?

Like the question says, i want to know if there is a way to apply a custom font to all elements in QML like we can easily do in HTML setting the font on the tag body. I already have the font...

Change property value without destroying binding to support two-way binding

I want to create a custom component, which allows two-way binding with the following (traditional) setup: // main.qml property var someStoredValue: someInitialValue // may be C++ property in real...

Qt Designer: How to fix screen size disparity

I'm working on a program in QT Creator as well as in QT Designer. This is my first experience with the QT family, and I've been working on this for about 3 weeks now. I have to design a variety of...

How to fix 'Could not load the Qt platform plugin "xcb" in "" even though it was found.' after fixup_bundle macro?

I'm trying to setting up a standalone binary archive (.tar.gz) that can run on most Linux distros (ex. Blender). I'm still not familiar with CMake. As far as I know, all the dependencies can be...

QML Display multi text in one ROW

I have problem in displaying the text inside a listview in aligned manner. MyCodes are delegate: Rectangle{ width : parent.width height:...

QML how force update / redraw

In my application I have a process which is started by clicking on a button. The button already has a property to indicate when it is busy, this changes the colours to reflect the busy state. ...

Qt - Why Visual Studio 2019 can no longer compile my project after I add a 10Mb file in qml resources?

I'm compiling a QtQuick application using Visual Studio 2019. I built a basic interface which is running well. The interface itself is very simple for now, it's just 3 labels. At this point my...

Reading value from QML in C++

I am trying to read an int value from my QML side on c++ but this value remains 0 and doesn't update on c++ side while console.log() clearly shows me that it increments after each click . What am...

QtLocation OSM API Key required

I am using OSM and here map plugins for QML app. I use map.activeMapType = map.supportedMapTypes[currentIndex] in ComboBox to display supported map types from map providers on the map area. Here...

I need to Intergate my c++ code and qml. But I get errors "undefined reference to `Middlemen::staticMetaObject'" among many on using qmlRegisterType

I need to be able to call my c++ function from qml(javascript). But I seem to get an error when trying to register the class as a qml type by using qmlRegisterType I use cmake CMakeLists.txt to...

Working with delegate model and delegate model group dynamically QML?

I have been using a DelegateModel and DelegateModelGroup to only show certain items of a List Model in my delegate. The process is essentially the same as the process described in the first answer...

How to use QML_ELEMENT with cmake

The doc shows I can use QML_ELEMENT macro to create QML types from C++ by adding some variables in qmake's .pro file. But I'm using cmake

QML Svg in qt 5.15 static build, using CMake

I would like to migrate from 5.9 to 5.15 and I don't get to load svg from QML. The original version, using qt provided by Ubuntu (5.9) did load svg from QML with no extra steps. The new build...

Webview is not working in Qt Creator with mingw on Windows

I am using Qt creator 4.11.1 with Qt 5.14.1 and MinGW on Windows I have to open url in webview from QML I followed the below steps: Added "QT += webkit" in pro file Included "import QtWebKit 1.0"...

Can not get Pyvista render to work with Qt QML QQuickFramebufferObject

I have multiple Pyvista 3d visualizations render in the Qt 5.15.x Qt Widgets. This was done using QtInteractor (https://github.com/pyvista/pyvistaqt). Now, I am moving away from Qt widgets to Qt...

How to fix libGL error in Qt5 (QML) GUI launched from Docker on Linux?

I am trying to run a Qt5 application (utilizing QML and a cpp main) in a docker (FROM ubuntu:20.04) running on a native Ubuntu (20.04) host. The application fails with: #:...