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

visible area of an children Rectangle

Hello and welcome to devnet, the only thing i could think of is to create a Border of Rectangles around the red rectangle which colors are the background-color and overlay the blue rectangle by using...

View Article


Drap and Drop pixmap support?

My purpose is to set the QDrag’s pixmap so that when i am doing an external drag i see a snapshot of the item i am moving. I would also like to know can i use drag and Item first as Internal drag and...

View Article


JSON string to QML, "null" values converted to QVariant(void*) with...

hello, I don’t know if this is bug but i’m trying to convert a JSON string to a QJSValue to use it directly in QML. it works great so far but I have some weird results with “null” values in the JSON...

View Article

set scale property based on different screen resolutions

You’re welcome, please add [Solved] to the topic. Thank you.

View Article

How to use QML to test which OS/platform the app is running on?

I want to specify different parameters on different platforms.

View Article


Item visibylity in a ListView

Thanks it works..I knew about that property but never thought of using it..

View Article

qmlscene leaking memory on simple qml file

Seems like this is QTBUG-28712 Please vote for it as it seems important

View Article

Overwrite internal properties

Found the property component i was searching for in the MenuStyle.qml which is used by Menu which is used by ComboBox. I am using a ComboBox and i need to change or overwrite this property: property...

View Article


QtQuick2 : OpenGL Stencil issues

Hi, I have been trying to use integrate Qt 5.1.2 with OSG3.2.0/OSGEarth2.5 by doing OSG rendering on beforeRendering() signal of QQuickItem. This works fine, however, if i use use stencil buffer in my...

View Article


Key Navigation in ListView Component -> Set Focus to ListView Element

Hello, following ListView with some custom components:         Rectangle {             height: 107  ...

View Article

Connect QObject properties to a QQmlComponent

Hello, I’m trying to create an application similar to Scratch (placing graphical blocks instead of writing text) for trying to get children interested in programming. I’d really like to do it in...

View Article

Date manipulations

I didn’t find how to count the number of days between two Date. I also need to be able to add a number of days to a Date and print the resulting Date.

View Article

Connect QObject properties to a QQmlComponent

How do you set the model for the delegate(s)? if you set your custom delegate to any kind of QML model view it should work out of the box with the attached property “modelData” to access your...

View Article


Date manipulations

Ok it seems there is no official method to do it so I use : function    dateDiffInDays(date1, date2) {     var timeDiff = Math.abs(date2.getTime() -...

View Article

How to getting the application dir in QML file

nealthwin Please start new thread with you question. I suggest you to use the latest (5.2.1) version of Qt. You can download it here [qt-project.org]

View Article


Component runtime optimization

Hello, does using Loaders decrease the runtime needed to create a custom Component? MyComponent.qml Without Loader: import QtQuick 2.2   MouseArea {     width: 72  ...

View Article

QtQuick2 : OpenGL Stencil issues

Try calling resetOpenGLState() at the end of drawBackground. Right now you leave the context in a dubious state (for example stencil testing is enabled). The function is new in 5.2. In 5.1 just try...

View Article


SVG Rendering and Source Size:

Hi I have troubles rendering SVG file correctely when scale is set in parent items. I saw maybe I should use sourcesize property but coud not figure how to use it. Here a sample of code that illustrat...

View Article

How to get Screen Resolution in QML for Ubuntu Touch?

Hey guys, have some days that i was started in Ubuntu Touch App Dev, and i want to try to build new GUI for my app’s. In this new GUI, i wanna make dynamic components that detect the resolution of the...

View Article

How do I loop video??

Hi All, Could somebody please explain how I can modify the code below so that the video loops infinitely. Many Thanks     Rectangle {         id:...

View Article
Browsing all 4972 articles
Browse latest View live