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

problem interacting with qml object from c++, qt5

// Using QQuickView QQuickView view; view.setSource(QUrl::fromLocalFile("MyItem.qml")); view.show(); QObject *object = view.rootObject(); i’m copypasting this code from (doc...

View Article


problem interacting with qml object from c++, qt5

QQuickItem *object = view.rootObject(); Should work. Or casting. Or some other trick. QQuickItem is a kid of QObject anyway, so all ::findChildren<>() and ::metaObject() magic still works.

View Article


Applying colorfilter in QML, of QT

You can do this generically using a ShaderEffect item: http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-shadereffect.html And these are the ready made effects that mostly seem to cover your use...

View Article

[Solved] Exe file does not run without QtCreator (Qt 5.0.1 and QtQuick 2.0)

I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) Then I created simple Quick 2 application and compiled it. Application is located in the its folder, and apllication run from QtCreator. And...

View Article

Size of custom qml types

Hi all, I’m trying to extend qml by a custom type defined in C++. My type – called SvgItem – is supposed to be able to render a single element of a svg file (by elementId, like QGraphicsSvgItem). I got...

View Article


How to show Context menu in Desktop QML

in mouse area base on which mouse button clicks (left or right click)you can emit a signal or change a property, after that you can bind this property to show your favorite context menu. That’s so easy...

View Article

[Solved] Exe file does not run without QtCreator (Qt 5.0.1 and QtQuick 2.0)

I copy qwindows.dll and qminimal.dll in folder with program. Yes, that is why I keep telling you it is wrong :) Copy it to <your app>/plugins/platforms. The error might come from ICU if...

View Article

Static const member value not available (at runtime) - code works fine under...

Developed under Qt 4.8 last year using Visual Studio 2010 and have had the code working for months. Moved to Qt5 this year and also started using Qt Creator (QML/QtQuick 2). The code contains a global...

View Article


Undefined reference to `_imp___ZN7CxImageC1Ej'

I have a project here [rapidshare.com] You first need to compile and build “imagelib”, then “CxImage” (which is inside of PCXFilter), and then PCXFilter (since it requires the libraries from the other...

View Article


Qt Quick in Windows XP

I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) Then I created simple Quick 2 application and compiled it. Program runs on clean Windows 7, Windows 8. But program does not run on Windows...

View Article

QLabel to stretch with text

Hey guys, I have whats probably a stupid question. I’ve followed a tutorial to implement my own label type successfully, but when I tried it I could see only one character, because the QLabel does not...

View Article

[SOLVED]How to write onMinimunScaleCange event handler on PinchArea

I had misspelled “console”. But it does not matter. Following error when you perform a QML Viewer than that. D:\Qt\4.8.4\bin\qmlviewer.exe D:/DEV/Demo/PinchAreaTest/PinchAreaTest.qml を起動中...

View Article

QLabel to stretch with text

I would, but as I said, I was just doing this as an exercise to learn about extending QML via C++ :P

View Article


Undefined reference to `_imp___ZN7CxImageC1Ej'

Ideas; maybe link statically to the stuff that you get linking errors to. Maybe you need to check symbol exporting to make use of them in your app. (google for “symbol visibility in C++”)

View Article

Qt Quick in Windows XP

That is MS Visual C++ library, yet you are using MinGW Qt. Either your setup is wrong, or somehow MinGW requires that lib. You could copy the dll from your Win7 machine, but I don’t know if that would...

View Article


Shader Effect meets Marquee

Hi, I’m trying to combine shader and marquee effect and having trouble with it. I started off with a simple project: Rectangle {     id: master     width: 800...

View Article

Shader Effect meets Marquee [SOLVED]

Ok I managed to solve the issue: - define the Item element with the Text element inside – define the ShaderEffectSource pointing to the Item and set hideSource to true so that the actual Item doesn’t...

View Article


QtQuick-Plugin - get QmlViewer object

Hi guys, i wrote a QtQuick-Plugin in C++. One of my Classes should be possible to manipulate the QmlViewer. So… when an Object of my Class is created by the QmlViewer i want to get a pointer to the...

View Article

how to force listview to draw all items?

Hi *, I have a data model in c++ and a listview for showing the stuff. The delegate is only a Loader item which load the items from diferent files based on the path inside the model. It works very...

View Article

Dynamically resizing of QML scenes

you have to set scale for all of objects or set width and height of objects as percent of their parents, i haven’t any better idea!

View Article
Browsing all 4972 articles
Browse latest View live