Re: [Interest] iOS build request permissions I don't need

2016-12-20 Thread Gian Maxera
The permission are not listed into Info.plist … are derived/assumed by 
iTunesConnect when see what framework have been used.

In any case, Nuno Santos suggestion is working.

Thanks again for your support.


> On 20 Dec 2016, at 15:09, Yasser Sobhy <yasser.sobhy@gmail.com> wrote:
> 
> Or simply remove these permissions from info.plist file if you're building 
> using xcode 
> 
> On Dec 20, 2016 6:01 PM, "Nuno Santos" <nunosan...@imaginando.pt 
> <mailto:nunosan...@imaginando.pt>> wrote:
> Add this to your Info.plist
> 
> NSMicrophoneUsageDescription
> This app doesn't make any usage of microphone
> NSPhotoLibraryUsageDescription
> This app doesn't make any usage of the photo library
> 
> Nuno Santos
> Founder / CEO / CTO
> www.imaginando.pt <http://www.imaginando.pt/>
> +351 91 621 69 62
> 
>> On 20 Dec 2016, at 14:32, Gian Maxera <gmax...@gmail.com 
>> <mailto:gmax...@gmail.com>> wrote:
>> 
>> Hello,
>> I’ve recently updated an app using Qt 5.7.0 and when I submitted this update 
>> to iTunesConnect the build has been rejected for this reasons:
>> 
>>> This app attempts to access privacy-sensitive data without a usage 
>>> description. The app's Info.plist must contain an 
>>> NSPhotoLibraryUsageDescription key with a string value explaining to the 
>>> user how the app uses this data.
>>> 
>>> This app attempts to access privacy-sensitive data without a usage 
>>> description. The app's Info.plist must contain an NSCameraUsageDescription 
>>> key with a string value explaining to the user how the app uses this data.
>>> 
>> 
>> I don’t use CAMERA and I don’t use PhotoLibrary into the app. So, I don’t 
>> know why Qt inject these permission.
>> 
>> I’m using a WebView for mobile.
>> 
>> How can I remove these ?
>> 
>> Thanks,
>> Gianluca.
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org <mailto:Interest@qt-project.org>
>> http://lists.qt-project.org/mailman/listinfo/interest 
>> <http://lists.qt-project.org/mailman/listinfo/interest>
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org <mailto:Interest@qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest 
> <http://lists.qt-project.org/mailman/listinfo/interest>
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] iOS build request permissions I don't need

2016-12-20 Thread Gian Maxera
Hello,
I’ve recently updated an app using Qt 5.7.0 and when I submitted this update to 
iTunesConnect the build has been rejected for this reasons:

> This app attempts to access privacy-sensitive data without a usage 
> description. The app's Info.plist must contain an 
> NSPhotoLibraryUsageDescription key with a string value explaining to the user 
> how the app uses this data.
> 
> This app attempts to access privacy-sensitive data without a usage 
> description. The app's Info.plist must contain an NSCameraUsageDescription 
> key with a string value explaining to the user how the app uses this data.
> 

I don’t use CAMERA and I don’t use PhotoLibrary into the app. So, I don’t know 
why Qt inject these permission.

I’m using a WebView for mobile.

How can I remove these ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android build add permission I don't need

2016-12-20 Thread Gian Maxera
Ok, I’ll try to do it.
But I always trusted on Qt permission inclusion, so actually … I don’t know 
what permissions my app need.
Because it’s really a basic app, I don’t think it needs more that default 
permissions.


> On 20 Dec 2016, at 13:53, Yasser Sobhy <yasser.sobhy@gmail.com> wrote:
> 
> What Qt modules  do you use in your app?
> 
> You can uncheck include default permissions for Qt modules and add any 
> permissions you need manually.
> 
> On Dec 20, 2016 4:48 PM, "Gian Maxera" <gmax...@gmail.com 
> <mailto:gmax...@gmail.com>> wrote:
> I’m a bit worried to do that,
> because I may miss something that’s relevant for my app.
> 
>> On 20 Dec 2016, at 13:47, Yasser Sobhy <yasser.sobhy@gmail.com 
>> <mailto:yasser.sobhy@gmail.com>> wrote:
>> 
>> Hi Gian
>> 
>> In Qt Creator open your app's AndroidManifest.xml and uncheck "include 
>> default permissions for Qt modules.
>> 
>> On Dec 20, 2016 4:41 PM, "Gian Maxera" <gmax...@gmail.com 
>> <mailto:gmax...@gmail.com>> wrote:
>> Hello,
>> I’ve recently updated an app using Qt 5.7.0 and when I submitted this update 
>> to Google Play I had this warning:
>> 
>> "Your app has an APK with version code 28 that requests the following 
>> permission(s): android.permission.CAMERA,android.permission.RECORD_AUDIO. 
>> Apps using these permissions in an APK are required to have a privacy policy 
>> set.”
>> 
>> I don’t use CAMERA and I don’t use RECORD_AUDIO into the app. So, I don’t 
>> know why Qt inject these permission.
>> I’m using a WebView for mobile.
>> 
>> How can I remove these ?
>> 
>> Thanks,
>> Gianluca.
>> 
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org <mailto:Interest@qt-project.org>
>> http://lists.qt-project.org/mailman/listinfo/interest 
>> <http://lists.qt-project.org/mailman/listinfo/interest>
>> 
>> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android build add permission I don't need

2016-12-20 Thread Gian Maxera
I’m a bit worried to do that,
because I may miss something that’s relevant for my app.

> On 20 Dec 2016, at 13:47, Yasser Sobhy <yasser.sobhy@gmail.com> wrote:
> 
> Hi Gian
> 
> In Qt Creator open your app's AndroidManifest.xml and uncheck "include 
> default permissions for Qt modules.
> 
> On Dec 20, 2016 4:41 PM, "Gian Maxera" <gmax...@gmail.com 
> <mailto:gmax...@gmail.com>> wrote:
> Hello,
> I’ve recently updated an app using Qt 5.7.0 and when I submitted this update 
> to Google Play I had this warning:
> 
> "Your app has an APK with version code 28 that requests the following 
> permission(s): android.permission.CAMERA,android.permission.RECORD_AUDIO. 
> Apps using these permissions in an APK are required to have a privacy policy 
> set.”
> 
> I don’t use CAMERA and I don’t use RECORD_AUDIO into the app. So, I don’t 
> know why Qt inject these permission.
> I’m using a WebView for mobile.
> 
> How can I remove these ?
> 
> Thanks,
> Gianluca.
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org <mailto:Interest@qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest 
> <http://lists.qt-project.org/mailman/listinfo/interest>
> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Android build add permission I don't need

2016-12-20 Thread Gian Maxera
Hello,
I’ve recently updated an app using Qt 5.7.0 and when I submitted this update to 
Google Play I had this warning:

"Your app has an APK with version code 28 that requests the following 
permission(s): android.permission.CAMERA,android.permission.RECORD_AUDIO. Apps 
using these permissions in an APK are required to have a privacy policy set.”

I don’t use CAMERA and I don’t use RECORD_AUDIO into the app. So, I don’t know 
why Qt inject these permission.
I’m using a WebView for mobile.

How can I remove these ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] License regarding question

2016-11-29 Thread Gian Maxera

> On 29 Nov 2016, at 10:45, Jake Petroules  wrote:
> 
> 
>> On Nov 29, 2016, at 2:42 AM, Alexander Dyagilev  wrote:
>> 
>> Hello,
>> 
>> We use Qt under LGPL license.
>> 
>> We have found some problem in it (bug working with HTTPS on limited 
>> connection speed) and fixed it. We have recompiled Qt then.
>> 
>> What do we must to do next to obey the license terms?
>> 
>> Publish the changes somewhere?
> 
> Yes, you should publish the changes to Qt code review so that we can 
> integrate the fix back into Qt.
> 
> https://wiki.qt.io/Contribute

I think that is not mandatory under LGPL license. Of course, it would be a nice 
to do because all the community can benefit from your work.
But from a formal point of view, I don’t think you are enforced to do so.
The only thing your are enforced to do is to release the fix under LGPL license 
too. That means you cannot sell under commercial terms your fixed-Qt version, 
instead you have to give for free to anyone would ask to you.


> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> 
> -- 
> Jake Petroules - jake.petrou...@qt.io
> The Qt Company - Silicon Valley
> Qbs build tool evangelist - qbs.io
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] HTTPS with Qt

2016-10-06 Thread Gian Maxera
In the Qt app you just need to change http to https
No more.

> On 6 Oct 2016, at 14:51, Larry Martell  wrote:
> 
> I have a Qt app that sends requests to a server like this:
> 
>  QString urlStr = "http://foo.bar.com/baz;;
>  QUrl transferUrl(urlStr);
>  QNetworkRequest request(transferUrl);
>  networkReply = networkManager.get(request);
> 
> We need to change this to use HTTPS. We have the needed certs on the
> server. Can someone please point me at some docs that will help me get
> the Qt app modified to work with HTTPS. From what I've been able to
> find I need to install a root certificate, but I don't know what that
> means or how to do it. Also, what changes do I have to make in the Qt
> code? Is it simply changing http to https? From a browser that is all
> I had to do, presumedly because the browser already had the root
> certificate. Any pointers will be greatly appreciated.
> 
> Thanks!
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android: Underlined text in text edit not showing up in .text property

2016-07-29 Thread Gian Maxera
From my experience, the text won’t match what’s on the screen when the 
keyboards use predictive completion.


