Hi, We are using QT5.1.1 running on imx6q with EGLFS platform. We have following QML that implements Seek-Bar (in a music player), this has a handle that moves along with it fills an image (with yellow color). The QML works fine on the normal display. We have a dsiplay with landscape orientation, and our UI has to be in portrait mode (768x1024), so we rotate the whole UI window (top level rectangle) using QML transform:rotation by 90 deg. The seek-bar is one part of the whole window. When the rotation is enabled, while loading the QML it crashes, if we disable slider filling ( slider_fill.width=handle.x, highlighted in red below), then it doesn't crash. This crash doesn't happen on the PC where X11 window system is used. Can you suggest how can this issue be fixed? Looks like there is some issue using position-x. import QtQuick 2.0 Rectangle { id: slider; width: 383 height: 22 color: "black" property real value: 1 property int seconds: 1 property real maximum: 351 property real minimum: 1 property real relative_handle_position: 0 function update_value() { relative_handle_position = handle.x+16 value = (relative_handle_position * 100)/351 console.log("Value : %d\n" ,relative_handle_position) } Image { x: 16 id:slider_empty source: "../images/setting_3_display/display_bar_background.png" height: 22 width: 351 anchors.verticalCenter: slider.verticalCenter } Image { smooth: true id: slider_fill width: 0 height: 22 x: 16 anchors.verticalCenter: slider_empty.verticalCenter source: "../images/setting_3_display/setting_3_display_bar_step.png" } Image { id: handle x: 0; y: 0 enabled: true fillMode: Image.PreserveAspectCrop; anchors.verticalCenter: slider.verticalCenter source: "../images/setting_3_display/display_bar_cursor.png" MouseArea { id: mouse x: 0; y: 0 anchors.fill: parent; drag.target: parent; drag.axis: Drag.XAxis; drag.minimumX: 0; drag.maximumX: 351 onPositionChanged: { slider_fill.width=handle.x update_value() } } } } -- Regards, Venkat |
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest