Can't get menu bar in Qt Quick Components, using C++ and QQmlApplicationEngine
I should also note that the window itself does show, and any components (such as a text area) I put in it will show as well, just not the menu bar. In case it makes a difference I’m on Ubuntu 14.04
View ArticleUsage of setContextProperty
qml editor? are you using some kind of qml editor? because that code is entirely valid, all things otherwise.
View Articleqml image sub region (spritesheet) but with centered image
Is there no qml element that can both let me disable stretching, and let me sample from a subregion of an image? Using animatedsprite, but without animation loads it fine how I want it. But there is no...
View ArticleHow to rotate and change location of a png in GraphicsView
hi i have to create hand motion animation but not advanced just rotate and change location by small distance in loop is enough but i dont have any idea please help my code is here: QPixmap...
View ArticleHow to add integers into array
Hello i am new at QT so some errors i have i need to record three audio channel data streaming in. So i have created three arrays and checked how is it working but it seems array is not working...
View ArticleWhat do I have to write on the QML Video source property in order to show rtsp ?
I want to show streaming media (rtsp) through QML Video element. I tried to write: source: “rtsp://10.1.30.244:554/rtpvideo1.sdp” but the error string is: “Resource not found”. What do I have to write...
View ArticleHow to access C++ type from JavaScript code?
Did you import the type in main.qml? Eg: import org.world.hello 1.0 How is obj defined? Is it null when the error occurs?
View ArticleHow to add integers into array
Hi, Why static arrays ? Why are you using a pointer to a QStringList ? This class is implicitly shared Why are you assigning the string list each time in the for loop ? Once at the end is enough. Are...
View ArticleQtQuickItem with custom opengl draw - after first frame, item dissapear
Basically i have this simple window with one GridLayout (for simplicity i added just one column and two rows). In first row, i have GLViewer, which is QtQuickItem, that is drawing custom gl in...
View ArticleDynamically adding items
I want to dynamically add items to a custom component when it’s created. According to http://qt-project.org/doc/qt-4.8/qdeclarativedynamicobjects.html , I can do this by creating an external JavaScript...
View ArticleQtQuickItem with custom opengl draw - after first frame, item dissapear
pleas Qt guys, does anyone know where is problem?
View ArticleBug when using Loader in a directly instantiated QQuickView
Hey guys, There’s an issue on x86/win where when you create a QGuiApplication & subsequent QQuickView your application hangs when trying to call setSource any which way you try it (thru the...
View ArticleDynamically adding items
Oops, you’re right! The status is 3 (Component.Error), and the errorString is: “Cannot assign object to property”. Hmm, apparently the following causes the problem: property...
View ArticleComboBox not draw on core profile?
ComboBox not draw on OpenGL core profile? If i use OpenGL 4.3 Core profile application crash. Qt 5.3
View ArticleBest practice associating event handlers with state changes
Hi, Given the bug here: https://bugreports.qt-project.org/browse/QTBUG-27300 – what would be the “best practice” associating specific handlers with state? If you were implementing a vi-like keyboard...
View ArticleIs there a way to see QML files in "live" ?
if you mean live preview, it’s been answered elsewhere. see this thread [qt-project.org] But I’ve seen some QtDD QML videos, they just re-run (Ctrl+R in Qt Creator) the program. Because you don’t...
View ArticleBug when using Loader in a directly instantiated QQuickView
File a bug report on http://bugreports.qt-project.org/
View ArticlePathView with gesture [QML]
Hi, Can you send some code please else won’t be easy to help you. Thanks Sincerely
View ArticleCreate and Control a QML Component from C++
Hello, I am a beginner in qt-qml, I am trying to implement a client-sever application an hmi (a minimal one), the client receives data from server as messages and the client has to display the data on...
View ArticleCreate and Control a QML Component from C++
This is how I did it, please go through it and suggest any changes or different approaches for doing the same. QtQuick2ApplicationViewer *viewer = QtQuick2ApplicationViewer::instance(); QQmlContext...
View Article