> On 29 Jul 2016, at 17:07, Jason H  wrote:
> 
> I'm 99% sure this is an inconsistency in Android keyboards. The Samsung has a 
> Samsung Keyboard.
> On a whim I installed the Google keyboard (now available in app store for all 
> devices) and it behaves as you describe.
>  
> The take-away: I think it is important for other Android app developers to 
> note that the displayText is the field to use, as text may not match what's 
> on the screen for some keyboards.
>  
> Sent: Friday, July 29, 2016 at 10:56 AM
> From: ekke 
> To: interest@qt-project.org
> Subject: Re: [Interest] Android: Underlined text in text edit not showing up 
> in .text property
> Am 29.07.16 um 16:12 schrieb Jason H:
> I've got a Samsung Alpha (stock) that as I type, the text property is not 
> being updated.
> I initialized a TextInput (below, comments in []) and backspaced over it, it 
> gets the updates correctly. But when I start typing, anything not recognized 
> by the keyboard is underlined in the text edit and does not appear until I 
> end that word with a space or punctuation. I am concerned that my users will 
> perform an action thinking that that underlined word is part of what will be 
> acted on, when it will not. 
> 
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a line
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is
> qrc:/main.qml:308 (onTextChanged): qml: text:  th
> qrc:/main.qml:308 (onTextChanged): qml: text: [showing _gdhdhd_]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [appeared completely 
> after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [showing _hdhd_ in the 
> TextInput]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [appeared 
> completely after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [showing _fg_ in 
> the TextInput]
> 
> How can I get the entire text?
> ___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
> 
> hmmm
> 
> just did a test:
> 
> TextField {
> id: remarksTextField
> focus: true
> anchors.fill: parent
> topPadding: 6
> leftPadding: 6
> wrapMode: Text.WordWrap
> placeholderText: qsTr("Remarks, Hints, Description")
> text: order.remarks
> }
> 
> entering text into TextField: this is a line
> 
> went out, come back
> 
> now backspace characters
> 
> then enter gdhdhd - all appears immediately
> 
> works from virtual keyboard and physical keyboard (Device is a Slider)
> 
> QtQuickControls 2, Qt 5.7
> Android 6.0.1
> BlackBerry PRIV
>  
> --
> ekke
> ___ Interest mailing list 
> Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android: Underlined text in text edit not showing up in .text property

2016-07-29 Thread Gian Maxera
I raised this problem various time in this mailinglist and into the developing 
list … no one replied to me.
I hope you will have a better luck … because that problem is bigger that what 
would appear.


> On 29 Jul 2016, at 15:12, Jason H  wrote:
> 
> I've got a Samsung Alpha (stock) that as I type, the text property is not 
> being updated.
> I initialized a TextInput (below, comments in []) and backspaced over it, it 
> gets the updates correctly. But when I start typing, anything not recognized 
> by the keyboard is underlined in the text edit and does not appear until I 
> end that word with a space or punctuation. I am concerned that my users will 
> perform an action thinking that that underlined word is part of what will be 
> acted on, when it will not. 
> 
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a line
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is
> qrc:/main.qml:308 (onTextChanged): qml: text:  th
> qrc:/main.qml:308 (onTextChanged): qml: text: [showing _gdhdhd_]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [appeared completely 
> after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [showing _hdhd_ in the 
> TextInput]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [appeared 
> completely after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [showing _fg_ in 
> the TextInput]
> 
> How can I get the entire text?
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Towards a better mobile launch?

2016-07-19 Thread Gian Maxera
What is your target launch time ?

Because in my apps I use a splash.qml file that contains an Image, an Animator 
and a Loader. Anything else.
And then the Loader will load the real main.qml of the application.
In that way, the launch time is around 2 seconds… then with a bit of creativity 
into the Animator you can craft an animation that fakes load all other elements 
of your user interface.

Ciao,
Gianluca.


> On 19 Jul 2016, at 15:16, Jason H  wrote:
> 
> I am taking a stab here on why it takes to long to launch a mobile app on 
> Android and iOS. I'm guessing the bulk of the time is to load the 13MB of Qt 
> libraries. I'm wondering if there is anything I (or Qt) can do to get a 
> launch screen up quicker, (reducing the time from launch to a screen- even if 
> static). Maybe there is a way to get the launch screen up via native methods, 
> then dynamically load Qt libraries, then start the app? I already use a 
> Loader to get the main UI up ASAP, then load the rest of the app. 
> 
> I'm also familiar with launch screens (xib, launch images) on iOS and the 
> drawable hack in the android manifest. I am already using those when using 
> those, I'm targeting the time spent to get those up.
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Persistent App store get-task-allow issue

2016-06-09 Thread Gian Maxera
Never got this problem.
This is my steps:

 1. Set Qt Creator to iphoneos release (I never used debug version for creating 
the archive)
 2. Only “Run Qmake” from Qt Creator
 3. Open the Xcode project present into the build directory with Xcode
 4. Archive and submit

Never got any error in this way.

Ciao,
Gianluca.


> On 9 Jun 2016, at 17:21, Jason H  wrote:
> 
> Cross-posted interest/creator
> 
> It seems that when I am using Qt to make iOS builds that I sometimes get an 
> error.
> 1. build an OSX debug version
> 2. archive/compile my project in Xcode using the Xcode project.xcodeproject 
> from the iOS release folder
> 3. upload the archive to the store.
> 4. get the error.
> 
> Then I "fix" it by:
> 5. switching Qt creator from Desktop to the iOS kit/platform, release.
> 6. build it
> 7. re-archive in Xcode
> 8. upload (works)
> 
> 
> Has anyone noticed this and/or can anyone explain this? It takes several 
> minutes to complete the transfer with Xcode, so it is a pain when the result 
> is an error.
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Gian Maxera

> On 8 Jun 2016, at 14:32, Elvis Stansvik  wrote:
> 
> Hi all,
> 
> I'm currently using a "type" role in my items and then a Loader as
> delegate, to give a level of indirection and let me choose the actual
> delegate based on the "type" of the item.
> 
> This explains it better (from my ListView):
> 
>delegate: Loader {
>sourceComponent: {
>switch (type) {
>case "color":
>return colorDelegate
>case "flag":
>return flagDelegate
>...
>}
>}
> 
>Component {
>id: colorDelegate
> 
>ColorDelegate { }
>}
> 
>Component {
>id: flagDelegate
> 
>FlagDelegate { }
>}
> 
>...
>}
> 
> What I don't like with this approach is that inside my delegates, e.g.
> ColorDelegate.qml, I have to use parent.ListView.view.model to get a
> reference to the model (needed for editing operations). The use of
> "parent" here assumes a certain layout, but I see no other way :(
> 
> How have others solved the issue of delegates for heterogenous lists?

I use the following approach:

This is the ListView with the Loader inside:

ListView {
id: subsectionsList
model: navList.model
delegate: Loader {
id: innerItem
width: subsectionsList.width
height: subsectionsList.height
asynchronous: false
property var models: sectionModel
source: sectionPage
}
}

Then, I create the model in the following way:

ListModel {
id: subsections
// it's not possible to use the 'static' initialization:
//ListElement { ... }
// because it does not support passing of object pointers
Component.onCompleted: {
append( {
'sectionName': "Hotel details",
'sectionPage':"HotelDetailsSubsection.qml",
'sectionModel': {
'event': event,
'hotel': hotel
}
})
append( {
'sectionName': "Exhibitors",
'sectionPage':"HotelExhibitorsSubsection.qml",
'sectionModel': {
'event': event,
'hotel': hotel
}
})
}
}

Pay attention on two key passages:
 - the Loader inside the ListView has a property for keeping the models: 
“property var models: sectionModel
 - the ListModel contain an attribute ‘sectionModel’ that it’s an object with 
the Items I want to inject and pass to my loaded items inside the ListView

And then, into the source code of QML component I can use the model like that:

Text {
text: models.hotel.description
}
Text {
text: models.hotel.city_and_country+' 
'+models.hotel.address+' '+models.hotel.postcode
}


Do you like it ?

Ciao,
Gianluca.

> 
> Best regards,
> Elvis
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android and iOS: how to easily handle 'staging' and 'production' versions ?

2016-05-17 Thread Gian Maxera

> On 17 May 2016, at 15:10, Jason H  wrote:
> 
>> Hello all,
>> I often need to keep two version of the app: ‘production’ that it’s the 
>> current app live on the stores and ‘staging’ that it’s an app deployed only 
>> to the client and testers for the new upcoming release.
>> 
>> Of course, I don’t want to use the same package name for the apps, so let’s 
>> suppose I’d like to have: ‘com.mycompany.staging.coolapp’ for staging and 
>> ‘com.mycompany.coolapp’ for the one on stores.
>> 
>> For now, switching from one build to another build, it require my to 
>> manually change the java source directory tree, the java package name at the 
>> top of each java class declaration, the package name into AndroidManifest 
>> and Info.plist.
>> 
>> Do you find an automatic way to handle this switch of build environments 
>> easily ?
> 
> Don't to it that way. You'll have issues.
> 
> Just use source control as you are supposed to - a branch for each build if 
> that is what you want. Or use tags.
> I don't do it that way because I only ever work on one code base at a time, 
> each revision is put into a different build on the app store, using the build 
> number. For iOS, this can reset every version, for android it must increase 
> per the identifier. 
> 
> The app stores allow you to put an app into testing before release, use that 
> feature don't re-invent the wheel and make it harder for yourself.

The app stores doesn’t allow to easily share a testing app with the client. 
Both stores they requires subscriptions as a kind of tester or developer. 
Neither works when you need to show the works done with a client that just need 
to see what you have done and sign off and pay the invoice.
In this case, I cannot use the testing features used by app stores … because, 
as I said, I have to give the possiblity to install both version on the same 
device but working on different environments.

I don’t want to re-invent the wheel … that’s why I’m asking if there is a 
solution out there that fits my needs… but it’s seem there isn’t :-(

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Android and iOS: how to easily handle 'staging' and 'production' versions ?

2016-05-17 Thread Gian Maxera
Hello all,
I often need to keep two version of the app: ‘production’ that it’s the current 
app live on the stores and ‘staging’ that it’s an app deployed only to the 
client and testers for the new upcoming release.

Of course, I don’t want to use the same package name for the apps, so let’s 
suppose I’d like to have: ‘com.mycompany.staging.coolapp’ for staging and 
‘com.mycompany.coolapp’ for the one on stores.

For now, switching from one build to another build, it require my to manually 
change the java source directory tree, the java package name at the top of each 
java class declaration, the package name into AndroidManifest and Info.plist.

Do you find an automatic way to handle this switch of build environments easily 
?

Thanks,
Gianluca.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] including config file with macdeployqt

2016-05-13 Thread Gian Maxera
Mac bundle (after all) is just a directory.
So, you can just copy the config file where you want inside the directory and 
access it getting the path relative to application dir path 
(QCoreApplication::applicationDirPath()).


> On 13 May 2016, at 12:42, Larry Martell  wrote:
> 
> I am creating a bundle with macdeployqt to distribute my app. I want
> to have a config file that my app will read at startup. How can I
> include that config file in my bundle, and where is the proper place
> for it to live on the file system on the machine the app gets
> installed on?
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] AndroidManifest Minimum required API not working as expected

2016-05-10 Thread Gian Maxera
I suppose that qmake is generating different Makefiles depending on what is 
using for build the java part.

So, my supposition is:
 - when you select “ant” as java builder, then Qt Creator generate a Makefile 
for using “ant” … and this may contain some bugs that doesn’t allow to change 
the Qt app name and the Android SDKs
 - when you select “gradle” as java builder, then Qt Creator generate a 
(different) Makefile for using “gradle” … and this may be bug-free (because I 
didn’t have any problem on setting Android SDKs) … and using “gradle” allow to 
change other aspect of java building overriding gradle.properties.


> On 10 May 2016, at 11:18, Nuno Santos <nunosan...@imaginando.pt> wrote:
> 
> Who generates the Makefile for C++ code compiling? Is grade involved? My 
> conviction is that grade is only involved in the java related parts.
> 
>> On 10 May 2016, at 10:50, Gian Maxera <gmax...@gmail.com 
>> <mailto:gmax...@gmail.com>> wrote:
>> 
>> I don’t think the problem is on makefile … but on the tool are using.
>> I want to insist on check if you are using gradle … because I don’t have any 
>> of your problem with default settings of Qt Creator and using gradle.
>> 
>> When I create a new project with Qt Creator and I set to use gradle … the 
>> app name is correct and I can change the sdks.
>> 
>> 
>>> On 10 May 2016, at 10:00, NoRulez <noru...@me.com <mailto:noru...@me.com>> 
>>> wrote:
>>> 
>>> I think this too, because I can't override the android-23 nor the QtApp name
>>> 
>>> Am 10.05.2016 um 10:06 schrieb Nuno Santos <nunosan...@imaginando.pt 
>>> <mailto:nunosan...@imaginando.pt>>:
>>> 
>>>> I think this problem is on qmake because the Qt Makefile is using 
>>>> android-9 instead of android-21. I need API 21 for NDK things and not for 
>>>> Java things, and that must be specified on the Qt Makefile which is 
>>>> generated by qmake.
>>>> 
>>>>> On 10 May 2016, at 07:38, Gianluca <gmax...@gmail.com 
>>>>> <mailto:gmax...@gmail.com>> wrote:
>>>>> 
>>>>> If you use gradle and there is some problems on setting properly it using 
>>>>> Qt Creator, you can override some settings adding the gradle.properties 
>>>>> file to your Android source directory.
>>>>> 
>>>>> I got problem on selecting the right Java version for compile java code 
>>>>> and this is my gradle.properties that solved the issue … I think you can 
>>>>> change and select also the sdk to use easily:
>>>>> 
>>>>> org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>>>>> 
>>>>> androidBuildToolsVersion=22.0.1
>>>>> androidCompileSdkVersion=23
>>>>> buildDir=build
>>>>> qt5AndroidDir=__qt5__android__files__
>>>>> 
>>>>> I do not put this into the repository, but I maintain them on machine 
>>>>> basis, so that each machine has it’s own gradle.properties to use
>>>>> 
>>>>> Ciao,
>>>>> Gianluca.
>>>>> 
>>>>> 
>>>>> Il giorno 10/mag/2016, alle ore 07:33, Nuno Santos 
>>>>> <nunosan...@imaginando.pt <mailto:nunosan...@imaginando.pt>> ha scritto:
>>>>> 
>>>>>> I have been using Gradle all the time for more than 6 months now. 
>>>>>> 
>>>>>> I have been noticing some random problems, but lately I have been having 
>>>>>> the need to change the API more regularly and the problem become evident.
>>>>>> 
>>>>>>> On 10 May 2016, at 07:26, Gianluca <gmax...@gmail.com 
>>>>>>> <mailto:gmax...@gmail.com>> wrote:
>>>>>>> 
>>>>>>> Please, can you tell us if all these problems appear using “ant” or 
>>>>>>> using “gradle” ?
>>>>>>> (Old Android build was with “ant”, now ant is deprecated and you should 
>>>>>>> use only “gradle” … but Qt still support both)
>>>>>>> 
>>>>>>> Il giorno 10/mag/2016, alle ore 05:04, NoRulez <noru...@me.com 
>>>>>>> <mailto:noru...@me.com>> ha scritto:
>>>>>>> 
>>>>>>>> Hello,
>>>>>>>> 
>>>>>>>> I've the same problem when building with CMake on the command l

Re: [Interest] AndroidManifest Minimum required API not working as expected

2016-05-10 Thread Gian Maxera
I don’t think the problem is on makefile … but on the tool are using.
I want to insist on check if you are using gradle … because I don’t have any of 
your problem with default settings of Qt Creator and using gradle.

When I create a new project with Qt Creator and I set to use gradle … the app 
name is correct and I can change the sdks.


> On 10 May 2016, at 10:00, NoRulez  wrote:
> 
> I think this too, because I can't override the android-23 nor the QtApp name
> 
> Am 10.05.2016 um 10:06 schrieb Nuno Santos  >:
> 
>> I think this problem is on qmake because the Qt Makefile is using android-9 
>> instead of android-21. I need API 21 for NDK things and not for Java things, 
>> and that must be specified on the Qt Makefile which is generated by qmake.
>> 
>>> On 10 May 2016, at 07:38, Gianluca >> > wrote:
>>> 
>>> If you use gradle and there is some problems on setting properly it using 
>>> Qt Creator, you can override some settings adding the gradle.properties 
>>> file to your Android source directory.
>>> 
>>> I got problem on selecting the right Java version for compile java code and 
>>> this is my gradle.properties that solved the issue … I think you can change 
>>> and select also the sdk to use easily:
>>> 
>>> org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>>> 
>>> androidBuildToolsVersion=22.0.1
>>> androidCompileSdkVersion=23
>>> buildDir=build
>>> qt5AndroidDir=__qt5__android__files__
>>> 
>>> I do not put this into the repository, but I maintain them on machine 
>>> basis, so that each machine has it’s own gradle.properties to use
>>> 
>>> Ciao,
>>> Gianluca.
>>> 
>>> 
>>> Il giorno 10/mag/2016, alle ore 07:33, Nuno Santos 
>>> > ha scritto:
>>> 
 I have been using Gradle all the time for more than 6 months now. 
 
 I have been noticing some random problems, but lately I have been having 
 the need to change the API more regularly and the problem become evident.
 
> On 10 May 2016, at 07:26, Gianluca  > wrote:
> 
> Please, can you tell us if all these problems appear using “ant” or using 
> “gradle” ?
> (Old Android build was with “ant”, now ant is deprecated and you should 
> use only “gradle” … but Qt still support both)
> 
> Il giorno 10/mag/2016, alle ore 05:04, NoRulez  > ha scritto:
> 
>> Hello,
>> 
>> I've the same problem when building with CMake on the command line. I 
>> want target android-21 but android-23 is used. It seems that there is 
>> maybe a bug somewhere.
>> 
>> 
>> Am 09.05.2016 um 23:17 schrieb Igor Mironchik > >:
>> 
>>> Really weird...
>>> 
>>> What is command lines when you compiling?
>>> 
>>> Is there android-9 or android-23 in pathes?
>>> 
>>> On 10.05.2016 00:12, Nuno Santos wrote:
 Even more weird...
 
 ➜  ~ cat app.pro.user | grep Sdk
   android-23
   android-23
   android-23
 ➜  ~
 
> On 09 May 2016, at 22:03, Igor Mironchik < 
> igor.mironc...@gmail.com 
> > wrote:
> 
> Can you open *.user file and search for android record like this:
> 
> android-9
> 
> If you will see here android-9 then you project will be built with 
> API 9, I guess...
> 
> On 09.05.2016 23:35, Nuno Santos wrote:
>> That doesn’t seem to be true. At least with the following Qt Creator:
>> 
>> Qt Creator 3.6.1
>> 
>> Based on Qt 5.6.0 (Clang 7.0 (Apple), 64 bit)
>> 
>> Built on Mar 14 2016 09:38:07
>> 
>> From revision 53b8ca08bf
>> 
>> 
>> 
>> 
>> I had to open the generated Makefile and make a global replace of 
>> android-9 for android-21 to be able to build with API 21
>> 
>>> On 09 May 2016, at 21:10, Igor Mironchik >> > wrote:
>>> 
>>> Hi,
>>> 
>>> Do you build with QtCreator? If so then when QtCreator configures 
>>> project it invokes tools/android Android NDK tool and select 
>>> highest API available and build with such settings.
>>> 
>>> On 09.05.2016 22:47, Nuno Santos wrote:
 Nuno Santos
 Founder / CEO / CTO
 www.imaginando.pt 
 +351 91 621 69 62
 
 I’m selecting Android 5.0 (API 21) in 

Re: [Interest] How to set Android Version and App Name

2016-05-06 Thread Gian Maxera
It seems are you using “ant” for building the app.
You should switch to “gradle”.
“ant” has been deprecated years ago, and I never got your problem using “gradle”

Ciao,
Gianluca.


> On 6 May 2016, at 16:55, NoRulez  wrote:
> 
> I got this from the Build log:
> 
> .
> .
> .
> Stripping libraries to minimize size. Updating Android package files with 
> project settings. -- res/values/libs.xml -- AndroidManifest.xml -- 
> /src/org/qtproject/qt5/android/bindings/QtActivity.java Pregenerating entry 
> list for assets file engine. Running Android tool to create package 
> definition. -- Command: /opt/android-sdk-linux/tools/android update project 
> --path /home/user/workspace/MyProject-Android-armv7/build/ --target 
> android-23 --name QtApp Building Android package using ant. Using ant: 
> /usr/bin/ant
> .
> .
> .
> 
> The mystery is that i set android-21 and I also can't set the package name
> 
> 
> 
> Am 06.05.2016 um 08:42 schrieb Nuno Santos  >:
> 
>> Where is your AndroidManifest.xml? That’s the place for those kind of things.
>> 
>>> On 06 May 2016, at 06:32, ekke >> > wrote:
>>> 
>>> Am 05.05.16 um 21:47 schrieb NoRulez:
 Hello,
 
 I tried to deploy my first example app to my device.
 I noticed that the app name is always QtApp and the target is always 
 android-23.
 I tried to set the version with "--android platform android-21" but it 
 doesn't work either.
 
 Can anybody give me a hint to set those options?
 
 Thanks
 ___
 Interest mailing list
 Interest@qt-project.org 
 http://lists.qt-project.org/mailman/listinfo/interest 
 
 
>>> For the SDK Version:
>>> 
>>> Have you set the Version from QtCreator - Projects - Build Settings -
>>> Build Android APK -> ...22 ...23
>>> 
>>> ekke
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org 
>>> http://lists.qt-project.org/mailman/listinfo/interest 
>>> 
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org 
>> http://lists.qt-project.org/mailman/listinfo/interest 
>> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id

2016-04-11 Thread Gian Maxera

> On 11 Apr 2016, at 14:49, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> Hello,
> 
> Thank you.
> 
> I successfully drawn chess board. Nice.
> 
> Column {
> spacing: 0
> Row {
> // top letters
> Item { width: offset; height: offset; }
> Repeater {
> model: [ "A", "B", "C", "D", "E", "F", "G", "H" ]
> delegate: Text {
> width: cellWidth
> height: offset
> text: modelData
> horizontalAlignment: Text.AlignHCenter
> verticalAlignment: Text.AlignVCenter
> }
> }
> Item { width: offset; height: offset; }
> }
> // Rows with cells
> Repeater {
>model: 8
>delegate: Row {
>id: row
>property int rowIndex: index
>// number
>Text {
> width: offset
> height: cellHeight
> text: 8 - index
> horizontalAlignment: Text.AlignHCenter
> verticalAlignment: Text.AlignVCenter
>}
>// first row of chess board
>Repeater {
> model: 8
> delegate: Cell {
> cellColor: ( row.rowIndex % 2 === 0
> ? ( index % 2  === 0 ? "white" : "lightgray" )
> : ( index % 2  === 0 ? "lightgray" : "white" ) );
> chessX: index; chessY: row.rowIndex;
> onClicked: board.clicked( x, y );
> onHovered: board.hovered( x, y );
> objectName: "c"+ chessX + chessY;
> width: cellWidth;
> height: cellHeight;
> }
>}
>// number
>Text {
> width: offset
> height: cellHeight
> text: 8 - index
> horizontalAlignment: Text.AlignHCenter
> verticalAlignment: Text.AlignVCenter
>}
>}
> }
> Row {
> // top letters
> Item { width: offset; height: offset; }
> Repeater {
> model: [ "A", "B", "C", "D", "E", "F", "G", "H" ]
> delegate: Text {
> width: cellWidth
> height: offset
> text: modelData
> horizontalAlignment: Text.AlignHCenter
> verticalAlignment: Text.AlignVCenter
> }
> }
> Item { width: offset; height: offset; }
> }
> }
> 
> But now I need place pieces on board.
> 
> In my old code I used
> 
> Figure {
> source: "qrc:/img/pawn-white.png"
> x: c06.x
> y: c06.y
> objectName: "pawn-white-1"
>     width: cellWidth
> height: cellHeight
> }
> 
> Where c06 is id. Is it possible to bind x to x property of Cell by objectName?

I think so, but instead of bind x and y … I’ll try to change the parent. There 
is also ParentAnimation for animate the changing.
And then, you can use the anchors for center the Figure in the parent.

Figure {
anchors.centerIn: parent
}

But I don’t know if QML got some built-in to find an object by name.


> 
> Thank you.
> 
> On 11.04.2016 16:02, Gian Maxera wrote:
>> Column {
>> spacing: 0
>> Row {
>> // top letters
>> EmptyItem { // use fixed width here so you can align the text }
>> Repeater {
>>  model: [“A”, “B”, … “H”]
>> delegate: DisplayTheLetter { … }
>> }
>> EmpyItem { }
>> }
>> // Rows with cells
>> Repeater {
>>model: 8
>>delegate: Row {
>>// number
>>Text {
>> // use fixed width and align left the text
>> // vertical alignment with anchors
>> anchors.verticalCenter: parent.verticalCenter
>> text: index+1
>>}
>>// first row of chess board
>>Repeater {
>> model: chessBoardModel[index]
>> delegate: ASingleCellOfChessBoard { … }
>>}
>>}
>> }
>> Row {
>> // bottom letters
>> EmptyItem { }
>> Repeater {
>>  model: [“A”, “B”, … “H”]
>> delegate: DisplayTheLetter { … }
>> }
>> EmpyItem { }
>> }
>> }
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id

2016-04-11 Thread Gian Maxera

> On 11 Apr 2016, at 13:55, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> 
> 
> On 11.04.2016 15:10, Gian Maxera wrote:
>> 
>>> On 11 Apr 2016, at 11:44, Igor Mironchik < 
>>> <mailto:igor.mironc...@gmail.com>igor.mironc...@gmail.com 
>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>> 
>>> Hello,
>>> 
>>> On 11.04.2016 13:19, Gian Maxera wrote:
>>>> 
>>>>> On 11 Apr 2016, at 11:14, Igor Mironchik <igor.mironc...@gmail.com 
>>>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>> On 11.04.2016 12:57, Gian Maxera wrote:
>>>>>> If the Text is inside the generated rectangle into the repeater you 
>>>>>> don’t need to generate different Ids, you can do that:
>>>>>> 
>>>>>> Repeater {
>>>>>>   model: 10
>>>>>>   delegate: Rectangle {
>>>>>>  id: cellRect
>>>>>>  Text {
>>>>>> anchor.horizontalCenter: cellRect.horizontalCenter
>>>>>>  }
>>>>>>   }
>>>>>> }
>>>>>> 
>>>>>> Even if the delegate has a fixed id and generated 10 times, QML will 
>>>>>> resolve correctly it.
>>>>> 
>>>>> I want to rewrite my QML with chess board with Repeater. And I want to 
>>>>> see the next:
>>>>> 
>>>>> 
>>>> 
>>>> I don’t know your current code, but If I would in your shoes, I will use a 
>>>> model representing where to put the chess items and a Grid to lay out the 
>>>> items. With Grid Item you can setup a global alignment of the items.
>>>> I think it should work in your case.
>>>> If you want more help, please share with us some snippet of code so I can 
>>>> understand what you need to achieve.
>>> 
>>> Model and Grid is fine. I can place chess and rects, fine. But how to put 
>>> letters and numbers?
>> 
>> 
>> One solution using Column and Row instead of Grid to split Repeaters:
>> 
>> Column {
>> spacing: 0
>> Row {
>> // top letters
>> EmptyItem { // use fixed width here so you can align the text }
>> Repeater {
>>  model: [“A”, “B”, … “H”]
>> delegate: DisplayTheLetter { … }
>> }
>> EmpyItem { }
>> }
>> // Rows with cells
>> Repeater {
>>model: 8
>>delegate: Row {
>>// number
>>Text {
>> // use fixed width and align left the text
>> // vertical alignment with anchors
>> anchors.verticalCenter: parent.verticalCenter
>> text: index+1
>>}
>>// first row of chess board
>>Repeater {
>> model: chessBoardModel[index]
>> delegate: ASingleCellOfChessBoard { … }
>>}
>>}
>> }
>> Row {
>> // bottom letters
>> EmptyItem { }
>> Repeater {
>>  model: [“A”, “B”, … “H”]
>> delegate: DisplayTheLetter { … }
>> }
>> EmpyItem { }
>> }
>> }
> 
> Looks like a solution. Only one question is still opened... How to align 
> letters and numbers in center if chess board should be resizable? I.e. I 
> can't use x and y properties for that. I need anchor.horizontalCenter which 
> use AnchorLine, not pixels…

With my solution you cannot use anchor.horizontalCenter because you are inside 
a Row.
What you need to do is to set the width of the Text element and use 
horizontalAlignment.
I suppose that in same way you are calculating the dimension of the cell during 
resize, so the code will be like for the Text:

Text {
width: cellWidth
horizontalAlignment: Text.AlignLeft
}

>> 
>>> 
>>> Thank you.
>>> 
>>>> 
>>>>>> 
>>>>>> Ciao,
>>>>>> Gianluca.
>>>>>> 
>>>>>>  }
>>>>>> 
>>>>>>> On 11 Apr 2016, at 10:49, Igor Mironchik < 
>>>>>>> <mailto:igor.mironc...@gmail.com>igor.mironc...@gmail.com 
>>>>>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera

> On 11 Apr 2016, at 11:44, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> Hello,
> 
> On 11.04.2016 13:19, Gian Maxera wrote:
>> 
>>> On 11 Apr 2016, at 11:14, Igor Mironchik < 
>>> <mailto:igor.mironc...@gmail.com>igor.mironc...@gmail.com 
>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>> 
>>> 
>>> 
>>> On 11.04.2016 12:57, Gian Maxera wrote:
>>>> If the Text is inside the generated rectangle into the repeater you don’t 
>>>> need to generate different Ids, you can do that:
>>>> 
>>>> Repeater {
>>>>   model: 10
>>>>   delegate: Rectangle {
>>>>  id: cellRect
>>>>  Text {
>>>> anchor.horizontalCenter: cellRect.horizontalCenter
>>>>  }
>>>>   }
>>>> }
>>>> 
>>>> Even if the delegate has a fixed id and generated 10 times, QML will 
>>>> resolve correctly it.
>>> 
>>> I want to rewrite my QML with chess board with Repeater. And I want to see 
>>> the next:
>>> 
>>> 
>> 
>> I don’t know your current code, but If I would in your shoes, I will use a 
>> model representing where to put the chess items and a Grid to lay out the 
>> items. With Grid Item you can setup a global alignment of the items.
>> I think it should work in your case.
>> If you want more help, please share with us some snippet of code so I can 
>> understand what you need to achieve.
> 
> Model and Grid is fine. I can place chess and rects, fine. But how to put 
> letters and numbers?


One solution using Column and Row instead of Grid to split Repeaters:

Column {
spacing: 0
Row {
// top letters
EmptyItem { // use fixed width here so you can align the text }
Repeater {
model: [“A”, “B”, … “H”]
delegate: DisplayTheLetter { … }
}
EmpyItem { }
}
// Rows with cells
Repeater {
   model: 8
   delegate: Row {
   // number
   Text {
// use fixed width and align left the text
// vertical alignment with anchors
anchors.verticalCenter: parent.verticalCenter
text: index+1
   }
   // first row of chess board
   Repeater {
model: chessBoardModel[index]
delegate: ASingleCellOfChessBoard { … }
   }
   }
}
Row {
// bottom letters
EmptyItem { }
Repeater {
model: [“A”, “B”, … “H”]
delegate: DisplayTheLetter { … }
}
EmpyItem { }
}
}

> 
> Thank you.
> 
>> 
>>>> 
>>>> Ciao,
>>>> Gianluca.
>>>> 
>>>>  }
>>>> 
>>>>> On 11 Apr 2016, at 10:49, Igor Mironchik <igor.mironc...@gmail.com 
>>>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>>>> 
>>>>> Look. I want to generate chess board - rectangles (8x8). And I want to 
>>>>> place numbers an letters on the sides. This numbers and letters should be 
>>>>> anchored to centers of rectangles. I.e. I want to have something like:
>>>>> 
>>>>> Text {
>>>>>anchor.horizontalCenter: cell00.horizontalCenter
>>>>> }
>>>>> 
>>>>> ...
>>>>> 
>>>>> On 11.04.2016 12:40, Gian Maxera wrote:
>>>>>> Hello,
>>>>>> I don’t think so.
>>>>>> Why do you need it ? Maybe we can suggest to you an alternative solution.
>>>>>> 
>>>>>> Ciao,
>>>>>> Gianluca.
>>>>>> 
>>>>>> 
>>>>>>> On 11 Apr 2016, at 10:38, Igor Mironchik < 
>>>>>>> <mailto:igor.mironc...@gmail.com>igor.mironc...@gmail.com 
>>>>>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>>>>>> 
>>>>>>> Hello,
>>>>>>> 
>>>>>>> Is it possible to generate id of item in Repeater, for example?
>>>>>>> 
>>>>>>> Thank you.
>>>>>>> ___
>>>>>>> Interest mailing list
>>>>>>> Interest@qt-project.org <mailto:Interest@qt-project.org>
>>>>>>> http://lists.qt-project.org/mailman/listinfo/interest 
>>>>>>> <http://lists.qt-project.org/mailman/listinfo/interest>
>>>>> 
>>>> 
>>> 
>> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id

2016-04-11 Thread Gian Maxera

> On 11 Apr 2016, at 11:14, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> 
> 
> On 11.04.2016 12:57, Gian Maxera wrote:
>> If the Text is inside the generated rectangle into the repeater you don’t 
>> need to generate different Ids, you can do that:
>> 
>> Repeater {
>>   model: 10
>>   delegate: Rectangle {
>>  id: cellRect
>>  Text {
>> anchor.horizontalCenter: cellRect.horizontalCenter
>>  }
>>   }
>> }
>> 
>> Even if the delegate has a fixed id and generated 10 times, QML will resolve 
>> correctly it.
> 
> I want to rewrite my QML with chess board with Repeater. And I want to see 
> the next:
> 
> 

I don’t know your current code, but If I would in your shoes, I will use a 
model representing where to put the chess items and a Grid to lay out the 
items. With Grid Item you can setup a global alignment of the items.
I think it should work in your case.
If you want more help, please share with us some snippet of code so I can 
understand what you need to achieve.

>> 
>> Ciao,
>> Gianluca.
>> 
>>  }
>> 
>>> On 11 Apr 2016, at 10:49, Igor Mironchik < 
>>> <mailto:igor.mironc...@gmail.com>igor.mironc...@gmail.com 
>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>> 
>>> Look. I want to generate chess board - rectangles (8x8). And I want to 
>>> place numbers an letters on the sides. This numbers and letters should be 
>>> anchored to centers of rectangles. I.e. I want to have something like:
>>> 
>>> Text {
>>>anchor.horizontalCenter: cell00.horizontalCenter
>>> }
>>> 
>>> ...
>>> 
>>> On 11.04.2016 12:40, Gian Maxera wrote:
>>>> Hello,
>>>> I don’t think so.
>>>> Why do you need it ? Maybe we can suggest to you an alternative solution.
>>>> 
>>>> Ciao,
>>>> Gianluca.
>>>> 
>>>> 
>>>>> On 11 Apr 2016, at 10:38, Igor Mironchik <igor.mironc...@gmail.com 
>>>>> <mailto:igor.mironc...@gmail.com>> wrote:
>>>>> 
>>>>> Hello,
>>>>> 
>>>>> Is it possible to generate id of item in Repeater, for example?
>>>>> 
>>>>> Thank you.
>>>>> ___
>>>>> Interest mailing list
>>>>> Interest@qt-project.org <mailto:Interest@qt-project.org>
>>>>> http://lists.qt-project.org/mailman/listinfo/interest 
>>>>> <http://lists.qt-project.org/mailman/listinfo/interest>
>>> 
>> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
If the Text is inside the generated rectangle into the repeater you don’t need 
to generate different Ids, you can do that:

Repeater {
  model: 10
  delegate: Rectangle {
 id: cellRect
 Text {
anchor.horizontalCenter: cellRect.horizontalCenter
 }
  }
}

Even if the delegate has a fixed id and generated 10 times, QML will resolve 
correctly it.

Ciao,
Gianluca.

 }

> On 11 Apr 2016, at 10:49, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> Look. I want to generate chess board - rectangles (8x8). And I want to place 
> numbers an letters on the sides. This numbers and letters should be anchored 
> to centers of rectangles. I.e. I want to have something like:
> 
> Text {
>anchor.horizontalCenter: cell00.horizontalCenter
> }
> 
> ...
> 
> On 11.04.2016 12:40, Gian Maxera wrote:
>> Hello,
>> I don’t think so.
>> Why do you need it ? Maybe we can suggest to you an alternative solution.
>> 
>> Ciao,
>> Gianluca.
>> 
>> 
>>> On 11 Apr 2016, at 10:38, Igor Mironchik <igor.mironc...@gmail.com> wrote:
>>> 
>>> Hello,
>>> 
>>> Is it possible to generate id of item in Repeater, for example?
>>> 
>>> Thank you.
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
Hello,
I don’t think so.
Why do you need it ? Maybe we can suggest to you an alternative solution.

Ciao,
Gianluca.


> On 11 Apr 2016, at 10:38, Igor Mironchik  wrote:
> 
> Hello,
> 
> Is it possible to generate id of item in Repeater, for example?
> 
> Thank you.
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Strange ordering problem with ComboBox

2016-04-11 Thread Gian Maxera
Hello,
I’m using the ComboBox item of QML with more than two Items with a ListModel 
like that:

ComboBox {
id: rateType
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width*0.9
Component.onCompleted: {
if ( models.appointment.lead == null ) {
rateType.currentIndex = 0
} else if ( models.appointment.lead.type == 'contact' ) 
{
rateType.currentIndex = 0
} else if ( models.appointment.lead.type == 'brochure' 
) {
rateType.currentIndex = 1
} else if ( models.appointment.lead.type == 'tentative' 
) {
rateType.currentIndex = 2
} else if ( models.appointment.lead.type == 'definite' 
) {
rateType.currentIndex = 3
}
}
model:  ListModel {
ListElement {
leadType: 'contact'
leadText: 'Contact only'
}
ListElement {
leadType: 'brochure'
leadText: 'Brochure request'
}
ListElement {
leadType: 'tentative'
leadText: 'Tentative lead'
}
ListElement {
leadType: 'definite'
leadText: 'Definite lead'
}
}
textRole: "leadText"

But the popup menu appearing for select the option contain the elements into a 
different order than ListModel and when you select one of those the ComboBox 
select a different one. In such a way that it seems the index are correct but 
the labels of the popup menu are wrong.

Someone hits this error before ?

I’m using Qt 5.5 for now.

Ciao,
Gianluca.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Very large QRC file

2016-03-23 Thread Gian Maxera
I done various app for Android and iOS … never used QRC.
On Android use “assets” and on iOS use Bundle data.


> On 23 Mar 2016, at 15:57, Jason H <jh...@gmx.com> wrote:
> 
> Not sure. This is an app for a tablet, I've always packaged assets in qrc, 
> because it "just worked". I could try DISTFILES, but I'm unsure how that work 
> on mobile platforms.
> 
> 
>> Sent: Wednesday, March 23, 2016 at 11:41 AM
>> From: "Gian Maxera" <gmax...@gmail.com>
>> To: "Jason H" <jh...@gmx.com>
>> Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
>> Subject: Re: [Interest] Very large QRC file
>> 
>> My absolute rule is Never Never put big files into qrc file.
>> Can you avoid it too ?
>> 
>>> On 23 Mar 2016, at 15:39, Jason H <jh...@gmx.com> wrote:
>>> 
>>> I have a qrc devoted to media: audio and video. It's only about 100 megs 
>>> total of both (2 videos and several languages for each). It results in 
>>> about a 500MB cpp file. It takes 8 gigs to compile, which is what my 
>>> hardware ram is, so I spend a lot of time swapping.
>>> 
>>> Everytime I compile it takes 10 minutes to compile the assets.qrc, even 
>>> though it doesn't change. Is there a way that I can get the build system to 
>>> be more intelligent about building it? 
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>> 
>> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Very large QRC file

2016-03-23 Thread Gian Maxera
My absolute rule is Never Never put big files into qrc file.
Can you avoid it too ?

> On 23 Mar 2016, at 15:39, Jason H  wrote:
> 
> I have a qrc devoted to media: audio and video. It's only about 100 megs 
> total of both (2 videos and several languages for each). It results in about 
> a 500MB cpp file. It takes 8 gigs to compile, which is what my hardware ram 
> is, so I spend a lot of time swapping.
> 
> Everytime I compile it takes 10 minutes to compile the assets.qrc, even 
> though it doesn't change. Is there a way that I can get the build system to 
> be more intelligent about building it? 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Are slots even needed these days?

2016-03-19 Thread Gian Maxera

> On 16 Mar 2016, at 14:24, Nikos Chantziaras  wrote:
> 
> Since in modern Qt you connect signals to functions/lambdas, is there a 
> reason to declare slots anymore?
> 
> In other words, is there any difference between:
> 
>  class Foo: public QObject {
>  Q_OBJECT
> 
>  public slots:
>  void bar();
>  };
> 
> and:
> 
>  class Foo: public QObject {
>  Q_OBJECT
>  public:
> 
>  void bar();
>  };
> 
> I can connect to Foo::bar either way. If I don't intend to ever use the 
> old-style connect syntax, is there a reason to have "public slots:" anymore?

One reason that for me it’s fundamental: Readability of your code !!!

Even if it wouldn’t necessary to declare “public slots”, I really strong advice 
to use “slots” because it explicitly say what part of your interface are 
supposed to be attached to a signal and what part not.

It’s very common on my C++ code that only a subset of method are mean to be 
attached to a signal, so make this distinction clear help to understand the 
code and debug it more easily.

Then, I don’t know if there is a real difference on connecting to a function or 
to a explicitly declared slot. But for sure, you cannot use always lambdas. So 
methods acting as slot are necessary.

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Can I access dynamic properties defined in C++ into QML ?

2016-03-11 Thread Gian Maxera
Hello,
If I set a dynamic properties from C++:
void CloudModel::setPropertiesFromJson( QJsonObject json ) {
foreach( QString key, json.keys() ) {
QJsonValue value = json[key];
setProperty( key.toLatin1(), value.toVariant() );

then, I cannot access any of these new properties from QML side even if 
CloudModel has been exposed to QML with qmlDeclareType.

Is this an intended behaviour or Am I doing something wrong ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Dynamic translations for mobile apps at runtime?

2016-03-03 Thread Gian Maxera
Hello Jason,
I got the same issue some times ago … and I found that it’s possible to use the 
translation feature of Qt … that seems static, but it’s not.
And localize.biz it’s a wonderful site that allow you to modify Qt translation 
files directly on web and download the updated one.

The trick to achieve (summarized) is the following:
Somewhere in your code maintain and update from remote an array of Translators:
translators["en"] = new QTranslator(this);
translators["en"]->load( "tr_en", commonPath()+"/translations" );
translators["de"] = new QTranslator(this);
translators["de"]->load( "tr_de", commonPath()+"/translations" );
translators["fr"] = new QTranslator(this);
translators["fr"]->load( "tr_fr", commonPath()+"/translations" );
translators["ru"] = new QTranslator(this);
translators["ru"]->load( "tr_ru", commonPath()+"/translations" );
You can change these entry with new files downloaded at runtime.

Then you implement a method that you call at runtime for changing the 
translator, something like that:

void Backend::selectLanguage( QString language ) {
foreach( QString lang, translators.keys() ) {
if ( lang == language ) {
qApp->installTranslator( translators[lang] );
} else {
qApp->removeTranslator( translators[lang] );
}
}
this->language = language;
emit languageChanged();
}

And then there is the final trick:
You create a “fake” property that is always an empty string but it’s binded to 
languageChanged signal:

Q_PROPERTY( QString es READ getES NOTIFY languageChanged )

And (the most annoying part), append this empty string to all string you want 
to change at runtime like that:

qsTr("NEWSHUB")+backend.es

And close the loop.

What will happen is the following: the translator change at runtime and you 
trigger a languageChanged that trigger an update of all string that got 
backend.es appended that trigger the call of qsTr that take the new translation 
from the new translator.

Ciao,
Gianluca.


> On 3 Mar 2016, at 15:51, Jason H  wrote:
> 
> First, I'm not talking about the standard translation features of Qt. Those 
> are static - the translation file is generated and deployed with the app. I 
> now need to support an ever-changing list of translations. I want my mobile 
> app to download the current set of translations and use that. In addition, it 
> would be nice if it was some kind of open format. We have a web app where 
> these will be maintained, because they need to be shared with the web. The 
> web is backed by a database, and exporting these to JSON would be ideal, 
> along with Javascript versions for the Web UI, so we don't have to create and 
> maintain two translation systems. 
> 
> 
> What support is there for this?
> 
> 
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to hide keyboard while clicking outside of keyboard in qml

2016-02-24 Thread Gian Maxera
Hello,
I do in this way:
 - add a MouseArea covering the entire screen that got a z level lower than any 
other input area (like TextArea)
 - on the onClicked I just call: Qt.inputMethod.hide() and the keyboard will 
close is you click outside any other active elements.

Ciao,
Gianluca.


> On 24 Feb 2016, at 09:32, 黄裔  wrote:
> 
> I use TextArea as input in qml file. When clicking TextArea, keyboard pops 
> up. But the keyboard could not hide while clicking outside of it. Whether 
> there is a method or any API in qml can resolve this problem conveniently?
> 
> thanks.
> Yi
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QML Video cannot open remote url on Android ?!?!?

2016-01-19 Thread Gian Maxera
Hello,
is it possible that on Android devices the Video QML item does not support 
source with https protocol ??
On iOS it works perfectly, while on Android I get this error:

 D/MediaPlayer( 8516): java.io.FileNotFoundException: No content provider: 
https://afdc1d5f7fc181fca110-0b1385a62d762ade5ff0a8631476a6a0.ssl.cf3.rackcdn.com/render.mp4

Why ??

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QtAndroidMediaPlayer not playing remote HTTP files

2016-01-19 Thread Gian Maxera
Hello,
I’ve just opened a bugs on QtAndroidMediaPlayer … I hope it's just me doing 
something wrong :-)
https://bugreports.qt.io/browse/QTBUG-50539 


Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] is this a bug on QMediaPlayer on Android ?

2016-01-13 Thread Gian Maxera
Hello,
my app crash when trying to play a sound with QMediaPlayer on Android.
This is the error:

No implementation found for void 
org.qtproject.qt5.android.multimedia.QtAndroidMediaPlayer.onStateChangedNative(int,
 long)

I’m using Qt 5.5.1

Ciao,
Gianluca.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] User comments on web pages?

2016-01-12 Thread Gian Maxera

> On 12 Jan 2016, at 15:11, André Somers  wrote:
> 
> 
> 
> Op 12/01/2016 om 15:57 schreef Jason H:
>> There are a few things I'd like to add to the documentation, but the barrier 
>> to entry is too high.
>> I'm wondering if we could allow comments by users (or those with bugreports 
>> account, or has an an account and is authorized) to be able to comment on 
>> the online help? I found the PHP comments helpful, when they were not 
>> completely off-base (let's face it, it's PHP :-))
>> 
>> It would also be cool is QtCreator could fetch these (assuming it ends up 
>> happening)
> 
> This functionality used to exist, but it was scrapped when the move to the 
> new website happened. There was lots of valuable contents there, and I know I 
> for one was quite pissed off that my contributions there were no longer 
> available. So, it is unfortunate, but don't count on this happening any time 
> soon.

I use a lot Qt Assistant … so, never knew such comments were on the old website.

I really like the idea to see the comments on Qt Assistant … I hope in the 
future there will be a way to see user’s comments directly into Qt Assistant… 
but it’s not easy. How can you manage multi-languages ?


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] iOS Violation constraint using WebView

