How do I pass QML function from QML to C++ and than back to QML ?
Hi, You can have a look at QQmlExpression documentation page [qt-project.org]. There is a little code snippet which loads a qml file and evaluates an expression in the context of that qml file. You can...
View ArticleHow do I perform simple drag and drop?
I’m trying to drag and drop one square to another, using this code: //where I want to drag from Connector { id: connector anchors.right: parent.right...
View ArticleHow do I perform simple drag and drop?
compare your code with Qt example. QTPATH\examples\quick\draganddrop
View Article[SOLVED] QML virtual keyboard + TextEdit
Yes, I have done so. Qt::Key keycode = _getKeyCodeFromName(keyName); This function, given the keyName (for example ‘a’, ‘z’) returns the corresponding Qt::Key
View ArticleQML, calculating keyboard height
Hi, at the beginning I have to say – I know about android:windowSoftInputMode attribute inside activity tag, and how does it work. But this is not what i need. When keyboard appears (some text input...
View ArticleHow to fix screen orientation to landscape in Quick 2 ?
Hi all, I have written a simple QML game and it runs on my Nexus 7 (API 14). The game is designed to play in landscape mode and I want to fix it. That means if I rotate my Nexus the screen should also...
View ArticleHow to fix screen orientation to landscape in Quick 2 ?
I am not sure how to change it in QML but you can do it in AndroidManifest Click [stackoverflow.com] just change “portrait” to “sensorLandscape” or “landscape”
View ArticleUse QML VideoOutput item with C++ QMediaPlayer?
You have to extend QMediaPlayer. Look at this from qdeclarativevideooutput.cpp source code: /* \qmlproperty variant QtMultimedia::VideoOutput::source This property holds the source item...
View ArticleQt Quick Unusable due to crash in QSGOpaqueTextureMaterial::compare on Win7
I am seeing a crash with QtQuick that is making my application unusable on windows. This is very frustrating. The app runs fine on linux, but the target machine is a win7 embedded platform. Here is the...
View ArticleQt Quick Unusable due to crash in QSGOpaqueTextureMaterial::compare on Win7
Myabe you can disable caching? Or – a dirty trick, I admit – copy the GIF with a different name and use that. Or you can wait for Alan to fix it.
View ArticleHow do I send Key Event from C++ to QML TextInput Item in Qt 5.2 ?
How do I send Key Event from C++ to QML TextInput Item in Qt 5.2 ?
View ArticleExample of TextEdit using a QSyntaxHighlighter
Sorry, indeed I realize, you are talking QML TextEdit. I’ll check your example, thanks! Oliver
View ArticleHow do I send Key Event from C++ to QML TextInput Item in Qt 5.2 ?
If not we need to look at the issue. There may be other focused elements in the UI. What is the issue you are facing when you do this ?
View Article[SOLVED] How to fix screen orientation to landscape in Quick 2 ?
just add [solved] to the topic and no problem
View ArticleHow do I send Key Event from C++ to QML TextInput Item in Qt 5.2 ?
if you have pointer to TextInput use the post event as I suggested QApplication::postEvent(pointerToTextInput,new QKeyEvent(…..)) If you give the sample code it helps us to look/analyze if you have any...
View ArticleOpenGL/Qt Quick Scene Graph and mouse interaction
Hey hey I’m trying to implement a simple widget that will use OpenGL/Scene Graph for drawing (as described here Scene Graph – Custom Geometry [doc-snapshot.qt-project.org]) But I’m not sure that I...
View ArticleOpenGL/Qt Quick Scene Graph and mouse interaction
There are different ways to achieve this. To handle mouse interaction on the lowest level possible you will have to subclass QQuickItem and reimplement the relevant functions there. This QQuickItem can...
View ArticleRefresh blur effect
Hello, I wanto to create a effect for a backgroundImage. The images can change so it is necessary that the blur effect is reapplied. However the QML blur effects seems to be refreshed only on creation...
View Article