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

No Opacity on top of Opacity

I have a rectangle with an opacity of 0.4. I want a button on top of it that has no opacity at all (basically, an opacity that cancel the 0.4 below it). Is it possible ? I tried to use opacity of 1 for...

View Article


No Opacity on top of Opacity

Hi, The opacity of an item will always be passed down to its children. Your button must be put outside your half-opaque rectangle. Do something like this: Rectangle {     id:...

View Article


calling functions with typedef arguments in qml

what is the difference between this two functions when calling from qml: typedef QVariantMap NewType; Q_INVOKABLE QVariantMap testFunc(); Q_INVOKABLE NewType testFunc(); calling first function works...

View Article

Maps, Location API, custom plugin and QML

Hello, I scanned some paper maps and I would like to write an app to display them. Initially, I cut it in small tiles and I wanted to display them by using an GridView and an C++ listModel. But I...

View Article

Updating a background image

Hello, I’m working on a project in which a part of it is allowing the user to select a background image. my main.qml is: import QtQuick 2.0   Rectangle {     id: main...

View Article


Qt5.2.0 for the following problem occurred in the Huawei MT1-T00 type mobile...

Qt5.2.0 for the following problem occurred in the Huawei MT1-T00 type mobile phone when running Android Development: Text control static display character is normal, once the dynamic change character,...

View Article

Returning and Enum to QML using a Q_INVOKABLE method

there is some limits on using enums from qml. you can’t use another classes enums for Q_INVOKABLE functions. your enums only can be used for primary classes functions.

View Article

How can I set iconSize in ToolButton?

Hi Jens, Thank for your hint, I wrote MyToolButton.qml, it is inherited from Rectangle shown as below: import QtQuick 2.0 import QtQuick.Controls 1.0   Rectangle {     id:...

View Article


calling functions with typedef arguments in qml

Indeed, sorry I didn’t state it explicitly, you have more information about the procedure here [qt-project.org]

View Article


Passing parameters between windows

hello everybody I’m new to the forum! I would like to know if is it possible to pass parameters between windows with qml. this event of the main window: MouseArea {     anchors.fill:...

View Article

No Opacity on top of Opacity

Of course! How come I didn’t think about this ? Thanks . ps: That’s why I shouldn’t be allowed to post anything on Friday ! Bidochon

View Article

Maps, Location API, custom plugin and QML

Ok, I believe that I have to subclasse QQuickPaintedItem or to use the Scene Graphe API. http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html#custom-items-using-qpainter Hum. I go to use...

View Article

No Opacity on top of Opacity

You’re welcome! P.S. It’s possible ;) http://www.troll.me/2012/01/24/uncategorized/late-night-coding-zero-build-errors/

View Article


how to to Audio Recording from microphone to wav file in Qt

i am trying to record audio from microphone to wave file……. i did it properly this is my code what i did….. QAudioEncoderSettings settings; settings.setCodec(“audio/pcm”);...

View Article

how to to Audio Recording from microphone to wav file in Qt

Hi prabhatjha, Yes I saw your code in your previous post. However, I meant: Are you able to produce a .wav file using the Audio Recorder Example in Qt Creator? Also, what happens if you open the .wav...

View Article


Wacom and Qt Quick 2

Hi, I want to retrieve events from a Wacom Bamboo and use them for Zoom, Pan and Rotate behavior in a Qt Quick 2 application. Looking at photosurface example, it seems they are doing something like:...

View Article

Wacom and Qt Quick 2

I tried this with no success (no output): import QtQuick 2.2   Rectangle {   width: 360   height: 360   PinchArea   {     id: pinchArea...

View Article


Returning and Enum to QML using a Q_INVOKABLE method

Indeed this is the case there is a problem with this. I was hoping to use this to explicitly do apple-to-apple comparison: (1) make the *.qml file easily readable by replacing hard coded numbers, (2)...

View Article

QtQuick 2.0 Canvas Context2D clipping region doesn't resize beyond original...

This has been reported here: https://bugreports.qt-project.org/browse/QTBUG-36761

View Article

Returning and Enum to QML using a Q_INVOKABLE method

see https://codereview.qt-project.org/#change,73812 it seems that something changed at 5.3.0 try it.

View Article
Browsing all 4972 articles
Browse latest View live