2015-12-04 Thread Gian Maxera
Hello,
I’m using the same approach of the example for viewing Youtube video using 
mobile WebView, but I’m getting a strange error on iOS 9
I can press play and the video start to play. The video go to fullscreen and I 
can rotate the device to landscape but when I do I got the following error:

Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one 
you don't want. 
Try this: 
(1) look at each constraint and try to figure out which you 
don't expect; 
(2) find the code that added the unwanted constraint or 
constraints and fix it. 

Now, because I’m using QML for my app the debug information and the suggestion 
does not provide me any clue at all on how to solve the problem.
Please, someone can help me on this ?

Ciao,
Gianluca.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to change Android web setting of underlying webview ?

2015-11-20 Thread Gian Maxera
I added to the Java Activity a method that traverse all child looking for 
WebView … and when found it change the settings.

Not general purpose solution … but it works for me.


> On 20 Nov 2015, at 16:35, Jason H <jh...@gmx.com> wrote:
> 
> I think you need to move to WebEngine ?
> 
> 
>> Sent: Thursday, November 19, 2015 at 10:27 AM
>> From: "Gian Maxera" <gmax...@gmail.com>
>> To: interest <interest@qt-project.org>
>> Subject: [Interest] How to change Android web setting of underlying webview ?
>> 
>> Hello,
>> I need to change on Android the web settings of the Android WebView used by 
>> the QML WebView element.
>> There is a trick to get access to the java WebView used by QML WebView ?
>> 
>> Ciao,
>> Gianluca.
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to change Android web setting of underlying webview ?

