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 ArticleQtQuick.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 ArticleDefault easing.type in animations
Are you able to log the “easing.type” property to the console, to verify the behavior Regards, Steven
View ArticleChanging 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 ArticleUse 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 ArticleChanging 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 ArticleResize 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 ArticleObjectModel 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 ArticleTExt 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 ArticleObjectModel 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 ArticleKinetic 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 ArticleHow 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 ArticleQtQuick 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 ArticleKinetic 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 ArticleKinetic 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 ArticleQtQuick 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 ArticleQQuickView 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 ArticleQQuickView 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 ArticleImplementing 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 ArticleSet Direction for ParallelAnimation or PropertyAnimation
What is the equivalent of setDirection(Direction direction) where direction= forward or reverse in Qt Quick ?
View Article