Re: [Interest] QStandardPaths on iOS (Interest Digest, Vol 38, Issue 69)

2014-11-20 Thread Harri Pasanen
On 20/11/2014 18:27, Thiago Macieira wrote: On Thursday 20 November 2014 11:46:41 Harri Pasanen wrote: I proceeded to test with 5.4 beta, and QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); is a non empty path, but not writable on iOS, but QStandardPaths::writableLocation(

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Ben Lau
On 21 November 2014 06:40, Nuno Santos wrote: > I have subclassed QAbstractListModel and i’m already able to have the > model listed in a list view. > > What I can’t find is how I programmatically add items to the model from > the QML side and which methods I need to reimplement in my model class

Re: [Interest] qmake ios build

2014-11-20 Thread Yang Fan
For setting launch images or app icons, this snippet just works for me: ios { AppIcons.files=$$system("find $$PWD/appicon/ios/ -name '*.png'") AppIcons.path=./ LaunchImages.files=$$system("find $$PWD/launchimage/ios/ -name '*.png'") LaunchImages.path=./ QMAKE_BUNDLE_DATA += App

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Ian Monroe
On Thu, Nov 20, 2014 at 2:40 PM, Nuno Santos wrote: > I have subclassed QAbstractListModel and i’m already able to have the > model listed in a list view. > > What I can’t find is how I programmatically add items to the model from > the QML side and which methods I need to reimplement in my model

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Nuno Santos
I have subclassed QAbstractListModel and i’m already able to have the model listed in a list view. What I can’t find is how I programmatically add items to the model from the QML side and which methods I need to reimplement in my model class. The qml-object-model you have sent me is probably

Re: [Interest] QStandardPaths on mobile

2014-11-20 Thread Thiago Macieira
On Thursday 20 November 2014 12:40:52 Harri Pasanen wrote: > The documentation at http://qt-project.org/doc/qt-5/qstandardpaths.html > has nothing for iOS or Windows Phone. > > For iOS some support seems to be there though, how about Windows Phone? > > Also, I would think that external memory car

Re: [Interest] QStandardPaths on iOS

2014-11-20 Thread Thiago Macieira
On Thursday 20 November 2014 11:46:41 Harri Pasanen wrote: > I proceeded to test with 5.4 beta, and > > QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); > > is a non empty path, but not writable on iOS, but > > QStandardPaths::writableLocation(QStandardPaths::DataLocation); >

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Ben Lau
I have tried QQmlListProperty , QObjectListModel (code from git) . Finally , I found that implement a QAbstractListModel to store QList is the most simple , flexible and reusable solution. You don't need to care about QObject ownership and works just like a ListModel , except you can't pass it to w

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Nuno Santos
I will take a look! Thanks!! :) > On 20 Nov 2014, at 16:45, Jérôme Godbout wrote: > > Take a look at QVariant doc: http://qt-project.org/doc/qt-5/qvariant.html > > you will find the typedef: > http://qt-project.org/doc/qt-5/qvariant.html#QVariant

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
Take a look at QVariant doc: http://qt-project.org/doc/qt-5/qvariant.html you will find the typedef: http://qt-project.org/doc/qt-5/qvariant.html#QVariantMap-typedef in javascript use assign with the named array (dictionary) object. You will have to assign the whole structure when doing the modi

Re: [Interest] QStandardPaths on mobile

2014-11-20 Thread Alan Ezust
I think QStorageInfo is what you use to find out about SD cards. On Thu, Nov 20, 2014 at 3:40 AM, Harri Pasanen wrote: > The documentation at http://qt-project.org/doc/qt-5/qstandardpaths.html > has nothing for iOS or Windows Phone. > > For iOS some support seems to be there though, how about W

[Interest] Qt 5.4 Beta with Qt3D's QGLPainter