2015-11-19 Thread Gian Maxera
Hello,
I need to change on Android the web settings of the Android WebView used by the 
QML WebView element.
There is a trick to get access to the java WebView used by QML WebView ?

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Animating a gradient

2015-11-18 Thread Gian Maxera
Ok, that’s explain also because onPositionChanged does not work.
The property has no signal notify changes. So, it means you cannot do what you 
want.

So, my workaround is:
 - define a property and animate this property
 - refer this property into gradient

Rectangle {
  id: myRect
  property real gradPosition: 0.98
  gradient: Gradient {
  GradientStop{ … ; position: myRect.gradPosition }
 …

Ciao,
Gianluca.


> On 18 Nov 2015, at 15:20, Jason H  wrote:
> 
> A fantastic suggestion! However when I tried it I got:
> QQmlExpression: Expression qrc:/NextBar.qml:33:40 depends on non-NOTIFYable 
> properties:
>QQuickGradientStop::position
> 
> Does anyone know why these aren't NOTIFYable?
> 
> 
>> Sent: Tuesday, November 17, 2015 at 4:16 PM
>> From: Gianluca 
>> To: "Jason H" 
>> Cc: "interest@qt-project.org" 
>> Subject: Re: [Interest] Animating a gradient
>> 
>> Hello Jason,
>> why you don’t simple use property binding ?
>> 
>> GradientStop { id: gs2; position: gs1.position+0.1; color: "dodgerblue" }
>> 
>> and remove completely onPositionChanged
>> 
>> Ciao,
>> Gianluca.
>> 
>> 
>> Il giorno 17/nov/2015, alle ore 20:39, Jason H  ha scritto:
>> 
>>> I want to animate a gradient, but onPositionChanged gives an error, even 
>>> though I can animate it. What am I doing wrong?
>>> 
>>> 
>>> Item {
>>> property alias color: container.color
>>> Component.onCompleted: anim.start()
>>> Rectangle {
>>> id: container
>>> width: parent.width * .9
>>> height : parent.height / 2
>>> anchors.centerIn: parent
>>> Rectangle {
>>> anchors.centerIn: parent
>>> width: container.height /2
>>> height: container.width
>>> rotation: -90
>>> gradient:Gradient {
>>> GradientStop { id: gs0; position: 0.00; 
>>> color: "dodgerblue" }
>>> GradientStop {
>>> id: gs1;
>>> position: 0.98;
>>> color: "white";
>>> onPositionChanged: { // Cannot 
>>> assign to non-existent property "onPositionChanged"
>>> gs2.position = position 
>>> +.01
>>> }
>>> }
>>> GradientStop { id: gs2; position: 0.99; 
>>> color: "dodgerblue" }
>>> GradientStop { id: gs3; position: 1.00; 
>>> color: "dodgerblue" }
>>> }
>>> }
>>> }
>>> 
>>> NumberAnimation {
>>> id: anim
>>> target: gs1
>>> property: "position"
>>> duration: 2000
>>> easing.type: Easing.InOutQuad
>>> loops: Animation.Infinite
>>> from: .98
>>> to: 0
>>> }
>>> }
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>> 
>> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] StackView weirdness

2015-11-17 Thread Gian Maxera
Sorry, I don’t get it.
What do you mean ?


> On 17 Nov 2015, at 14:39, Jason H <jh...@gmx.com> wrote:
> 
> Doh, thanks!
> 
> With that, I can't replicate either previous behavior.
> 
>> Sent: Tuesday, November 17, 2015 at 9:38 AM
>> From: "Gian Maxera" <gmax...@gmail.com>
>> To: "Jason H" <jh...@gmx.com>
>> Cc: Interest@qt-project.org
>> Subject: Re: [Interest] StackView weirdness
>> 
>> Hello Jason,
>> first thing I’ll try if in your shoes:
>> - explicity set witdh and height on the stackView. I found weird problems on 
>> stack transitions when the width and height are not set explicitly
>> 
>> Ciao,
>> Gianluca.
>> 
>> 
>>> On 17 Nov 2015, at 14:36, Jason H <jh...@gmx.com> wrote:
>>> 
>>> // main.qml -:
>>> import QtQuick 2.5
>>> import QtQuick.Controls 1.4
>>> 
>>> ApplicationWindow {
>>> visible: true
>>> width: 480
>>> height: 720
>>> 
>>> // comment out StackView to make it work, when doing so, uncomment 
>>> visible: true for LoginScreen (default visible false)
>>> StackView {
>>> id: stackView
>>> initialItem: loginScreen
>>> }
>>> 
>>> LoginScreen {
>>> id: loginScreen
>>> width: parent.width
>>> height: parent.height
>>> // visible: true
>>> }
>>> 
>>> 
>>> }
>>> 
>>> // LoginScreen.qml --:
>>> import QtQuick 2.5
>>> 
>>> Rectangle {
>>> id: screen
>>> visible: false
>>> Column {
>>> anchors.top: parent.top
>>> anchors.horizontalCenter: parent.horizontalCenter
>>> anchors.margins: 100
>>> }
>>> Column {
>>> anchors.centerIn: parent
>>> width: screen.width * .8
>>> spacing: 10
>>> Rectangle {
>>> border.width: 1
>>> width:  parent.width
>>> height: username.height   * 1.1
>>> anchors.margins: 50
>>> TextInput {
>>> anchors.centerIn: parent
>>> anchors.margins: 50
>>> id: username
>>> width: parent.width
>>> height: implicitHeight
>>> font.pixelSize: 20
>>> text: "Username"
>>> color: "grey"
>>> 
>>> }
>>> }
>>> Rectangle {
>>> border.width: 1
>>> width: parent.width
>>> height: password.height * 1.1
>>> TextInput {
>>> anchors.centerIn: parent
>>> id: password
>>> width: parent.width
>>> height: implicitHeight
>>> font.pixelSize: 20
>>> text: "Password"
>>> color: "grey"
>>> }
>>> }
>>> Rectangle {
>>> color: "black"
>>> width: parent.width
>>> height: loginText.implicitHeight * 2
>>> border.width: 1
>>> anchors.horizontalCenter: parent.horizontalCenter
>>> Text {
>>> id: loginText
>>> anchors.centerIn: parent
>>> width: implicitWidth
>>> height: implicitHeight
>>> text: "LOGIN"
>>> color: "white"
>>> 
>>> } //text
>>> } //rect
>>> Text {
>>> anchors.horizontalCenter: parent.horizontalCenter
>>> width: implicitWidth
>>> height:

Re: [Interest] StackView weirdness

2015-11-17 Thread Gian Maxera
Hello Jason,
first thing I’ll try if in your shoes:
 - explicity set witdh and height on the stackView. I found weird problems on 
stack transitions when the width and height are not set explicitly

Ciao,
Gianluca.


> On 17 Nov 2015, at 14:36, Jason H  wrote:
> 
> // main.qml -:
> import QtQuick 2.5
> import QtQuick.Controls 1.4
> 
> ApplicationWindow {
>   visible: true
>   width: 480
>   height: 720
> 
>   // comment out StackView to make it work, when doing so, uncomment 
> visible: true for LoginScreen (default visible false)
>   StackView {
>   id: stackView
>   initialItem: loginScreen
>   }
> 
>   LoginScreen {
>   id: loginScreen
>   width: parent.width
>   height: parent.height
>   // visible: true
>   }
> 
> 
> }
> 
> // LoginScreen.qml --:
> import QtQuick 2.5
> 
> Rectangle {
>   id: screen
>   visible: false
>   Column {
>   anchors.top: parent.top
>   anchors.horizontalCenter: parent.horizontalCenter
>   anchors.margins: 100
>   }
>   Column {
>   anchors.centerIn: parent
>   width: screen.width * .8
>   spacing: 10
>   Rectangle {
>   border.width: 1
>   width:  parent.width
>   height: username.height   * 1.1
>   anchors.margins: 50
>   TextInput {
>   anchors.centerIn: parent
>   anchors.margins: 50
>   id: username
>   width: parent.width
>   height: implicitHeight
>   font.pixelSize: 20
>   text: "Username"
>   color: "grey"
> 
>   }
>   }
>   Rectangle {
>   border.width: 1
>   width: parent.width
>   height: password.height * 1.1
>   TextInput {
>   anchors.centerIn: parent
>   id: password
>   width: parent.width
>   height: implicitHeight
>   font.pixelSize: 20
>   text: "Password"
>   color: "grey"
>   }
>   }
>   Rectangle {
>   color: "black"
>   width: parent.width
>   height: loginText.implicitHeight * 2
>   border.width: 1
>   anchors.horizontalCenter: parent.horizontalCenter
>   Text {
>   id: loginText
>   anchors.centerIn: parent
>   width: implicitWidth
>   height: implicitHeight
>   text: "LOGIN"
>   color: "white"
> 
>   } //text
>   } //rect
>   Text {
>   anchors.horizontalCenter: parent.horizontalCenter
>   width: implicitWidth
>   height: implicitHeight
>   text: "(?) Forgot Password"
>   color: "dodgerblue"
>   }
>   } //column
>   Column {
>   anchors.horizontalCenter: parent.horizontalCenter
>   anchors.bottom: parent.bottom
>   anchors.bottomMargin: 25
> 
>   Text {
>   anchors.horizontalCenter: parent.horizontalCenter
>   text: "Tell me more"
>   color: "dodgerblue"
>   anchors.bottomMargin: 500
>   }
>   } //column
> } //rect
> 
> // end of source ---
> 
>> Sent: Tuesday, November 17, 2015 at 2:22 AM
>> From: Gianluca 
>> To: jh...@gmx.com
>> Cc: Interest@qt-project.org
>> Subject: Re: [Interest] StackView weirdness
>> 
>> Can you post some part of your code.
>> 
>> 
>> Il giorno 17/nov/2015, alle ore 02:51, jh...@gmx.com ha scritto:
>> 
>>> I've been using stackview a while now.  I started a new project with  
>>> desktop osx 5.5.1. I laid out the UI,  made it a component,  then added a 
>>> stack view with it set to the initial item set to that component.  The UI 
>>> appeared for a second then disappeared.  The app was still running.  I 
>>> fiddled with it a bit,  if I fixed the disappearing problem,  then it 
>>> didn't layout the  UI correctly.  
>>> 
>>> Anyone have any idea what is going on?
>>> ___
>>> Interest mailing list

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Gian Maxera
Are you sure that in some way it’s not child of itself ?
Qt automatically destroy all children of an QObject … and I really don’t know 
how safe is Qt to assign itself as child.

Ciao,
Gianluca.


> On 9 Nov 2015, at 15:55, Etienne Sandré-Chardonnal <etienne.san...@m4x.org> 
> wrote:
> 
> Dear Gian,
> 
> I have checked that of course. But this is not the case, the destructor has 
> been reduced to a single call to qDebug (see my other mail) and the error 
> persists.
> Also, when I set a breakpoint on the qDebug line, the debugger halts on the 
> second call (both are already in the stack) which is again very suprising.
> 
> I use the debugger often and never had any problem like that before.
> 
> Cheers,
> 
> Etienne
> 
> 
> 
> 2015-11-09 16:43 GMT+01:00 Gian Maxera <gmax...@gmail.com 
> <mailto:gmax...@gmail.com>>:
> 
> > On 9 Nov 2015, at 15:38, Konstantin Tokarev <annu...@yandex.ru 
> > <mailto:annu...@yandex.ru>> wrote:
> >
> >
> >
> > 09.11.2015, 18:22, "Etienne Sandré-Chardonnal" <etienne.san...@m4x.org 
> > <mailto:etienne.san...@m4x.org>>:
> >> Dear all,
> >>
> >> I am debugging an app which crashes when an object is being deleted. The 
> >> debuggers halt on a segmentation fault inside QObject destructor. The 
> >> object deletion was requested by a call to deleteLater()
> >>
> >> Here is what I get in the stack trace:
> >>
> >> 0QObject::~QObjectqobject.cpp9930x762c7580
> >> 1RendererInterface::~RendererInterfacerendererinterface.cpp119 
> >>0x60664f
> >> 2RendererInterface::~RendererInterfacerendererinterface.cpp137 
> >>0x60667e
> >> 3qDeleteInEventHandlerqobject.cpp43910x762d06e5
> >>
> >> How is it possible to have the destructor twice in the stack?? At the 
> >> beginning I was thinking this was a GDB bug (GDB/MinGW under windows is 
> >> buggy) but I get the same result when compiling the app under linux.
> >>
> >> Any idea how this can happen?
> >
> > Answer is definitely around lines 119-137 of rendererinterface.cpp
> 
> 
> You are calling delete on the same object into the destructor. You are doing 
> something like that:
> 
> delete this
> 
> inside the destructor.
> 
> Maybe there is some internal variable that got the “this” value and force the 
> object to try to destroy itself.
> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Gian Maxera

> On 9 Nov 2015, at 15:38, Konstantin Tokarev  wrote:
> 
> 
> 
> 09.11.2015, 18:22, "Etienne Sandré-Chardonnal" :
>> Dear all,
>> 
>> I am debugging an app which crashes when an object is being deleted. The 
>> debuggers halt on a segmentation fault inside QObject destructor. The object 
>> deletion was requested by a call to deleteLater()
>> 
>> Here is what I get in the stack trace:
>> 
>> 0QObject::~QObjectqobject.cpp9930x762c7580
>> 1RendererInterface::~RendererInterfacerendererinterface.cpp119   
>>  0x60664f
>> 2RendererInterface::~RendererInterfacerendererinterface.cpp137   
>>  0x60667e
>> 3qDeleteInEventHandlerqobject.cpp43910x762d06e5
>> 
>> How is it possible to have the destructor twice in the stack?? At the 
>> beginning I was thinking this was a GDB bug (GDB/MinGW under windows is 
>> buggy) but I get the same result when compiling the app under linux.
>> 
>> Any idea how this can happen?
> 
> Answer is definitely around lines 119-137 of rendererinterface.cpp


You are calling delete on the same object into the destructor. You are doing 
something like that:

delete this

inside the destructor.

Maybe there is some internal variable that got the “this” value and force the 
object to try to destroy itself.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] subclassed QTimer

2015-11-03 Thread Gian Maxera
Sorry … your code seems weird from my point of view.
Why are you subclassing QTimer and not just use it  as it is ??


> On 3 Nov 2015, at 13:24, Daniel França  wrote:
> 
> If still don't work with the Q_OBJECT macro, maybe trying with 
> setTimerType(Qt::PreciseTimer)?
> 
> Em ter, 3 de nov de 2015 às 14:20, Frank Hemer  > escreveu:
> Hi René,
> 
> On Tuesday 03 November 2015 14:13:46 René J.V. Bertin wrote:
> > Hi,
> >
> > I wanted to add a quick timer to an editor class to check the state of the
> > various items that editor can handle. It'd be cumbersome to subclass the
> > edit items to add a timeout slot to them, or to extend the editor class so
> > a timeout slot would get called with the appropriate item. The easiest way
> > seemed to be to subclass QTimer:
> >
> > class QItemTimer : public QTimer {
> > public:
> >   QItemTimer(QObject *parent, Item *item)
> >
> >   : QTimer(parent)
> >
> >   {
> >   _item = item;
> >   }
> > public slots:
> >   void fired();
> > protected:
> >   Item *_item;
> > };
> >
> > and then do
> >
> >   QItemTimer *t = new QItemTimer(0, _item);
> >   connect(t, SIGNAL(timeout()), t, SLOT(fired()));
> >   t->start(1000);
> >   timerList.append(t);
> >
> > but as far as I can tell my fired slot isn't being called.
> >
> > I'm probably overlooking something obvious?
> 
> I'm missing the Q_OBJECT macro
> 
> Frank
> ___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] A bug on QtAndroidMediaPlayer ?

2015-11-03 Thread Gian Maxera
Hello,
I’m trying to use QML Video item on Android and I got this error:

" No implementation found for void 
org.qtproject.qt5.android.multimedia.QtAndroidMediaPlayer.onStateChangedNative”

It seems that JNI cannot find the implementation of that method.

Is it a bug ?? Someone found already ?

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Commercial license for embedded project

2015-11-02 Thread Gian Maxera
Daniel, I agree with you.
An even worst, now all the website offering a library competing with Qt as a 
clear pricing table with all information.
I really don’t understand why Qt decided so.
I remember the old website of Qt… on the menu there was a “Pricing” entry and a 
clear page with all prices. Was so clear. Why they removed that I don’t know… 
and no one on this mailing list got an answer. We asked various time and no 
answer at all about this strange decision that seems to not improve the Qt 
clients.

I always remain with Qt because I know Qt for a long time and I know how good 
is its products … but I found difficult to show to my colleques because the new 
website it’s so confused, lacks of pricing table, lacks of examples :-(

Ciao,
Gianluca.


> On 2 Nov 2015, at 10:11, Daniel França  wrote:
> 
> This is not a good solution, most of the people will simple give up as they 
> can't find a simple information as that clearly in the website.
> I would have give up if I didn't know about Qt before.
> 
> 
> 
> Em dom, 1 de nov de 2015 às 23:06, mark diener  > escreveu:
> Peter:
> 
> You can contact directly by phone any office of Qt worldwide and they have 
> sales people that will answer your questions about pricing.
> 
> md
> 
> 
> On Sat, Oct 31, 2015 at 5:05 PM, Peter Kümmel  > wrote:
> Does anybody know the price of a commercial Qt license for an embedded 
> project?
> I tried to get an answer via the qt.io  web-formular multiple 
> times but got no answer.
> 
> We wanna link Qt statically to reduce the binary size. When using 
> link-time-optimization
> we could shrink the binary size to nearly a half. Does anyone have more 
> experience on this?
> 
> Many thanks,
> Peter
> 
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to run a custom command after dSYM generation for iOS ?

2015-10-29 Thread Gian Maxera
:-( So, there is no alternative but manually tweak the generated Xcode :-(

> On 29 Oct 2015, at 14:23, Igor Mironchik <igor.mironc...@gmail.com> wrote:
> 
> Hi,
> 
> 10/29/2015 12:29 PM, Gustavsen Richard пишет:
>>> I try QMAKE_POST_LINK … but it’s executed just one step before the 
>>> generation of dSYM :-(
>>> So, I need something like QMAKE_POST_POST_LINK :-P
>> Then your out of luck :) There is no such thing in QMake (that will affect 
>> the Xcode project).
>> What you can do is to manually create an extra target in Xcode that runs 
>> your script, and say that the target depends on the application target to 
>> build first. The problem is that as soon as you rerun qmake, it will be 
>> wiped out again.
> 
> I did exactly the same one... And I found only one solution: define 
> QMAKE_POST_LINK in qmake .pro file. And after generating XCode project I drag 
> and drop this QtPostLink to the end of list
> 
> 
>> 
>> -Richard
>> 
>>> On 28 Oct 2015, at 14:23, Gustavsen Richard 
>>> <richard.gustav...@theqtcompany.com> wrote:
>>> 
>>> Hi!
>>> 
>>> 1. You can do:
>>> QMAKE_XCODE_DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
>>> 
>>> 2. You can try to use:
>>> QMAKE_POST_LINK=""
>>> 
>>> -Richard
>>> 
>>> 
>>> Fra: Interest <interest-boun...@qt-project.org> på vegne av Gian Maxera 
>>> <gmax...@gmail.com>
>>> Sendt: 28. oktober 2015 13:00
>>> Til: interest
>>> Emne: [Interest] How to run a custom command after dSYM generation for  iOS 
>>> ?
>>> 
>>> Hello,
>>> I need to do 2 things:
>>> 1) setup the iOS compilation to always create dSYM for all configuration. 
>>> The default is not to generate dSYM.
>>> 2) run a custom command after the dSYM has been created.
>>> 
>>> Anyone know how to do that ?
>>> 
>>> Thanks,
>>> Gianluca.
>>> 
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to deploy an app to use Qt Quick 2D Renderer?

2015-10-28 Thread Gian Maxera
For me it simple means that you have to define the environment variable into 
your operating system.

On Mac and Linux you can change the environment variable just using export from 
the terminal.

So, try this if your are on Mac or Linux like OS from terminal:

export QMLSCENE_DEVICE=softwarecontext
./yourAppExecutable

On windows like OS, you have to go into system settings and set up an 
enviroment variable.

Ciao,
Gianluca.


> On 28 Oct 2015, at 11:44, Nuno Santos <nunosan...@imaginando.pt> wrote:
> 
> Documentation says:
> 
> "To use Qt Quick 2D Renderer add the following to your run environment” and 
> not build environment 
> 
> From my understanding this seems to rely on a independent module that needs 
> to be built.
> 
> Is this valid or Windows and Mac OSX?
> 
> Nuno
> 
>> On 28 Oct 2015, at 11:36, Gian Maxera <gmax...@gmail.com 
>> <mailto:gmax...@gmail.com>> wrote:
>> 
>> From the documentation, it seems that you just need to setup the environment 
>> variable and nothing else is required during build.
>> Did you try ?
>> 
>> Ciao,
>> Gianluca.
>> 
>> 
>>> On 28 Oct 2015, at 11:34, Nuno Santos <nunosan...@imaginando.pt 
>>> <mailto:nunosan...@imaginando.pt>> wrote:
>>> 
>>> Hi,
>>> 
>>> I have a simple app which in some systems cannot run due to the lack of 
>>> OpenGL support. 
>>> 
>>> Since the app is an utility, very simple, I don’t need computing power. I 
>>> think Qt Quick 2D Renderer is great solution for this problem. 
>>> 
>>> The question is. What do I need to do in order to deploy the app using Qt 
>>> Quick 2D Renderer? 
>>> 
>>> The documentation doesn’t tell much about this:
>>> 
>>> http://doc.qt.io/QtQuick2DRenderer/index.html 
>>> <http://doc.qt.io/QtQuick2DRenderer/index.html>
>>> 
>>> What am I missing?
>>> 
>>> Thanks,
>>> 
>>> Regards,
>>> 
>>> Nuno
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org <mailto:Interest@qt-project.org>
>>> http://lists.qt-project.org/mailman/listinfo/interest 
>>> <http://lists.qt-project.org/mailman/listinfo/interest>
>> 
> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to deploy an app to use Qt Quick 2D Renderer?

2015-10-28 Thread Gian Maxera
From the documentation, it seems that you just need to setup the environment 
variable and nothing else is required during build.
Did you try ?

Ciao,
Gianluca.


> On 28 Oct 2015, at 11:34, Nuno Santos  wrote:
> 
> Hi,
> 
> I have a simple app which in some systems cannot run due to the lack of 
> OpenGL support. 
> 
> Since the app is an utility, very simple, I don’t need computing power. I 
> think Qt Quick 2D Renderer is great solution for this problem. 
> 
> The question is. What do I need to do in order to deploy the app using Qt 
> Quick 2D Renderer? 
> 
> The documentation doesn’t tell much about this:
> 
> http://doc.qt.io/QtQuick2DRenderer/index.html 
> 
> 
> What am I missing?
> 
> Thanks,
> 
> Regards,
> 
> Nuno
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to set iOS deployment target ?

2015-10-28 Thread Gian Maxera
Hello,
I have to set up the minimum deployment target to iOS 7.0 … how can I set up 
this into .pro ?

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to set iOS deployment target ?

2015-10-28 Thread Gian Maxera
OOh … THANKS! but ... why it’s not documented ?? … and why Qt Creator does 
not recognize as a valid qmake variable ??

> On 28 Oct 2015, at 11:29, Samuel Gaist  wrote:
> 
> QMAKE_IOS_DEPLOYMENT_TARGET

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to run a custom command after dSYM generation for iOS ?

2015-10-28 Thread Gian Maxera
Hello,
I need to do 2 things:
1) setup the iOS compilation to always create dSYM for all configuration. The 
default is not to generate dSYM.
2) run a custom command after the dSYM has been created.

Anyone know how to do that ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to run a custom command after dSYM generation for iOS ?

2015-10-28 Thread Gian Maxera
I try QMAKE_POST_LINK … but it’s executed just one step before the generation 
of dSYM :-(
So, I need something like QMAKE_POST_POST_LINK :-P


> On 28 Oct 2015, at 14:23, Gustavsen Richard 
> <richard.gustav...@theqtcompany.com> wrote:
> 
> Hi!
> 
> 1. You can do:
> QMAKE_XCODE_DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
> 
> 2. You can try to use:
> QMAKE_POST_LINK=""
> 
> -Richard
> 
> 
> Fra: Interest <interest-boun...@qt-project.org> på vegne av Gian Maxera 
> <gmax...@gmail.com>
> Sendt: 28. oktober 2015 13:00
> Til: interest
> Emne: [Interest] How to run a custom command after dSYM generation for  iOS ?
> 
> Hello,
> I need to do 2 things:
> 1) setup the iOS compilation to always create dSYM for all configuration. The 
> default is not to generate dSYM.
> 2) run a custom command after the dSYM has been created.
> 
> Anyone know how to do that ?
> 
> Thanks,
> Gianluca.
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt iOS without QML?

