Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

Qt Threaded Renderer

Hi I have a 3D engine that run entierely in one thread. I can’t separate inputs from renderer. I subclassed QQuickItem so my entiere engine can render with QML’s OpenGL context. Everything works fine...

View Article


Qt Threaded Renderer

You can set the environment variable QML_BAD_GUI_RENDER_LOOP=1 on mac to force the non threaded renderer.

View Article


Dynamically generating QML

I am very attracted to QML for controlling the entirety of a UI but I am wondering how flexible it is for handling cases such as having the user decide how many rows or columns to split a window. It’s...

View Article

How fast and demanding can HTML5 detailed pixel rendering be in QML?

Since QML is rendered with OpenGL, is an HTML5 Canvas component considered quite high performance, nearly to the degree as custom OpenGL? From everything I have read, it is not currently possible to...

View Article

QML Quick Controls compile error

Thanks again sierdzio. Got an hint from someone else saying that QtQuick.Controls requires QtQuick 2.1 (also found that confirmed at the following link,...

View Article


FileDialog crashes sometimes in Debug, seems to behave ok in Release

So this is a very ghostly bug… or else Code is very simple: #include <QQmlApplicationEngine> #include <QGuiApplication>   int main(int argc, char **argv) {...

View Article

Package / DelegateModel with custom components

Hi, I have some custom sub-views/components (View1, View2, View3…) I’d like to display in both a ListView and a GridView. I saw this example with “Package” :...

View Article

How to access a root context from QObject?

See the qmlContext() and qmlEngine() documentation. You may need to look at the qqmlengine.cpp source code directly to see that documentation, as qdoc is a broken mess. Cheers, Chris.

View Article


QML Magnify Shader QQuickShaderEffect error

@Arpegius: make certain that you import QtQuick 2.0 in the document. You can use “property vector2d circlePos” instead of property var (to ensure a property of the correct type). If there are still...

View Article


exposing QListto QML : registering QQmlListProperty in QML type system using...

QQmlPrivate et al are from QtQuick 2. Elsewhere, you #include <QDeclarativeWhatever> stuff, which is QtQuick 1. Your link / build options are wrong, I assume. QQmlListProperty works fine...

View Article

Package / DelegateModel with custom components

I’ve finally found a working solution, but I find the code quite ugly, so any suggestion to make it look better would be highly appreciated. Main.qml (custom views are represented here by rectangles of...

View Article

javascript trans data to qml have problems

./ main.qml Test.qml In Test.qml import QtQuick 2.0 import QtQuick.LocalStorage 2.0 as Sql QtObject{      id:weatherInfo     property var db: null...

View Article

Variant properties in Design mode

I intend to use a variant property like: property variant target property string changeStateTo and change target in Design mode by “SetExpression”. In order to change its state later on a button click:...

View Article


Strong Flickering in QGLWidget as viewport

I use Qt Gstreamer to push video streams into Qt. I build program that used 2 ‘videotestsrc’ gstreamer elements and render it into QDeclarativeView. I used for it 2 QGst::Ui::GraphicsVideoSurface’s,...

View Article

Qt Quick controls styling ToolBar, MenuBar and StatusBar

Hello, I just started to play around a bit with styling the qt quick controls and don’t see any ToolBarStyle, any ideas how to style the toolbar and the other components that lacks a built in style?...

View Article


Do stuff after behavior with animation is finished in qml

Hi, I have behavior on a property in qml and i want to do a stuff after the animation is done (is finished). I have used Behaviour with states.         Behavior on...

View Article

Button won't click when embedded in QWidget

hi, i’m trying to add a button defined in qml to an existing project, but when i click the button it does not respond (does not press down / provide any feedback that it has been clicked, and i don’t...

View Article


Referencing neighbouring QML types from QML file

With reference to the bug listed here: https://bugreports.qt-project.org/browse/QTBUG-26417 I downloaded the sample project resourceBug.zip and fixed it as instructed in the first comment (“I think the...

View Article

Newbie Question: Share variable from C++ to QML

I’ve been going crazy trying to figure out this simple thing. I have a string (I’ve converted it to a QString) I created with an algorithm in C++. How do I show this string in a label on my app? I’m...

View Article

Newbie Question: Display fileURLs from FileDialog - getting error from delegate

Hi I’m a QT Newbie, UI Newbie, liking QT Quick but having problem displaying data retrieved with FileDialog. I get an error message from my cfilesDelegate. console output: You chose:...

View Article
Browsing all 4972 articles
Browse latest View live