qt-quick

Exe file does not run without QtCreator

你。 提交于 2019-11-27 13:18:46
I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) Then I created simple Quick 2 application and compiled it. Application is located in the its folder, and apllication run from QtCreator. And I want to run this exe file without QtCreator. To do this, I copy the files from the C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin : Qt5Core.dll icuin49.dll libgcc_s_sjlj-1.dll libwinpthread-1.dll libGLESv2.dll libstdc++-6.dll qminimal.dll Qt5Gui.dll Qt5Network.dll Qt5Qml.dll Qt5Quick.dll Qt5V8.dll qwindows.dll And then I get error: Точка входа в процедуру _ZN6icu

How to create an animated, variable size accordion component in QtQuick / QML

你离开我真会死。 提交于 2019-11-27 04:54:49
问题 I want to create an animated accordion-like element that expands on click. Here's how it should work. When the user clicks one of the red rectangles, the green rectangle which is the actual content, should expand. I want this expansion to be animated. The height of the contents of the green rectangles could be different for each red header. I have been able to implement the click-to-expand behavior, but there's no animation. Here is the code I currently have. AccordionElement.qml import

QML - tracking global position of a component

荒凉一梦 提交于 2019-11-27 02:43:47
问题 I would like to track a global position of an object (or relative to one of it's ancestors) and bind it to some other item's position. I was thinking about using mapFromItem as follows: SomeObject { x: ancestor.mapFromItem(trackedObject, trackedObject.x, 0).x y: ancestor.mapFromItem(trackedObject, 0, trackedObject.y).y } The problem with this approach is that the mapFromItem is evaluated once and doesn't update as one of it's arguments gets updated. Moreover the mapping sometimes returns the