2015-10-27 Thread Gian Maxera via Interest
Yes, it’s possible. Never done personally, but I saw some old post of 
developers successfully created iOS app using only Qt Widgets.
They said that it’s incredible faster respect to QML, but I think you lack all 
the flexibility of QML.

Ciao,
Gianluca.


> On 27 Oct 2015, at 08:37, Roman Wüger via Interest  
> wrote:
> 
> Hello,
> 
> Is it at the moment possible to develop iOS apps only with Qt Widgets and 
> without any QML?
> 
> Thanks in advance
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt iOS without QML?

2015-10-27 Thread Gian Maxera via Interest
I don’t have any example I can show to you, but I use QML as the ui and C++ as 
the logic part in all my Android and iOS application and it’s very 
straightforward.
There are two steps involved:
1) all C++ classes you want to expose to the UI have to inherit from QObject 
and use Q_PROPERTY for all attributes you want to access from QML and use Slots 
and signals are you normally do in Qt
2) register to QML the classes you want to see into the UI.

The step 2 can be done in different ways. What I normally do is to create a 
singleton C++ class, and I register it into the following way:

qmlengine->rootContext()->setContextProperty( "backend", this );

And then from the QML, I get all other objects passing via properities of the 
Backend singleton:

C++:
Q_PROPERTY( QQmlListProperty aboutLinks READ getAboutLinks NOTIFY 
linksChanged )

