Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-24 Thread jack ma
It seems that StackView instantiate QML components when push and destroy it when pop, so we cann't get information from previous page. what we should use is StackLayout ? 2018-02-24 11:06 GMT+08:00 Jason H : > I would certainly hope so as I've written apps to dynamically manage the > stackview a

Re: [Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-07 Thread jack ma
ch time > you want to change comparator. > > And, last but not least: you probably want to know *how* to write > comparator for your > particular sorting order. You can do this with QCollator, see [2]. > > [1] http://en.cppreference.com/w/cpp/container/map/map > [2] https://forum

[Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-07 Thread jack ma
Hi, there is a QMap type, then insert values with: type.insert("U1",nullptr), type.insert("U2",nullptr), type.insert("U9",nullptr), type.insert("U10",nullptr), I want get the values follow the order of U1, U2 ... U10, but the default order is U1, U10 ,……U9 I know this is a common string so

[Interest] why XMLHttpRequest Block QtQuick UI

2017-08-04 Thread jack ma
Hi, I use XMLHttpRequest in Component.onCompleted: { ……do XMLHttpRequest } but the main ui was blocked until the request ends. How to use XMLHttpRequest asynchronous without blocking the UI? Thanks jack ___ Interest mailing list Interest@q

[Interest] How to really delete a QGraphicsItem from QGraphicsScene

2017-02-24 Thread jack ma
Hi, is it correct to use “delete” directly delete the item ? or I should first call removeItem() and then call "delete item" to remove it? How are these two ways affect the bsp tree? Thanks, jack ___ Interest mailing list Interest@qt-project.org http

[Interest] How to disable ubuntu global menu bar for Qt application

2017-02-03 Thread jack ma
I know ubuntu can switch off/on it in system setting ,but I want only my Qt application's menu bar displayed in mainwidow not unity’s menu bar is it possible? Thanks jack ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailm

Re: [Interest] How to change nested JSON object directly

2017-01-11 Thread jack ma
06:09:23 PST jack ma wrote: > > *jsonObject["key1"].toObject().value("key2") = "somteting2"* > > > > > > but now , *toObect()* just return a copy of key1, so you can't change > > key2 directly > > QJsonObject jso2 = jsonObject

[Interest] How to change nested JSON object directly

2017-01-11 Thread jack ma
{ "key1":{ "key2":"someting" } } if root is jsonObject, what I want is like this : *jsonObject["key1"].toObject().value("key2") = "somteting2"* but now , *toObect()* just return a copy of key1, so you can't change key2 directly __

[Interest] Is it possible to use QtQuick Item instead of Graphics View Framework ?

2016-12-08 Thread jack ma
Hi, Is there any way to draw *interactive* complex shapes(lines,arc,..) with QtQuick item like QGraphicsItem? seems that Canvas item can draw shapes but can't interact? Thanks, jack ___ Interest mailing list Interest@qt-project.org http://lists.qt-projec

[Interest] psplash don't work with Boot2Qt

2016-10-17 Thread jack ma
Does anybody use Boot2Qt? the boot2qt default use systemd and psplash, it seems that no systemd service for psplash and no boot image display. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest