Calling a funciton.
The “get_db()” function is a member function of the implicit type defined by your top QML file. To invoke it you need to resolve it on a reference of the instance. There are a few ways you can get...
View ArticleQML2 application shows no content if it runs outside Qt Creator. QM1...
Hmm… problem solved when add folder with .qml file)
View ArticleQtQuick not installed
I have cross compiled Qt5.0.2 on a Mips based platform. I am trying to run QtQuick related examples: Basic examples which are given below I was able to run: declarative/imageelements/bordereimage...
View ArticleQtQuick not installed
I was able run QtQuick by setting : QML2_IMPORT_PATH instead of QML_IMPORT_PATH.
View ArticleCannot parse qml content(weird error)
Sometimes the parser can not parse the qml content correctly It always give me error messages at runtime like “can not bind function to double”, “no reference to xxx” example Item{ //........
View Articlepaint on rectangle using mouse area qml(Qt-5 ubuntu)
It is available and should work by simply press and dragging the mouse on the rectangle but I do not have 5.0.1 around to verify if there are issues with my example there. There could be a bug that has...
View ArticleQtQuick 2 application crashes when window too small for graphical effects...
Please file any crash bug at bugreports. Please include your minimal example, the application output, and if possible a stacktrace. Thanks! Chris.
View ArticleQAbstractVideoSurface vs QGraphicsVideoItem Performance as a viewfinder surface?
I was wondering what the difference between the two are, besides the obvious QCamera can use either as a viewfinder void setViewfinder(QGraphicsVideoItem * viewfinder) I would suspect that the...
View ArticleQAbstractVideoSurface vs QGraphicsVideoItem Performance as a viewfinder surface?
Okay turns out they are mutually exclusive from what I can tell from the class references because one doesn’t actually give us access to frames.(GraphicsVideoItem) i am guessing with the...
View ArticleCreate reuseable shaderEffect
This is a shaderEffect codes from an example // Shader Effect ShaderEffect { id: shaderEffect ...
View Articleuse loader to load the components come with Qt(ex: Rectangle)
A simple example iimport QtQuick 2.0 import QtGraphicalEffects 1.0 Rectangle { width: 640 height: 480 Loader{...
View ArticleQQuickView as transparent with parent window.
Peter: For QWindow there is not setColor function available. The question is that how can I get that child window transparent. belab: I’ve seen that already, it uses QWidget. And I would like to go...
View Articlemousearea: wait until animation is completed to call different state.
Yes, I think the best way is to use signals and slots to connect and check this. Kind Regards
View ArticleCreate reuseable shaderEffect
When I try the code you list above (Wobble.qml and WobbleMain.qml) it works just fine. Do you have them in the same directory? What is the error you get? There is no way to pass uniform arrays from QML...
View ArticleIssue with particle system and hanging window
There is a rather ugly issue with timers starving system events when you combine msvc 2012 with win7. In Qt 5.1 there is a new renderloop for Qt Quick for windows which, amongst other things, avoids...
View ArticlePassing item from GridView (using a ListView and delegate) to a Popover as...
I am using an ActionSelectionPopover, which is an Ubuntu component, it has a property called “caller”, which you set the item that calls it (a button, or other item that you click on for the popover to...
View ArticleHow to create line chart with canvas in Qml ?
http://doc-snapshot.qt-project.org/qt5-stable/qtquick/demos-stocqt.html
View Articlemousearea: wait until animation is completed to call different state.
You’re right. My bad, usually I make a small example to test it, and you guessed it, this time I didn’t… I made a small test and the onRunningChanged does work on on the Transition though. The example...
View Article