QML:
Repeater {
model: backend.aboutLinks
delegate: GoldButton {
property Link link: modelData
anchors.horizontalCenter: 
parent.horizontalCenter
width: aboutTheShow.width*0.8
height: container.buttonHeight
text: link.text
onClicked: 
Qt.openUrlExternally( link.url )
}
}


And thanks to signals and QML property binding … everytime you change the 
aboutLinks property on you C++ logic (for example listening on HTTP for 
notifications), automatically the QML will be updated to reflect the new 
changes.

Of course, there is other ways to do it. This is my way :-)

Ciao,
Gianluca.



> On 27 Oct 2015, at 13:59, NoRulez via Interest  
> wrote:
> 
> The problem is that I don't won't to learn an additional "language" only for 
> ui's.
> 
> I doesn't found really helpful examples which uses QML as the ui and c++ as 
> the logic part.
> 
> Maybe someone have useful links?
> 
> Thanks
> 
> 
>> Am 27.10.2015 um 14:18 schrieb Burak Arslan via Interest 
>> :
>> 
>> 
>> 
>>> On 10/27/15 16:04, Edward Sutton via Interest wrote:
>>> 
>>> However a Qt widget app can be ugly on Android and iOS.  Buttons and
>>> tables appear too small for fingers.  Font size is out of proportion.  
>> 
>> Maybe that'll change with Qt 5.6 when the QT_SCALE_FACTOR support lands?
>> Did anyone play with it?
>> 
>> Burak
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Best way to handle database migrations on QML

2015-10-23 Thread Gian Maxera
Hello Daniel,
I also develop website using Laravel (a PHP framework), and for migration they 
use a special table called “migration” with two column: “migration” and “batch”.
The “migration” is a unique name identifying the migration.
“batch” is a incremental number indicating where the migration has been done.
Suppose in the table you see:

“Migration 1”, 1
“Migration 2”, 1
“Migration 3”, 2
“Migration 4”, 3
“Migration 5”, 3

This it means that your database has been “migrated” three times. The first 
time it apply “Migration 1” and “Migration 2”, the second time it apply 
“Migration 3” and the third time it apply “Migration 4” and “Migration 5”.

I don’t know if it’s a suitable approach for your case. But it seems to me 
simple and effective.

Ciao,
Gianluca.


> On 23 Oct 2015, at 12:21, Daniel França  wrote:
> 
> Any idea?
> 
> Em qui, 22 de out de 2015 às 13:30, Daniel França  > escreveu:
> Hi guys,
> I'm developing a single file ORM library for QML.
> For now it's doing most of the main operations on tables.
> You can see it here, with a basic documentation as well: 
> https://github.com/danielfranca/quickmodel 
> 
> 
> But now I'm trying to implement a way to have migrations, and can't find a 
> good solution for that.
> 
> I don't want anything complex, my goal will be to have something that you 
> simply change the table you want and increase the database version (then the 
> tables gonna be recreated and populated with existent data).
> 
> I know about the changeVersion method on LocalStorage: 
> http://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html 
> 
> 
> But I'm not sure about how to use it.
> i.e:
> I call openDatabaseSync with version 1.0 and create my tables.
> Then I change it to version 1.1 and call changeVersion("1.0", "1.1")
> 
> But the next time my app runs it's not gonna open the database, instead it'll 
> give me an error "Version mismatch", because now the database ini says that 
> the database version is 1.1, not 1.0.
> 
> And if I just change the open parameters to send "1.1", it's not gonna even 
> open in the first run, giving the same error, because ini file will say that 
> the version is 1.0, not 1.1.
> 
> To workaround this issue I'm just playing around with my own version control, 
> and ignoring the builtin QML solution.
> 
> But it looks wrong =/
> Probably I'm missing something and couldn't understand correctly.
> Does anyone can help me find out a good solution?
> 
> Best,
> Daniel
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to create a library with Android java source

2015-10-21 Thread Gian Maxera
Hello,
I’m moving all my common source files into a library and share the code between 
my Qt projects.
The qmake .pri file works fine … but I have problem on how to include also Java 
source files when the target is Android.

I found this blog:
http://imaginativethinking.ca/what-the-heck-how-do-i-share-java-code-between-qt-android-projects/
 


Is there no other alternative ??

To qmake developers: can we make this process easier ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to overcome QNetworkDiskCache limitation

2015-10-19 Thread Gian Maxera
Hello,
the documentation says:

"Currently you cannot share the same cache files with more than one disk cache."

What is the issue on sharing the same cache files ?
How can I overcome this limitation without rewriting from scratch a disk cache ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] MouseArea not working when using QQMLApplicationEngine with Window

2015-10-01 Thread Gian Maxera
Hello,
I’m getting a strange behaviour and I didn’t find what’s wrong in my code.
I developed various app for Android and iOS using Qt and I always used the 
QQuickView and a simple Item as the QML root item.
In this case everything works perfectly.
This is a minimal setup that works for me fine on Android and iOS:

main.cpp:

QQuickView viewer;
backend->setQuickView(  );
viewer.setResizeMode( QQuickView::SizeRootObjectToView );
viewer.setSource( backend->commonPath()+"/qml/main.qml" );
viewer.show();

and into the main.qml:

Item {
anchors.fill: parent

Rectangle {
anchors.fill: parent
color: "steelblue"

Text {
anchors.centerIn: parent
text: "Hello World !!"
}

MouseArea {
anchors.fill: parent
onClicked: {
console.log(“CLICKED”)
}
}
}

Component.onCompleted: {
console.log(“COMPONENT LOADED")
}
}

Now, I would like to give a try to the QQmlApplicationEngine used with a Window 
as root item. It allow me to have potentially more interesting features to use 
into the apps.

But when I change the code in the following way:

main.cpp:

QQmlApplicationEngine engine;
backend->setQmlEngine(  );
engine.load(QUrl(backend->commonPath()+"/qml/main.qml"));


and the main.qml:

Window {
visible: true

Rectangle {
anchors.fill: parent
color: "steelblue"

Text {
anchors.centerIn: parent
text: "Hello World !!"
}

MouseArea {
anchors.fill: parent
onClicked: {
console.log(“CLICKED”)
}
}
Component.onCompleted: {
console.log(“COMPONENT LOADED")
}
}

}

I don’t get any print on the console. No print for component loaded, and no 
print when I touch inside the MouseArea !!
Why ?? What’s happening ?

Ciao,
Gianluca.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.5.x

2015-09-11 Thread Gian Maxera
I’m on Yosemite too, I develop for Android and iOS … and Qt Creator never 
rebuild file that I don’t change.
If I change only one .cpp file, only that file is recompiled in my case.

So, there is something else on your case that triggered this strange behavior.

Ciao,
Gianluca.


> On 11 Sep 2015, at 16:42, rpzrpz...@gmail.com wrote:
> 
> Does anybody know a way to suppress re-compiling ALL the cpp files 
> during each
> 
> Many times, I would like files that are already compiled but have code 
> that is untouched since the last build to just link again instead of 
> recompiling.
> 
> I am on OSX Yosemite building for OSX when I am doing development and 
> initial testing.
> 
> So I make 20 thousand change, rebuild, and re-run to see the result.
> 
> But having the project get rebuilt everytime because I can see the 
> output from the Compile Output window in Qt Creator and there is a lot 
> of unnecessary building.
> 
> You would figure the "Build Project xxx" in the menu would do this
> and "Rebuild Project xxx" would perform a complete rebuild.
> 
> But that is not the case, they both perform a complete recompile on code 
> that was not touched.
> 
> Any ideas?
> 
> md
> 
> -- 
> No spell checkers were harmed during the creation of this message.
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt.io confusing website ... where are the pricing table and how to get indie license ?

2015-07-16 Thread Gian Maxera
Hello,
I don’t know if in this mailing list there is someone in charge of developing 
the Qt.io new website … so, sorry If I’m complaining on the wrong list, but the 
new Qt.io website is a nightmare maze ! :-(
There is no way to understand what Qt does on different platform and license.
Where is a simple pricing table with what’s included or not ? Where is a list 
and a comparison of what it’s included for each commercial license ?
What are the purpose of the wizard-questions that get you to one of the Qt 
products ? The questions are very strange and weird ! 
Why I cannot just select the type of the license I want without answering to 
all these questions ?
How can I get the indie license ? I tried to answer in different ways trying a 
lot of combination … but I always end on two possible outcomes: LGPL free and 
350$/month commercial one !
So, are there only two type of licensing ? So, why just do not clear say that 
on the website ?

Sorry about this complain … but I’m complaining because I love Qt … and the old 
website was so good, so clear, so simple … that this new confusion, obscure 
website does not help me to spread the voice about the powerful of Qt.

Ciao,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt.io confusing website ... where are the pricing table and how to get indie license ?

2015-07-16 Thread Gian Maxera
Let’s focus on the website and Qt … because even If I want to convince a big 
company to move and using Qt … how can I do that if the Qt website is so messy 
and so a disaster ?
I don’t think a company that can afford 350 $/month will be convinced by the Qt 
website that their product is reliable and trustable … because (maybe it’s my 
bias) but everything some commercial doesn’t give me a clear view of their 
product and a clear view of pricing … I always think that his going to cheat me 
in someways. Maybe it’s me … who knows :-)
We don’t know how many commercial licenses Qt sell and how much is the Qt 
profit.
Why don’t share also this information on the website ?
I think is can be very useful for catching new customer to clear state on the 
website something like that: “We have 14500 companies that rely on Qt 
Commercial license”

Ciao,
Gianluca.


 On 16 Jul 2015, at 10:23, Daniel França daniel.fra...@gmail.com wrote:
 
 Ohh, forgot about the extended availability of indie licenses.
 
 Anyway, I do agree 100% with Nuno, most of people I talk don't even know 
 about Qt.
 Qt is an amazing framework, QML is fantastic to build UI, but it's missing 
 the point to let more people know about it and I don't think that removing 
 indie license is a good move in that direction.
 
 
 Em qui, 16 de jul de 2015 às 10:42, Nuno Santos nunosan...@imaginando.pt 
 mailto:nunosan...@imaginando.pt escreveu:
 To all Qt company workers out there:
 
 Please pass this feedback to the right persons in sales and management. This 
 last month has clearly shown that there is a lot on unexploited sales 
 potential out there. 
 
 Having a good product is not enough. You need to know how to sell it! 
 
 Xamarin has a clear pricing table, does Adwords, Facebook Ads, etc. This is 
 something every company does nowadays to sell their products.
 
 Most of the developers I know and talk to don’t even know Qt.
 
 Qt has an AWESOME product but most of the developers don’t know about it. 
 That will not happen by miracle!
 
 You should definitely start organising local events with Qt evangelisers in 
 key cities, to spread the technology and show it’s potential.
 
 And YES, the new website is a complete disaster.
 
 Please exchange the Download top bar navigation by Pricing and be explicit. 
 You have a good example here:
 
 https://store.xamarin.com/ https://store.xamarin.com/
 
 With the indie licenses you don’t earn money in short term, but you are 
 preparing the new wave of developers to evangelise your technology and use it 
 in the future in their successful companies or jobs.
 
 
 Or maybe we are all wrong and Qt Company is already having a huge profit and 
 an exponential growth in users, if that is the case, sorry, we don’t have the 
 data to see the whole picture.
 
 Once again, Qt Rocks! 
 
 Regards,
 
 Nuno
 
 On 16 Jul 2015, at 09:28, Gian Maxera gmax...@gmail.com 
 mailto:gmax...@gmail.com wrote:
 
 Hello,
 I don’t know if in this mailing list there is someone in charge of 
 developing the Qt.io new website … so, sorry If I’m complaining on the wrong 
 list, but the new Qt.io website is a nightmare maze ! :-(
 There is no way to understand what Qt does on different platform and license.
 Where is a simple pricing table with what’s included or not ? Where is a 
 list and a comparison of what it’s included for each commercial license ?
 What are the purpose of the wizard-questions that get you to one of the Qt 
 products ? The questions are very strange and weird ! 
 Why I cannot just select the type of the license I want without answering to 
 all these questions ?
 How can I get the indie license ? I tried to answer in different ways trying 
 a lot of combination … but I always end on two possible outcomes: LGPL free 
 and 350$/month commercial one !
 So, are there only two type of licensing ? So, why just do not clear say 
 that on the website ?
 
 Sorry about this complain … but I’m complaining because I love Qt … and the 
 old website was so good, so clear, so simple … that this new confusion, 
 obscure website does not help me to spread the voice about the powerful of 
 Qt.
 
 Ciao,
 Gianluca.
 
 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest 
 http://lists.qt-project.org/mailman/listinfo/interest
 
 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest 
 http://lists.qt-project.org/mailman/listinfo/interest
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] static build for android and ios

2015-07-14 Thread Gian Maxera
The advantage on mobile is the size of the App.
Qt is made of module, if you compile it statically, you don’t have a giant big 
library, but a lot of static modules.
So, every module link against (at least) QtCore … that means you have a lot of 
duplication of static code to link against it
and the result will be a bigger app full of duplication of object code.

Another advantage is the startup time. A static app is a big .exe to put fully 
on the memory before to start the app. That means if your app is bigger of 40Mb 
at startup your mobile device need to fully load it into memory before start 
the app.
If it’s dynamic link, the library are loaded only when needed. That means, if 
your app is only 2Mb of code, you load at startup only 2Mb and then when some 
features are needed the corresponding library is loaded.



 On 14 Jul 2015, at 04:49, Hamish Moffatt ham...@risingsoftware.com wrote:
 
 On 14/07/15 01:01, Gian Maxera wrote:
 If you can use dynamic link … use dynamic link !! There is only advantages 
 over static link.
 
 
 What advantages on a mobile device? You aren't sharing the libraries 
 with other apps, and you're guaranteed not to get any code stripping...
 
 
 Hamish
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Performance of Qt scripting on iOS

2015-07-14 Thread Gian Maxera
Yes … that’s the reason. Of course having only a dual core does not help.
To avoid bad user experience, I wrap the delegates into Loader items, or the 
whole view into a Loader, and I create a fast overlay displaying a “Loading” 
message that disappear when the Loader complete to load everything.

 On 14 Jul 2015, at 11:37, Nuno Santos nunosan...@imaginando.pt wrote:
 
 Is that the reason for the sluggish performance of Qml delegate instantiation?
 
 My app runs awesomely on Android but no on iOS. Specially regarding ListView 
 delegate installation process. It completely hangs. I have always thought 
 that the main reason was the fact that the Android device is a quad core and 
 the iPad 2 a dual core.
 
 Nuno
 
 On 14 Jul 2015, at 11:34, John C. Turnbull ozem...@ozemail.com.au wrote:
 
 It's well known that iOS does not support executable memory which means that 
 any scripting language would not be able to use a JIT compiler.
 
 Given this, wouldn't it mean that Qt's JavaScript implementation would run 
 like a one legged dog on this platform and therefore be practically unusable?
 
 -jct
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] static build for android and ios

2015-07-13 Thread Gian Maxera
If you can use dynamic link … use dynamic link !! There is only advantages over 
static link.

on iOS, is the Apple policy that forbid that ! :-( Why ??? Maybe because using 
dynamic linking you can embed executables and run them inside the app.
Ehehe… it was a trick I used into an Android app for using ffmpeg from the app. 
:-)

Ciao,
Gianluca.


 On 13 Jul 2015, at 15:57, maitai mai...@virtual-winds.org wrote:
 
 Hello,
 
 Now that I have a nice indie license (thanks again for giving us a grace 
 period), I am wondering whether I should link qt libs for android 
 statically or leave it as it is (bundled in apk)... Is there any 
 advantage (performance for instance) in doing so?
 
 I understood that for iOS anyway qt libs are linked statically, no 
 choice there. Right?
 
 Thanks
 Philippe Lelong
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] RE : Re: Indie Mobil Program terminated?

