Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Browsing all 106 articles
Browse latest View live
↧

How to access C++ enum from QML?

class StyleClass : public QObject {public: typedef enum { STYLE_RADIAL, STYLE_ENVELOPE, STYLE_FILLED } Style; Style m_style; //...};The .h file has the above code. How to access the above enum through...

View Article


Image may be NSFW.
Clik here to view.

How to implement QML SplitView for three or more elements

I'm trying to user PyQt6 to build Desktop app. I need to build a UI presentation with three logical sections which can be resizable by horizontal axis. Looks like SplitView is a perfect component for...

View Article


Custom Button with conditional image and conditional text

I have the following custom QML Button:import QtQuick.Controls 1.4import QtQuick 2.5import QtQuick.Layouts 1.2import QtMultimedia 5.5Rectangle { id: ueButton property string ueText: "" property string...

View Article

How do I connect my Python code to my Qml Gui? [duplicate]

lately I have been reworking a program that I wrote a while ago. Basically a simple python script in the backend with PySide6 and QtWidgets as my frontend. Since I am working a lot with Qml and...

View Article

Qt Vulkan: How to enable depth test?

I use this Vulkan under QML approach to integrate Vulkan with QtQuick. But I noticed that the depth test is disabled (the model that was rendered later overlaps the first model even if it is...

View Article


Image may be NSFW.
Clik here to view.

multiwindow scenegraph couldn't renderr correct [closed]

i designed an app using scenegraph for rendering some 2d on qtquick and qml. My goal is render some 2d content on main window and another 2d content on a seprate window.I load my app from c++ with this...

View Article

"Bind" two QML CheckBoxes together, ensuring their states are always identical

I'd like to create two checkboxes on different pages of a GUI such that they are semantically the "same" checkbox -- same label, same effect. (Having them on both pages is just for the user's...

View Article

Qt6: Warnings when QML Listview accesses C++ model

First of all, I'm new to Qt6 and QML, so maybe I am missing something obvious.I'm trying to link a C++ model to a ListView in QML from a QObject property.From this doc I should be able to use a...

View Article


QML ListView delegate that works for both QML and C++ models

I'm asking this question after getting some insights on my first question on displaying C++ backend model in QML.I am new to Qt6 and QML, and I think I understood how to link models to delegates in...

View Article


Access c++ methods from c++ qml extension

I successfully set up a qml plugin with the c++ QML Extension System. For that I followed the "Writing QML Extensions with C++" Example from QT. Now to my question. Assume you want to realize a dynamic...

View Article

Qt Creator Build Failure - Fails to Clone Repository for New Qt Quick...

I'm trying to create a new Qt Quick Application in Qt Creator. However, every time I try to build the project, it fails immediately even before doing...

View Article

QML how to make Behavior working on multiple properties

Is there any way to make Behavior work on multiple attributes simultaneously to simplify the code?ApplicationWindow { width: 1280 height: 720 visible: true title: qsTr("Hello World") color:"#202020"...

View Article

Image may be NSFW.
Clik here to view.

QML baseline alignment without using a layout

I want to use baseline alignment anchor without using any fancy RowLayouts, etc. I want to use bottom anchor of a label be anchored with the baseline of the text edit. I thought, that baseline of...

View Article


Trouble importing supporting QML files into Main.QML

I'm trying to make a QtQuick app with color themes. I plan to make a few .qml style sheets that define concepts like buttonColor, fontColor and so on. Here's an example of what the style sheets will...

View Article

Image may be NSFW.
Clik here to view.

problem with multiple qquickwindow for render 2d using qnanopainter [closed]

my project is about rendering some 2d on qml .for this i use qnanopainter that work with qt quick scene graph.qnanopainter is a library in github for painting, instead of qpainter it works with opengl...

View Article


How to print a QQuickView's contents to PDF?

I'm upgrading some Qt (C++& QML) code from Qt4.8 to Qt5.1.The Qt4.8 code is a trivial C++"QML viewer" app subclassing a QDeclarativeView, and a bunch of QML.It's been easy enough to change this to...

View Article

Image may be NSFW.
Clik here to view.

Why is one QML ListModel in my application not beeing replaced?

I am trying to set up a data-based qml element list. As a first step I just want to update the list by data, not by manual input. In the constructor of the list I append 2 list elements. After that, I...

View Article


The "component.create()" function does not lead to a visible qml element

I want to instantiate a simple qml file with a rectangle through c++ . Unfortunately nothing shows up. I have no idea what the problem could be, the out-commented error printing shows no errors.This is...

View Article

Foreach delegate in QML view

Is it possible to iterate through the delegates of a ListView or GridView using foreach or a similar function?

View Article

Error when trying to import QuickControls

I want to make a project with Cmake in Ubuntu.My CMakeList is:cmake_minimum_required(VERSION 2.8.3)project(client_ros)find_package(catkin REQUIRED COMPONENTS roscpp std_msgs qt_build)file(GLOB_RECURSE...

View Article
Browsing all 106 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>