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

Displaying the same QML Item multiple times

yeah I think you have to “sync them together”, but that should be fairly easy with QML I think? You could use property bindings but without any specifics how your app works it’s hard to say.

View Article



Handle touch event and flicks simultaneously in Qml

I’m trying to write UI on Qml with two capabilities: 1) handle touch event (to choose some object) 2) handle flick events (to view some large object) It’s my code: Rectangle {    ...

View Article

Handle touch event and flicks simultaneously in Qml

Yes, make your MouseArea smaller ;) After all, your selectable items will not occupy the whole content area? Also, you might consider using this to pass the even to the Flickable: MouseArea {...

View Article

Changing width and height

Hello, i just started learning QML and i have a really simple problem: i want to change the size of my main window with my cpp code and i just does not work :( Here is a little example: import QtQuick...

View Article

Changing width and height

Hi, you can try changing the size of the QtQuick2ApplicationViewer itself instead of the root object: viewer.setWidth(100); viewer.setHeight(100); that might also change the size of the root object I...

View Article


TableView: access model properties from delegate

That makes a lot of sense, I’ll give it a try and let you know. :)

View Article

QML Multimedia Key event

Hi everyone, In my QML items, I have been using Keys.onPressed to detect some of the keys pressed by the user and act accordingly. Everything works fine but I can’t catch any of the multimedia keys (...

View Article

Running tests for key events in the background

Hi all, we are currently writing unit tests using QML TestCase and have found that simulated key events (using keyPress etc.) require the test window to be the active window. This problem actually...

View Article


How to structure qml app with several canvas/screens

Hi everyone, i am still quite a beginner with qt and therefore need some advice about how to structure a program. Goal: Slideshow for images and videos using QML Functions: display images with nice...

View Article


Registering an ENUM in QML

Dear all, In the Qt documentation it is explained that enumerated types defined in a QObject derived class could be used in QML. However there is no sample of how to do the registration call per se....

View Article

Registering an ENUM in QML

Hi, to register an enum you can simply use the Q_ENUMS [qt-project.org] macro, e.g. class Test : public QObject {     Q_OBJECT     Q_ENUMS(TestEnum)  ...

View Article

Compute window size for a custom dialog based application

Hi I am writting in QML a dialog based application for multiple OSs (Windows, OSX, Linux). The problem I am facing is how to set the window size in order to have a pleasing aspect on different screens:...

View Article

Downloading qml files on Android and dynamically use them with QtQuick

I’d like to build a flexible app, which uses a Loader to access qml files, which are dynamically placed into the filesystem. On a desktop pc, this is not a problem, since all qml files which are placed...

View Article


Building a dynamic namespace for qml files (Qt.createQmlObject)

So I’d like to dynamically load a qml from a string with “Qt.createQmlObject”. This works fine, if the loaded qml is independent, but what can I do, if the loaded qml depends on other qml files, which...

View Article

Downloading qml files on Android and dynamically use them with QtQuick

I think the easiest way is to let the app itself save the files in the app directory!?Usually apps are running in a sandbox and you don’t have access to the app directory from outside of the app, but...

View Article


How to structure qml app with several canvas/screens

You can dynamically load and unload content. I use a mouse area that triggers a javascript function. That function uses “Qt.createComponent” to load a qml file.

View Article

[SOLVED] About showing QWindow

hi guys i am working on a project that use PyQt5 and QML. i have this two files and they work: PyQt file: import sys from PyQt5.QtCore import QUrl from PyQt5.QtWidgets import QApplication from...

View Article


Disable font antialiasing in QtQuick Text element

I don’t think there are any plans in the pipeline to support this. You could of course raise it as a suggestion task. https://bugreports.qt-project.org/browse/QTBUG-28993 seems related. Perhaps you...

View Article

Cannot playback any video on embedded linux

I cross compiled Qt 5.2.1 for TI AM335x board using the toolchain provided by TI together with their SDK 6.00.00. Unluckily I am not able to reproduce any video in QML… The debug console tells:...

View Article

[SOLVED] About showing QWindow

oh , yes. i don’t know that line but as you said i ignore it and this code works in PyQt: import sys from PyQt5.QtCore import QUrl from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import...

View Article
Browsing all 4972 articles
Browse latest View live




Latest Images