[Solved] Quick Menu is not modal?
I found a workaround: do my post-context-menu work when focus is returned to another window. That is, connect a handler to QApp.focusWindowChanged. To be clear about the problem: my model layer (in C++...
View ArticleQML: How to delete/access an object created with Qt.createQmlObject?
it is not created as id, but as objectName. I am saying that the objectName should be the id of button read from XML as follows: <Group caption="Controls"> ...
View ArticleHow to force Redraw
Hi all, When I click a button on my QML scene, i need to hide a specific item, then call a C++ method to take a screenshot, and then show back my Item. onClicked: { ...
View Article[Solved] Display text and image in Tableview
Solution is to use a QMap containing the different values for text and icon. in the datatype: const QMap<QString,QVariant>& toMap() { QMap result; ...
View ArticleKeyboard events inside a QQuickPaintedItem/QQuickItem
I can receive key events, when I set the focus:true property in the QML script and overload the focusInEvent() function, where I set forceAtiveFocus(). .. void TreeViewControl::focusInEvent(QFocusEvent...
View ArticleHow to force Redraw
Good idea, … but it doesn’t work. I add a trace on the onVisibleChanged event. It is fired immediately after I modify the visible property and before the repaint job. an other idea ? :-)
View ArticlePaint order / Clipping?
Hi folks, hope someone can help me with the following problem: setup: one big rectangle as a background two rectangles “left” and “right” side by side on top of the first rectangle some smaller...
View ArticlePaint order / Clipping?
The drag and drop example code [qt-project.org] should do what you want. Look for how they uses states and the ParentChange object to parent the drag item to the root while it’s being dragged. If this...
View Articleaccessing parameter (with non-basic type) of C++ signal
Have you registered the C++ QGeoSatelliteInfo as a known type to QML? If you have and QList<QGeoSatelliteInfo> doesn’t work you could try making it a QVariantList on the C++ side. The...
View ArticleNested QML doesn't trigger a build
I wonder if I’m the only one having this problem. If I write some code in main.qml, then I refactor some of the code out into sub.qml; when I making changes to sub.qml and do a build the changes aren’t...
View ArticleArray of struct to ListView model
Hi guys,I have an array of structes,somethnig like this struct unit{ string from, string to, double...
View ArticleDrag-able splash screen?
I’m trying to make a drag-able splash screen in QML. I would be open to using a C++ method as well. Window { visible: true width: 792 ...
View ArticleArray of struct to ListView model
As far as I know yes. The abstract list model is easiest and easy in general in my opinion. You only need to reimplement four or so virtual functions, which is quite straightforward and internally you...
View ArticlePinchArea inside a Flickable and returnToBounds()
Apologies if this has already been brought up, but my searches didn’t return anything. I’ve got an image viewer app in QML that has a PinchArea inside of a flickable (I think there’s a PinchFlickable...
View ArticleNested QML doesn't trigger a build
Specifically if I have a file main.qml and it uses MyWidget{} and the qml for MyWidget is in MyWidget.qml. Any time I make changes to just MyWidget.qml the changes do not show up if I build and run. I...
View ArticleDleploying Qt5 QML video on Windows 7
I have added a QML Video player to my project. This was necessary to make video background behind the rendered text as image. I have got it working with QtCreator. But when I tried to deploy it on...
View ArticleQQuickFrameBufferObject::Renderer::render() called when QQuickItem visible is...
No, is at least it didn’t when i wrote this. I haven’t tried on 5.3, though.
View Article[SOLVED] ScrollView scrollbars visibility issue
Hello everyone, I am currently playing with ScrollViews containing a ListView instance. In my understanding, scrollbars should be visible everytime the width/height of ListView contentItem exceed the...
View ArticleApplying 'allowsVibrancy' from AppKit under OS X 10.10 (Yosemite) on desired...
With the release of OS X 10.10 Yosemite, Apple updated the NSAppearance object to allow designers and developers the option of enabling ‘allowsVibrancy’ on any given portion of an application under...
View Article[SOLVED] ScrollView scrollbars visibility issue
Thanks for your reply! Setting contentWidth fixed effectively my problem. Nevertheless, I thought naively that a ListView would adapt its contentWidth/contentHeight accordingly with the space taken by...
View Article