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

Changing QML properties in C++

Hello I have already asked the following on Stackoverflow [stackoverflow.com] though, but I will try asking here now :) I am trying to change a property(canvasWidth) in a QML program with Qt/C++, only...

View Article


QtQuick.Controls: Change Focus on Enter Key

Actually it is quite easy. Just add a signal handler to the TextField: TextField {     id: txt     Keys.onEnterPressed: {        ...

View Article


Default easing.type in animations

Are you able to log the “easing.type” property to the console, to verify the behavior Regards, Steven

View Article

Changing QML properties in C++

No worries :) QML requires a bit different way of thinking than C++, which makes connecting it to C++ a bit tricky even for experienced users. If you need some hardcore example of QtQuick, feel free to...

View Article

Use Qt, qml with linux and directfb

I never used it, but the configure command has the option “-qpa”: “Sets the default QPA platform (e.g xcb, cocoa, windows).” As far as I know there’s also a command line option existing to select the...

View Article


Changing State of a Component from another Component

Hi awais. Welcome to devnet. Take a look to a signals and slots: signalsandslots [qt-project.org]

View Article

Resize and move windows fails

Hi. I have a window without a border (Qt::FramelessWindowHint). I have made a resize area (left side of the window) which works if it only moves or resizes the window but fails if I do both! The...

View Article

ObjectModel unknown component (M300)

i have reinstalled qt itself but the object model component is still missing. is there a way to add it manually?

View Article


TExt Rendering : Spaces appears betxeen characters according to the scale

Hello, I am developping an application which is resizable. and according to the scale, the text “add” some space characters between letters. One can see a space between ‘T’ and ‘S’ on the second...

View Article


ObjectModel unknown component (M300)

I had imported the qtquick 2.0 but i tried to use the VisualItemModel of the 4.8 getting started and it worked.

View Article

Kinetic Motion with Deceleration

Quick 2.1. Basically what I’d like to do is have a collection of Rectangles in a window that have kinetic motion properties. Each of these is independently draggable via a mouse click / touch on both X...

View Article

How to get Screen Coordinates of a QML Item?

I have a QQuickView that displays a scene. I want to know at which screen coordinate a certain QML item is located at. I know from inside the QML I can call myItem.mapToItem(null, myItem.x, myItem.y)...

View Article

QtQuick in Qt 5.1.1 Android version

Hi, I was trying to build a Qt Android application using Qt 5.1.1 Android version. I have successfully created Qt GUI application in Android. But can we create an Android application using QtQuick 2.1,...

View Article


Kinetic Motion with Deceleration

Probably best to use a physics library, if you’re dealing with a large collection of rectangles. Something like http://gitorious.org/qml-box2d for example. If you want to do it manually, you can write...

View Article

Kinetic Motion with Deceleration

My first try was to poke around at Flickables, but these don’t quick work that way. For the time being I’ve gone with the deceleration animations. It’s not ideal, but it’s simple and good enough so...

View Article


QtQuick in Qt 5.1.1 Android version

Hi p3c0, I have checked this. I think they are using only QtQuick 2.0 or previous version. I am using QtQuick 2.1, QtQuick.Controls 1.0, QtQuick.Window 2.0 and these classes comes under Qt 5.1.1. Ansif

View Article

QQuickView vs QDeclarativeView

Hi, I’m developing a modular desktop environment with a QML frontend and C++ backend, intended for use on Linux desktops. The desktop itself doesn’t provide much functionality, except the ability to...

View Article


QQuickView vs QDeclarativeView

You are mistaken. QDeclarativeView is the old compatibility class, which istantiates QtQuick 1.0/ 1.1 scenes. It will not work with QtQuick 2.0 and newer. Also the point about performance is mostly...

View Article

Implementing filedownloader to QML

Hi, for my software, i need to download a file to my local HDD. I found this example: Downloading file from URL [qt-project.org] and tried to use it. The result looks like this: main.cpp //main.cpp...

View Article

Set Direction for ParallelAnimation or PropertyAnimation

What is the equivalent of setDirection(Direction direction) where direction= forward or reverse in Qt Quick ?

View Article
Browsing all 4972 articles
Browse latest View live