ListView model in C++ not getting all elements
Thanks for your answer. I did am missing the beginInsertRows when I add an element to the listModel. I will try to add this when I’ll get a chance to have a hand on my code.
View ArticleMultithreading and QML
Hi, I started a qml-based Application. It does some expensive calculation inside a separate QThread and emits a signal to QML in order to update a ProgressBar. However, setting the new ProgressBar...
View ArticleMessageDialog hidden behind main window :-(
Hi, apologies if this is the 100th repetition of an old question but I’m new to Qt and my google skills didn’t help to turn up a working solution. What I’m trying to do is to display a MessageDialog...
View Article[solved]Button: checkable and checked not working
Thank you very much for the quick reply! The stylesheet does the trick :) Fortunately, in qt5.2, it works out of the box…
View ArticleMessageDialog hidden behind main window :-(
P.S. I’m running it on Debian Squeeze with Qt 5.2.0, QtCreator 3.0.0 and gcc version 4.7.2, x86 64bit architecture.
View ArticleAdd/remove tabs dynamically
Hi again! I am trying on something similar to this post [qt-project.org]. I also want to add/remove tabs in qml by pressing buttons and am somehow stuck. My code so far: main.qml: import QtQuick 2.2...
View ArticleAdd/remove tabs dynamically
Hi, addTab: “ReferenceError: myComponent is not defined” The second argument of addTab [qt-project.org] takes a component, so first you need to create a component [qt-project.org] for e.g ...
View ArticleQML read web .xml information
Hey guys, I am working on a VLC remote and I am able to send commands to the player via this function: function passCommands(command) { var http = new XMLHttpRequest() ...
View ArticleWhat is the QML "Connection" element on C++ ?
Connecting to QML Signals [doc-snapshot.qt-project.org]
View ArticleHow to add item to listview
Is it in QML or Qt ? Please confirm. We can tell you. Anyway if you can refer QTableView in Qt or ListView in QML documentation give you good information. You need to use model to fill the data. Set...
View ArticleAppearance difference
Possibly another beginner question: When I build the qml example ‘gallery’ on a windows machine, it looks like this: The look is the typical Windows look for me. However, if I create a own...
View ArticleMultithreading and QML
check whether you are using QThread correctly. Are you sure that signal is emitted inside another thread instead of main thread?
View Article[solved]Unable to assign fix height to TextArea in ColumnLayout
Unfortunately, I am not able to set the height of a TextArea in a ColumnLayout. The property height doesn’t seem to have any influence on the displayed height of the TextArea. Code snipped: import...
View Article[solved]Unable to assign fix height to TextArea in ColumnLayout
Very nice… Layout.preferredHeight is exactly what I was looking for! Thank you very much!
View ArticleQtQuick 2.0 Canvas Context2D clipping region doesn't resize beyond original...
I ran into a problem with the clipping region in a Canvas not resizing properly. In the included simple example, if you size the app window up beyond twice its original width and/or height, you can see...
View ArticleAppearance difference
You also need to change line 12 in main.cpp ( QGuiApplication to QApplication ). Unless you are developing for a constrained mobile platform, I don’t think you need to be concerned about the resource...
View ArticleQML standard icons
I’m looking to get some of the OS’s standard images within QML, and want to know if there is a way to do this. The only way I can see how to do it is to derive off of QQuickImageProvider and provided...
View ArticleChild Windows are always under the main window
Dheerendra, I’m trying to implement something similar to Chrome tabs. I mean user should be able to move tab into another new/existing window. The approach with QtQuick2ApplicationViewer is ok for me,...
View Article