2015-07-10 Thread Gian Maxera
I was pretty sure that it include the in-app purchase !

When three month ago was near to buy the indie license the big motivation was 
because it was included the in-app purchase.
They removed now ?


 On 10 Jul 2015, at 10:53, maitai mai...@virtual-winds.org wrote:
 
 What is really strange to me is that the indie license specifically targetted 
 on android and ios stores does not include in-app purchases api from qt... we 
 are supposed to do it ourselves and reinvent the wheel on our side.
 
 Maybe we should decide to share that kind of stuff between us outside of qt? 
 
 
  Message d'origine 
 De : John C. Turnbull ozem...@ozemail.com.au 
 Date : 10/07/2015 11:19 (GMT+01:00) 
 À : Gian Maxera gmax...@gmail.com 
 Cc : derrick.hes...@theqtcompany.com, Nuno Santos 
 nunosan...@imaginando.net, interest@qt-project.org 
 Objet : Re: [Interest] Indie Mobil Program terminated? 
 
 It's a starting point for discussion of a whole new pricing model.
 
 The important thing is that everyone should be able to afford to develop with 
 Qt. The Qt Company should benefit if a Qt app makes a million sales and this 
 would be balanced by all those apps which are complete duds.
 
 I know there's more complexity than what I have proposed but as a starting 
 point to a new model where everyone can afford to use Qt will end with a 
 model where developers flock to Qt by the thousands and The Qt Company will 
 remain viable if not extremely successful.
 
 -jct
 
 On 10 Jul 2015, at 18:42, Gian Maxera gmax...@gmail.com 
 mailto:gmax...@gmail.com wrote:
 
 It seems a good idea … but how can you be implemented ? I see big problem of 
 implementation.
 The mobile app world it’s pretty straightforward because the app can be sold 
 only by Apple or Google Play store … and they can take money directly from 
 sales. There is no way for cheat.
 But how Qt company monitorize the sales and ask a bill about that ? It 
 cannot take money directly from sales because we don’t sell app passing 
 through Qt.
 Also, do not forget that Qt is not only mobile. So, how can this schema be 
 applied to embedded world, desktop application, industrial applications, and 
 so on ?? Do not look only at big companies. In the past, I used Qt to create 
 an application that I sold to a small company and this company embed this 
 application in their hardware devices and sold to others distribution 
 companies that they sell to final consumer !! How can you ask me to pay a 
 percentage of revenue ??
 
 Ciao,
 Gianluca.
 
 
 On 10 Jul 2015, at 09:35, John C. Turnbull ozem...@ozemail.com.au 
 mailto:ozem...@ozemail.com.au wrote:
 
 Even better...
 
 Have ONE Qt product which includes all the bells and whistles and all the 
 ports but TWO licenses; an in-house license for those who do not sell their 
 products and a commercial license for those who do.
 
 The in-house license could be sold for about $50 per month and includes 
 support and upgrades.
 
 The commercial license is either free or something nominal like $10 per 
 month plus 5% of sales.
 
 That way *everyone* can afford to use Qt, *everyone* has access to all the 
 features and platform, *nobody* has to worry about lawyers and The Qt 
 Company can make a fortune even if just a few of the resulting apps make it 
 in the big time with massive sales.
 
 It's a win-win-win-win situation!
 
 -jct
 
 On 10 Jul 2015, at 18:13, John C. Turnbull ozem...@ozemail.com.au 
 mailto:ozem...@ozemail.com.au wrote:
 
 Here's something out of left field...
 
 How about you give everyone access to the full commercial version and 
 license of Qt with all the features and the ability to sell through app 
 stores at no cost and then make your money purely based on a proportion of 
 sales revenue?
 
 Something to think about...
 
 On 8 Jul 2015, at 07:47, Nuno Santos nunosan...@imaginando.net 
 mailto:nunosan...@imaginando.net wrote:
 
 Agree…
 
 Nuno Santos
 Founder / CEO / CTO
 www.imaginando.pt http://www.imaginando.pt/
 +351 91 621 69 62
 
 On 07 Jul 2015, at 21:14, m...@rpzdesign.com mailto:m...@rpzdesign.com 
 wrote:
 
 What a perfect example given below by Jason H.
 
 Go ahead and search for a QT competitor product that emphasizes that you 
 talk to your lawyer.
 
 http://www.qt.io/faq/ http://www.qt.io/faq/
 
 Again, its really bad optics when the word lawyer keeps popping up
 and whacking potential customers in the face.
 
 That is causing LOSS of SALES.
 
 Poor John Turnbull below is now spending his money on his
 lawyer or a competitor instead of sending those dollars to QT.
 
 The horse and water analogy applies here.
 
 md
 
 
 On 7/7/2015 1:36 PM, Jason H wrote:
 1. Consult your laywer.
 2. But there is some question if LGPL apps are allowed in the App 
 stores.
 3. I'd get the Indie Mobile for $25/25 (I forget) before August 31 and 
 get
 grandfathered in. This is not advice, but it's what I would do.
 *Sent:* Tuesday, July 07, 2015 at 3:11 PM
 *From:* John C. Turnbull ozem...@ozemail.com.au

Re: [Interest] Indie Mobil Program terminated?

