Repeating texture in QT3D - multiple usage of the same texture
HI ! I am a new user of Qt3D and i want to use single texture on single quad multiple times. Here is the code : Quad { scale: 100.0 position: Qt.vector3d(0,0,0) effect: Effect { color: “#FFFFFF”...
View ArticleHow I can add *.qml files to my plugin?
I don’t know. My apps do not use plugins. Maybe somebody more informed will join the discussion.
View ArticleThrowing QML exception from C++ in QtQuick 2 application
Thanks, I’ll consider using that once I get to that stage. Got a little further. If I enable QML Debugging when launching the app via Qt Creator, the exceptions magically start being caught in my...
View ArticleExchange char buffer between Qt c++ and QML
Okey, this sources confirm, that QByteArray can be used as property in QML, but if we look at sources of QByteArray there are no Q_INVOKABLE methods. Some blogs, forums and articles in Google says that...
View Article[SOLVED] Problem with properties when importing QtQuick.Controls 1.1
Thank you! That was quite easy. Renaming solved the problem.
View ArticleHow I can add *.qml files to my plugin?
Hi, Thanks for the reply. I’ve done all you are told but I still have a problem. You can get more information about the imports by running your application with QML_IMPORT_TRACE=1 I’ve added a new...
View ArticleHow to use plugins?
Hello! I have build qmlextensionplugins example (TimeExample) and run it with qmlscene and it works fine. There are qmlqtimeexampleplugin.dll qmlqtimeexampleplugin.lib qmldir files in folder...
View ArticleQtQuick function if else condition issue
Hello all.I have a problem with function if else condition.In my main.qml which import QtQuick 1.1 and use PageStackWindow component.On Component.onCompleted,it is suppose to call a function below...
View Article[SOLVED] Repeating texture in QT3D - multiple usage of the same texture
I found the way using shader program, here is the code Quad { scale: 100.0 position: Qt.vector3d(0,0,0)...
View ArticleExchange char buffer between Qt c++ and QML
main.cc main () { QGuiApplication app(argc, argv); QtQuick2ApplicationViewer viewer; myObj obj; //! --> ...
View ArticleQtQuick function if else condition issue
Have you tried checking the console output? It’s hard to say without more code, but it could be that one of them opens in one iteration, and the other opens in another. The for loop is quick so it...
View ArticleHow to use property change signal if used with setContextProperty()?
Hi everyone, I have problems writing my first qml/c++ app. Maybe someone can lend me a helping hand? My app should show some health states including network settings. Reading the “ipAddress” is no...
View ArticleHow to use property change signal if used with setContextProperty()?
What sierdzio said, or you may use a Connections element: Connections { target: eth0 onIpAddressChanged: text1.text = "ipAddr:" + addr }
View ArticleHow to use plugins?
Hi, Let me told you how I work with plugins in my apps. I’ve create a plugin and complete it to application folder. I’ll try to show you step-by-step: 1. Copy you plugin file to folder with you client...
View ArticleHow to use property change signal if used with setContextProperty()?
yes, if the netData class has a signal ipSubnetChanged with parameter named mask, that should work nicely.
View ArticleRetrieving a large list of objects from C++ for Qt3D Quick display
I am writing an application that will let users pick stuff from a scrollable list of objects(represented as icons in the list). Then drop them to a 3D Viewer. Then the user clicks ‘Play’ and these...
View Articleqml video play rtsp stream -- Unresolved error code
It looks like there is some kind of authentication issue. Are you sure that QML can access a rtsp properly?
View Article[SOLVED] Opening QML file from C++
Hello Qt community. I’m trying to open QML file from C++ with this code: QQmlEngine *engine = new QQmlEngine; QQmlComponent component(engine, QUrl::fromLocalFile("form.qml")); QObject...
View ArticleHow to use plugins?
Oh no, I’ve lain. I need to copy one more file: Clock.qml to folder with plugin. Because qmlrdir file contains such sting “Clock 1.0 Clock.qml” I want to remove this string and remove Clock.qml file...
View Article