2014-11-20 Thread Jonathan Poncelet
Hi all, I’m attempting to use the QGLPainter from Qt3D with Qt 5.4’s new QOpenGLWidget - I was originally making do with QGLWidget from the previous Qt version but I was running into trouble with putting widgets, buttons, etc. on top of the GL widget, which is something I need to do. I’m fairly

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Nuno Santos
Jerome, Thanks for your reply. Got the idea. Can you point me to useful resources on how to use QVariant on this case? Still didn’t get it how do you use it in this case. Regards, Nuno > On 20 Nov 2014, at 16:22, Jérôme Godbout wrote: > > It's not really a model, but lesser pain to modify d

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
It's not really a model, but lesser pain to modify data on both end. It's a QVariant basic type. I also try to make a template wrapper that enclose the QQmlListProperty and send signal before/after append, clear: // Those function are required to make the element opearator= and operator[] into Qm

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Nuno Santos
Jerome, Thanks for your feedback. In time between your reply I have achieved precisely what you have said in your reply. Which options would you consider for this problem? What about QVariantMap? Is it a model? Can’t find 5.3 documentation for it. Regards, Nuno > On 20 Nov 2014, at 15:24, J

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
Hi, My observation with the QQmlListProperty so far. You can assign to it but only with javascript array, list, etc. It does not allow diect array object instanciate. The following should work: *presets: [patchSet1]* *PatchSet * *{* *id: patchSet1name: "Preset 1"

[Interest] qmake ios build

2014-11-20 Thread Kate Alhola
We and may be many others would like to build iOS apps by CI systems like Jenkins. We have been using Jenkins a long time but after code 6.1 there appeared an issue. Signing app now requires Payload/*.app/ResourceRules. plist that must be defined in appname.xcodeproj file: "CODE_SIGN_RESOURCE_RULES

[Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Nuno Santos
Hi, I need to implement a model class that allows me to have the data in C++ but exposed to QML. The data will need to be exposed to QML and it will be necessary to write from QML to that model as well. The C++ side will be in charge of the data persistence. I started with QQmlListProperty a

Re: [Interest] QtQuick2 / Map and Flickable sensitivity (Interest Digest, Vol 38, Issue 64)

2014-11-20 Thread Harri Pasanen
On 20/11/2014 08:44, Kate Alhola wrote: >> The times when Flickable does not take the events are likely when the >> >Flickable determined that the events are not intended for it. Such as when >> >flicking horizontally in a Flickable that only scrolls vertically. > I noticed that and tried to pinch

[Interest] QStandardPaths on mobile

2014-11-20 Thread Harri Pasanen
The documentation at http://qt-project.org/doc/qt-5/qstandardpaths.html has nothing for iOS or Windows Phone. For iOS some support seems to be there though, how about Windows Phone? Also, I would think that external memory cards (microSD) would fall into standard paths that would ideally be acce

Re: [Interest] QStandardPaths on iOS

2014-11-20 Thread Harri Pasanen
I proceeded to test with 5.4 beta, and QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); is a non empty path, but not writable on iOS, but QStandardPaths::writableLocation(QStandardPaths::DataLocation); appears to work. Maybe fixed in 5.4 final? Harri On 20/11/2014 11:32, S

Re: [Interest] QStandardPaths on iOS

2014-11-20 Thread Samuel Gaist
Hi, It's supported. The documentation is currently getting fixed On 20 nov. 2014, at 11:16, Harri Pasanen wrote: > http://qt-project.org/doc/qt-5/qstandardpaths.html > > Does not seem to have anything for iOS. > > Is it not yet supported for iOS, or is the documentation lagging behind? > >

[Interest] QStandardPaths on iOS

2014-11-20 Thread Harri Pasanen
http://qt-project.org/doc/qt-5/qstandardpaths.html Does not seem to have anything for iOS. Is it not yet supported for iOS, or is the documentation lagging behind? Thanks, Harri ___ Interest mailing list Interest@qt-project.org http://lists.qt-projec