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

[SOLVED] Problem with resizeEvent in QQuickView with SizeRootObjectToView on

Hello all, To show the problem, here is a minimalist program : main.cpp #include <QtGui/QGuiApplication> #include <QQuickView>   class View : public QQuickView {...

View Article



[SOLVED] Problem with resizeEvent in QQuickView with SizeRootObjectToView on

Ok i find a solution. If i put : QQuickItem* rootQml = rootObject();  rootQml->setProperty("width", ev->size().width());...

View Article

How to access items/properties from within Component{} element??? (Using...

You are loading (instantiating) the component somewhere: you need to access it through that object. For example, if you have used Loader to load your Component, you would need to access it like this:...

View Article

onEntered during mouse drag

Hello, Please teach me how to make an onEntered event happen while I’m dragging movableObject. I wrote the following code: import QtQuick 2.0   Rectangle {     id: window...

View Article

Lock children inside parent

Hi. I’m trying to make a drop down animation. I face the problem that the child rectangle is showed on top, and hence outside the parent rectangle. Is it not possible to have the children “inside” the...

View Article


[SOLVED]How to access items/properties from within Component{} element???...

Well, I managed to figure it out, and it’s actually extremely simple. I decided to look for Ubuntu’s QML and JS files, and I found them under /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components, I...

View Article

Transition animations with Qt Quick Controls

Hi, When creating Qt Quick controls with custom style, is there a way to define transition animations for the elements given as visuals for the style? For instance add easing on the x-axis movement of...

View Article

onEntered during mouse drag

Hi. I was looking for something else, when I stumbled across this. Maybe you can make a workaround using states and containsMouse (see e.g. last codeexample)....

View Article


Lock children inside parent

That was it!! Thanks a lot… I sure did hate that dummy rectangle hack I made!

View Article


The QML Script Console

Brought it back. Check the new links on the wiki page.

View Article

FileDialog crashes sometimes in Debug, seems to behave ok in Release

There is a bug report [bugreports.qt-project.org] referenced. The bug report is on windows with Qt 5.1.

View Article

The QML Script Console

Thanks for the swift response!

View Article

onEntered during mouse drag

Weird! Hoped the workaround might have worked. The mouse event seems to be suppressed (like when using propagateComposedEvents: or preventStealing:). Perhaps this is the issue? I’m afraid we need some...

View Article


Qt Quick controls styling

Anyone have any example of how to style a qt quick controls application similar to this: http://blog.qt.digia.com/wp-content/uploads/2013/06/Screen-Shot-2013-06-21-at-2.51.45-PM3.png...

View Article

Javascript library internationalization

Hello, I am trying to translate some strings from a .js library imported by my QMLs, the strings are found by lupdate but when I launch my app the qsTr function cannot find the translated string but it...

View Article


Qt Quick controls styling

Thanks it works good, however I’m having some difficulties styling the menubar. I’ve tried menuBar: MenuBar { style: Rectangle { } } with the following error: Unable to assign QQuickRectangle to...

View Article

How to use PathAttribute as Rotation angle

I write a code as following in PathView.qml. But ‘rotation’ as pathattribute is not applied. I tried to search a solution for this problem. But the solution can not be found. error :...

View Article


translations in QML files

Hi,, I stuck in same problem did you solve it,?

View Article

[solved] QDeclarativeItem wrong MouseArea

Well i’m stupid i guess… :) It was indeed my qml fault, the problem was another element with a higher z value, which was hidden (visible = true, but height=0) but still it seems to get the mouse events...

View Article

Who takes care of deleting QImage returned from QQuickImageProvider?

Thanks Chris for your answer. However, I do not use Pixmaps, but QImage, as I wrote. What’s the difference between PixMap and QImage anyway? Which uses less memory and is more efficient to render?

View Article
Browsing all 4972 articles
Browse latest View live


Latest Images