2015-07-06 Thread Gian Maxera
I completely agree with Nuno Santos … and I’m very happy that I got an indie 
license when it got a chance.
I’m regretting my choice to not take one few months ago :-( :-(
I’m very sad because we are a small team, just three people that during the 
night we are working on a video game for mobile platform. I convinced them to 
use Qt to have just one code to maintain, of course we don’t have money to pay 
such a big pricing now.
That means we are dead before to start ! :-( and we wasted months of developing.

I want to be honest. Because we invested so much time on developing with Qt, we 
are truly considering to submit the app on the store with LGPL licence even if 
it’s risky and probably illegal … hope to make enough money to buy a Qt (very 
expensive) license in the future.
This is what Qt wants ? 

I agree with Nuno Santos that the Qt licensing schema is absolutely confusing. 
You don’t have a very nice and clear pricing table … but also there is nowhere 
a clear statement of what you get more when you pay. Honestly, do you think 
that having professional support only justify more than 300$/month ?? Because, 
I don’t see any other thing respect to LGPL version of Qt.

Please, give the possibility to indie developer to submit mobile app to the 
stores. We only needs this and nothing else.

Thanks,
Gianluca.


 On 6 Jul 2015, at 09:45, Nuno Santos nunosan...@imaginando.pt wrote:
 
 Hi,
 
 In one year I have never seen such an hot topic in this list.
 
 One year ago I have founded Imaginando. During the last year I have been 
 telling everyone I know that this could only be possible with Qt. 
 
 It’s not easy to convince people that they should adopt Qt for iOS and 
 Android development, despite the clear advantages of having a single code 
 base for two or more platforms. Now, with this price tag, it’s clearly 
 impossible!
 
 If you had this price tag one year ago. All the work I have been developing 
 from one year now, wouldn’t simply exist. I have developed two apps and a 
 half on a single year and i’m just starting. I’m ALONE and i’m surviving from 
 my SALES. I don’t plan to have investment unless I cannot manage to scale my 
 sales in the next 6 months.
 
 If I wasn’t already a indie developer subscriber, right now, I would be in a 
 very complicated situation.
 
 I also AGREE with many of the statements already shared in this discussion 
 regarding the website. Qt website is a mess regarding licensing and pricing.
 
 There SHOULD be an item on the website clearly saying: PRICING 
 
 This are clear pricing table examples. Qt pricing table is not existent now. 
 The wizard is a complete mess… 
 
 https://parse.com/plans https://parse.com/plans
 https://www.zendesk.com/product/pricing/ 
 https://www.zendesk.com/product/pricing/
 https://www.xero.com/pricing/ https://www.xero.com/pricing/
 http://mailchimp.com/pricing/ http://mailchimp.com/pricing/
 http://www.shopify.com/pricing http://www.shopify.com/pricing
 
 You guys have a GREAT product! You should definitely listen and support your 
 small developers. They are your technology evangelists. Don’t ruin it with 
 awkward pricing strategies. 
 
 Once again: Qt rocks!
 
 Regards,
 
 Nuno Santos
 Founder / CEO / CTO
 www.imaginando.pt http://www.imaginando.pt/
 +351 91 621 69 62
 
 On 06 Jul 2015, at 09:07, Robert Iakobashvili corobe...@gmail.com 
 mailto:corobe...@gmail.com wrote:
 
 Dear Tuukka,
 To sell a product, you need to have it.
 
 When you declared the license, your stock was empty
 since Qt for Android and iOS was too buggy and without many crucial features.
 
 It could be a separate discussion whether Qt for iOS/Android is stable enough
 for production today, but at least many people have started to develop
 their apps
 with a hope that future expected Qt stability and features can deliver
 stable Qt-based applications for iOS and Android.
 
 Let's say you have this product for 1 month, optimistically for 2-3 months
 (many developers to say that even today iOS/Android ports stability
 is not enough to start using it).
 
 Is it enough time to make a judgement?
 
 Qt for Desktop is the best GUI framework for today,
 and I'm confident that in 2-3 years Qt for Mobile will be as lucrative
 as for Desktop.
 
 However, this is not the case today and your product for Mobile is too risky,
 too limited with only enthusiast and early adapters starting to try it.
 
 Even if you restore the Indie license tomorrow, it will take
 some time to convince developers that Qt for iOS/Android is stable enough,
 it will take more time for developers to accomplish their applications
 full of work-arounds
 around Qt-issues and missed features and to start orders.
 
 Please, let your decision makers to look into this very interesting 
 discussion.
 
 Consider making your Indie for Mobile less restrictive i.e.
 with higher threshold like 300 000 or 500 000.
 
 Thanks.
 
 Regards,
 Robert
 
 
 On Thu, Jul 2, 2015 at 7:31 AM, Turunen Tuukka
 

Re: [Interest] Qt 5.5 vs 5.4.2 for iOS and Android: Is It Worth to Upgrade?

2015-07-06 Thread Gian Maxera
I upgraded now to Qt 5.5.
I have a Stackview with a custom transition … and it doesn’t work anymore :-(
I think something changed from Qt 5.4.2 to 5.5 about scaling and/or 
transformation that is not backward compatible :-(


 On 6 Jul 2015, at 16:23, Robert Iakobashvili corobe...@gmail.com wrote:
 
 Thank you for the info.
 Regards,
 Robert
 
 
 On Mon, Jul 6, 2015 at 4:58 PM, Jason H jh...@gmx.com wrote:
 Changes that we provoked into getting into Qt 5.5: (Note we skipped 5.4.2, 
 so two of the three may have showed up in 5.4.2)
 iOS:
 Camera flash now works.
 The multimedia system only requests microphone when needed.  (Or was this in 
 5.4.2?)
 
 Android:
 Allegedy camera focus is fixed.  (Or was this in 5.4.2?)
 
 
 Sent: Sunday, July 05, 2015 at 5:47 AM
 From: Robert Iakobashvili corobe...@gmail.com
 To: interest@qt-project.org interest@qt-project.org
 Subject: [Interest] Qt 5.5 vs 5.4.2 for iOS and Android: Is It Worth to 
 Upgrade?
 
 Gentlemen,
 Which new features and fixes are making it worth
 upgrading to 5.5 from 5.4.2 at iOS or Android?
 
 I'm counting for iOS:
 1. pickup dialogs and images and multimedia files;
 
 Is it anything else you why you believe Qt-5.5 is worth
 considering for iOS and Android?
 
 Thank you.
 
 Regards,
 Robert
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] ListView currentItem not changing (5.4)

2015-07-02 Thread Gian Maxera
The currentIndex does not follow the swipe and scrolling of the list by default
For doing this, you have to set up:

highlightRangeMode: ListView.StrictlyEnforceRange

Ciao,
Gianluca.


 On 2 Jul 2015, at 08:31, Kristoffersen, Even (NO14) 
 even.kristoffer...@honeywell.com wrote:
 
 Try to add the following in your items/delegates:
 
 Component.onCompleted {
   ListView.view.currentIndex = index;
 }
 
 -Even
 
 -Original Message-
 From: interest-bounces+even.kristoffersen=honeywell@qt-project.org
 [mailto:interest-bounces+even.kristoffersen=honeywell.com@qt-
 project.org] On Behalf Of Jason H
 Sent: 1. juli 2015 16:57
 To: interest@qt-project.org
 Subject: [Interest] ListView currentItem not changing (5.4)
 
 I'm trying to use a ListView with a VisualItemModel
 
 The ListView is horizontal and displays three first time help screens. The
 user can swipe left/right between them. Only one is ever on the screen at
 once.
 The user is also provided forward/back buttons.
 
 highlightFollowCurrentItem: true
 snapMode: ListView.SnapToItem
 
 The buttons work. And the swiping works visually, but the buttons and
 swiping cannot be used in combination because the
 onCurrentItemChanged/onCurrentIndexChanged never fires.
 
 How can I know what screen the user has swiped to?
 
 Thanks.
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Indie Mobil Program terminated?

2015-07-02 Thread Gian Maxera

 On 2 Jul 2015, at 15:39, Alejandro Exojo s...@badopi.org wrote:
 
 El Thursday 02 July 2015, m...@rpzdesign.com escribió:
 Please explain how Open Source version can get approved in the IOS 
 Apple Store.
 
 It is a bit blurry why the LGPL version could not be used on Apple's store. 
 See this threads, for example:
 
 http://lists.qt-project.org/pipermail/development/2014-July/017529.html
 
 http://lists.qt-project.org/pipermail/development/2014-August/018129.html
 
 I would not bet my money on redistributing my important app with the LGPL 
 version without asking a lawyer, but for a small Indie application, I would.
 
 After all, there were people who published applications on the Apple store a 
 long, long time ago. They did a port of Qt to iOS on the 4.8 times. And I 
 don't think it was based on the commercial license:
 
 http://www.mediator-software.com/ http://www.mediator-software.com/

I think the big value of the Indie License was the additional add ons like the 
Qt in-app purchases.

I decided to buy an indie license at mid July because I didn’t find nothing 
good as Qt in-app purchase. But now ?!?!


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to know if WebView has an error on loading the page

2015-06-25 Thread Gian Maxera
Hello,
I’m using this http://doc.qt.io/qt-5/qml-qtwebview-webview.html 
http://doc.qt.io/qt-5/qml-qtwebview-webview.html for embedding some simple 
pages into the app.
But I don’t know how to check if there was problems on downloading the page.
For example, if the remote url is not available, or if the device is offline, 
the webview just display a white empty page on iOS without notifying the user 
for the error.

Hello,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Subclassing QQmlComponent for use in QML

2015-06-19 Thread Gian Maxera
Not sure want you need.
If you just need to create your objects from QML, it’s not mandatory to extend 
from QQmlComponent but from QObject.

So, if you create a C++ class derived from QObject called:
class MyNewQML : public QObject 

and you register is with qmlRegisterType

you can write into QML:

MyNewQML {
  ….
}

Ciao,
Gianluca.



 On 19 Jun 2015, at 11:44, Evgeny Grablyk evgeny.grab...@gmail.com wrote:
 
 Hello,
 
 I need a subclass of QQmlComponent that would be usable inside QML
 documents just like a normal Component, in order to have more control
 over the return value of create().
 
 However, simply creating a subclass in C++ and registering it via
 qmlRegisterType() fails: attempting to use the custom component
 results in Cannot assign to non-existent default property error.
 
 I've failed to find any documentation or examples on the topic. Should
 this be possible from user code at all? If so, what is the correct way
 to subclass a QQmlComponent?
 
 Thanks.
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Camera cature ios roated 90 ccw (5.4.1)

2015-06-16 Thread Gian Maxera
I got the same problem on iOS when I capture an image.
The problem arise on iOS because iOS do not rotate the image but it store into 
EXIF metadata how it should be rotated and orientated the image for visualising 
it.
But the Image item of QML (in my case) ignore the EXIF metadata for orientation 
and hence you see the image rotated.
My trick was to rotate the image using iOS api.
I’m sorry, I don’t have the code here. Later during the code I’ll send you my 
function for doing that.

Ciao,
Gianluca.


 On 16 Jun 2015, at 16:22, Daniel França daniel.fra...@gmail.com wrote:
 
 Not sure if it's related, but the autoOrientation for VideoOutput didn't work 
 well for me either.
 I'm waiting for the 5.5 release as I'd other problems with video capture on 
 IOS to test it again.
 
 
 Em ter, 16 de jun de 2015 às 17:22, Daniel França daniel.fra...@gmail.com 
 mailto:daniel.fra...@gmail.com escreveu:
 Not sure if it's related, but the autoOrientation for VideoOutput didn't work 
 well for me either.
 
 Em ter, 16 de jun de 2015 às 16:29, Jason H jh...@gmx.com 
 mailto:jh...@gmx.com escreveu:
 I have a mobile app on iOS and Android. We're new to iOS. Out android app is 
 flawless (provided we don't use 5.4.2 :(
 
 When capturing a image, we capture the preview image, we then display this 
 image in an image element. In android with autoOrientation: true it works 
 fine. In iOS the image is rotated 90 CCW.
 
 Has anyone else seen this?
 Is there a resolution?  (I did google.)
 
 This reminds me of the bug that 5.4.1 fixed in android (and allegedly all 
 others), but was reverted for 5.4.2.
 
 I'm wondering if it is related to: 
 http://stackoverflow.com/questions/29724537/realtime-capture-using-avfoundation-rotated-90%C2%BA-in-avcapturevideopreviewlayer
  
 http://stackoverflow.com/questions/29724537/realtime-capture-using-avfoundation-rotated-90%C2%BA-in-avcapturevideopreviewlayer
 
 Help?
 Thanks.
 
 
 
 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest 
 http://lists.qt-project.org/mailman/listinfo/interest
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] ListElement value cannot be a property script

2015-06-05 Thread Gian Maxera
Hello,
I have a ListElement as following:

ListElement {
name: Alexanderbrfont size=\1\+qsTr(Sales Executive, 
Russia)+/font

And QML complain to load it because I cannot use script as property value for 
ListElement.

But if I write the following:
ListElement {
name: qsTr(Alexanderbrfont size=\1\Sales Executive, 
Russia/font”)

QML can load the ListElement and there no more error.
But I would like to don’t include into translation text the HTML tags and text 
that don’t need to be translated.
So, I can solve the problem and have something similar to the first one that 
comply with ListElement requirements ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] ListElement value cannot be a property script

2015-06-05 Thread Gian Maxera
Thank you. The workaround works.
But now the question is for Qt developers: Is there any possibility that in the 
near future this will be solved without using these kind of workaround that can 
be a annoying with long and complex data ?

Thanks,
Gianluca.


 On 5 Jun 2015, at 12:10, Kristoffersen, Even (NO14) 
 even.kristoffer...@honeywell.com wrote:
 
 Hello,
  
 The way I’ve been working around this limitation is to add the list elements 
 programmatically in a Component.onCompleted: script.
  
 ListModel
 {
 id: example
  
 Component.onCompleted:
 {
append(“name”: Alexanderbrfont 
 size=\1\ + qsTr(Sales Executive, Russia) + /font)
 }
 }
  
 -Even
  
 From: interest-bounces+even.kristoffersen=honeywell@qt-project.org 
 mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org 
 [mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org 
 mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org] On 
 Behalf Of Gian Maxera
 Sent: 5. juni 2015 12:52
 To: interest@qt-project.org mailto:interest@qt-project.org
 Subject: [Interest] ListElement value cannot be a property script
  
 Hello,
 I have a ListElement as following:
  
 ListElement {
name: Alexanderbrfont size=\1\+qsTr(Sales Executive, 
 Russia)+/font
  
 And QML complain to load it because I cannot use script as property value for 
 ListElement.
  
 But if I write the following:
 ListElement {
name: qsTr(Alexanderbrfont size=\1\Sales Executive, 
 Russia/font”)
  
 QML can load the ListElement and there no more error.
 But I would like to don’t include into translation text the HTML tags and 
 text that don’t need to be translated.
 So, I can solve the problem and have something similar to the first one that 
 comply with ListElement requirements ?
  
 Thanks,
 Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to export text to translate for translators ?

2015-06-04 Thread Gian Maxera
Hello,
ok for translating the text and generate translations unit to insert into the 
app I’ll use Qt Linguistic. Until now fine !
But a step before that, is to create a document to send to translators and 
collect those translations.
So the question is how the translators can see the text to translate ?
They are not developers, I cannot ask to them to install Qt because Qt requires 
a development environment. So, it’s not reasonable to a non developer person to 
say: please install Visual Studio (or Xcode) and then install Qt … that in 
total will occupy on your computer a lot of Gb :-S and then use Qt Linguistic.

So, what’s the best approach ?
Is there a way to deploy only Qt Linguistics ? or a way to export the text to 
translate in a format readable without Qt ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Hello Federico,
the problem is that the img tag inside the description has been escaped :-(
So, I cannot access it using a query path :-(
If you look at the content of description so can see that instead of having:
descriptionimg src”…” … /description
I have the image escaped:
descriptionlt;img src=“ … /description

So, I think I need something like that:

XmlRole { name: “img”; query: “fn:somefunction( description/string(), ‘some 
regexp for extract’)” }

But no idea what to use, not event if it’s feasible.

Thanks,
Gianluca.


 On 3 Jun 2015, at 11:46, Federico Buti bacaro...@gmail.com wrote:
 
 ​Hi Gianluca,
 
 depending on the full XML you can query for the description tag and than 
 query for the first img tag with [1], something like this:
 
 
  XmlListModel {
 id: model
 
 query: (/path/to/description/img)[1]
 XmlRole { name: img; query: @src/string() }
 }   
 ​
 
 Here I defined a role for the src attribute as a string.
 Hope that helps.
 
 Cheers,
 
 
 ---
 Federico Buti
 
 On 3 June 2015 at 11:26, Gian Maxera gmax...@gmail.com 
 mailto:gmax...@gmail.com wrote:
 Hello,
 I have an rss feed coming from Tumblr blog page.
 The xml of the feed has into description a lot of html content that I want to 
 remove and keep only the first image I found.
 For example, this is one of the content into description tag:
 
 descriptionlt;img 
 src=http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
  
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif/gt;lt;br/gt;
  lt;br/gt;lt;img 
 src=http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif
  
 http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif/gt;lt;br/gt;
  Paris Marriott Champs Elyseeslt;br/gt;lt;br/gt; lt;img 
 src=http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg
  
 http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg/gt;lt;br/gt;
  lt;br/gt;lt;h2gt;lt;bgt;Marriott Hotels in France Celebrate Earth Hour 
 2015lt;/bgt;lt;/h2gt;lt;pgt;See what happened during Earth Hour 
 celebrations at Marriott hotels in France.lt;/pgt;/description
 
 What I would like is to have a XPath function that return me only the first 
 image url:
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
  
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
 
 How can I do that ?
 
 Thanks,
 Gianluca.
 
 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest 
 http://lists.qt-project.org/mailman/listinfo/interest
 
 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Hello,
I have an rss feed coming from Tumblr blog page.
The xml of the feed has into description a lot of html content that I want to 
remove and keep only the first image I found.
For example, this is one of the content into description tag:

descriptionlt;img 
src=http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
 
http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif/gt;lt;br/gt;
 lt;br/gt;lt;img 
src=http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif
 
http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif/gt;lt;br/gt;
 Paris Marriott Champs Elyseeslt;br/gt;lt;br/gt; lt;img 
src=http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg
 
http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg/gt;lt;br/gt;
 lt;br/gt;lt;h2gt;lt;bgt;Marriott Hotels in France Celebrate Earth Hour 
2015lt;/bgt;lt;/h2gt;lt;pgt;See what happened during Earth Hour 
celebrations at Marriott hotels in France.lt;/pgt;/description

What I would like is to have a XPath function that return me only the first 
image url:
http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
 
http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif

How can I do that ?

Thanks,
Gianluca.___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Thank you for the suggestions.
I resolved passing the full description to a C++ slot on which I used the full 
power of QRegExp to retrieve what I want.

Thanks,
Gianluca.


 On 3 Jun 2015, at 12:11, Federico Buti bacaro...@gmail.com wrote:
 
 Oh. I thought it was an issue related to my mail. :)
 
 I don't know If it is possible to apply some kind of transformations over the 
 XML or if there is a specific way to handle this case. Depending on the way 
 you are you receive the full XML, you can try to call a JS function to polish 
 it via the replace() http://www.w3schools.com/jsref/jsref_replace.asp 
 function and then set the polished XML to the xml property. That's not 
 certainly the most efficient approach but it could work.
 Just my two cents.
 
 Cheers,
 
 ---
 Federico Buti
 
 On 3 June 2015 at 12:57, Gian Maxera gmax...@gmail.com 
 mailto:gmax...@gmail.com wrote:
 Hello Federico,
 the problem is that the img tag inside the description has been escaped :-(
 So, I cannot access it using a query path :-(
 If you look at the content of description so can see that instead of having:
 descriptionimg src”…” … /description
 I have the image escaped:
 descriptionlt;img src=“ … /description
 
 So, I think I need something like that:
 
 XmlRole { name: “img”; query: “fn:somefunction( description/string(), ‘some 
 regexp for extract’)” }
 
 But no idea what to use, not event if it’s feasible.
 
 Thanks,
 Gianluca.
 
 
 On 3 Jun 2015, at 11:46, Federico Buti bacaro...@gmail.com 
 mailto:bacaro...@gmail.com wrote:
 
 ​Hi Gianluca,
 
 depending on the full XML you can query for the description tag and than 
 query for the first img tag with [1], something like this:
 
 
  XmlListModel {
 id: model
 
 query: (/path/to/description/img)[1]
 XmlRole { name: img; query: @src/string() }
 }   
 ​
 
 Here I defined a role for the src attribute as a string.
 Hope that helps.
 
 Cheers,
 
 
 ---
 Federico Buti
 
 On 3 June 2015 at 11:26, Gian Maxera gmax...@gmail.com 
 mailto:gmax...@gmail.com wrote:
 Hello,
 I have an rss feed coming from Tumblr blog page.
 The xml of the feed has into description a lot of html content that I want 
 to remove and keep only the first image I found.
 For example, this is one of the content into description tag:
 
 descriptionlt;img 
 src=http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
  
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif/gt;lt;br/gt;
  lt;br/gt;lt;img 
 src=http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif
  
 http://33.media.tumblr.com/6f1ca4ab1ef3d2504b2da48f2616df6e/tumblr_np213siZRu1tbs1mwo2_400.gif/gt;lt;br/gt;
  Paris Marriott Champs Elyseeslt;br/gt;lt;br/gt; lt;img 
 src=http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg
  
 http://36.media.tumblr.com/0f4726dd2f19c8d4a042f72786987573/tumblr_np213siZRu1tbs1mwo3_500.jpg/gt;lt;br/gt;
  lt;br/gt;lt;h2gt;lt;bgt;Marriott Hotels in France Celebrate Earth 
 Hour 2015lt;/bgt;lt;/h2gt;lt;pgt;See what happened during Earth Hour 
 celebrations at Marriott hotels in France.lt;/pgt;/description
 
 What I would like is to have a XPath function that return me only the first 
 image url:
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
  
 http://33.media.tumblr.com/bd4312958b742a21221e87c0a96d52c1/tumblr_np213siZRu1tbs1mwo1_500.gif
 
 How can I do that ?
 
 Thanks,
 Gianluca.
 
 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest 
 http://lists.qt-project.org/mailman/listinfo/interest
 
 
 
 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest