[Interest] ApplicationWindow is not an Item?

2016-06-16 Thread Jason H
I tried using Keys on an application window. I got an error that it is not an 
item. While it's trivial to throw an item in, why isn't it an Item?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QtQuick compiler

2016-06-16 Thread Jason H
It is not. See http://blog.qt.io/blog/2016/06/16/qt-5-7-released/

 

"The only exception is the Qt Quick Compiler where we need some more time to finish the required changes to be able to support this feature in the Open Source Edition."


Sent: Wednesday, June 15, 2016 at 8:42 AM
From: "Xavier Bigand" 
To: interest@qt-project.org
Subject: [Interest] QtQuick compiler


I thought that the QtQuick compiler is now available with the open source licences, but QtCreator doesn't found it event with Qt5.7 RC.
Need I build it myself?

 
--


Xavier


___ 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] Urgent: ld: framework not found MobileCoreServices on OSX

2016-06-15 Thread Jason H
I just found an issue with my app in the Apple App store. I am trying to fix 
urgently it, but now I get
ld: framework not found MobileCoreServices

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -headerpad_max_install_names -stdlib=libc++ 
-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -mmacosx-version-min=10.11 -Wl,-rpath,/usr/local/Qt-5.6.0/lib 
-L/usr/local/Qt-5.6.0/lib -lQt5Quick_debug -framework MobileCoreServices 
-framework Foundation -framework UIKit -framework CoreFoundation -framework 
CoreText -framework CoreGraphics -framework OpenGLES -framework Security 
-framework SystemConfiguration -lQt5Svg_debug -lQt5Widgets_debug 
-lQt5Multimedia_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lQt5Qml_debug 
-lQt5Network_debug -lQt5Xml_debug -lQt5Positioning_debug -lQt5Sql_debug 
-lQt5Core_debug -lz -lqtpcre_debug -lm -framework OpenGL -framework AGL

As you can see '-framework MobileCoreServices' is included, even though my 
build is for OSX (to do the fix). But it also fails for iOS as well. 

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


Re: [Interest] 5.8 Features?

2016-06-24 Thread Jason H

6 months of latency would be great.

But the things I talk about are pretty basic on mobile:

- Foreground/background lifecycle events,

- Screen wake locks,

- Notifications (local / remote)

 

These have been aound since before Qt targeted mobile and are sorely STILL missing from Qt.

 

Things upcoming that I wouldn't complain about having to implement myself:

- Fingerprint scanning

As this is relatively new for Android and iOS platforms. Though the Atrix (2010) had a fingerprint scanner, but only Android 6 had a platform API. iPhone had it as of the 5S. 

 

It's like Qt is on mobile only if you want to put things on the screen and do AJAX. But if you really want to do anything really "mobile" you're on your own. We still can't control the video recording parameters on iOS (Thanks to my company, it will land in 5.6.2 -- was supposed to land in 5.6.1). Qt can only really be accurately described to be a Cross-platform UI on mobile. Outside of that, you're writing Java and Obj-C. So call it cross-platform for mobile is a stretch. I urging Qt to focus on eliminating the asterisks, so it's proper Mobile (capital M) platform. 

 

With that said though, Qt's abstraction of various platform services is a godsend. The fact that ReactNative gives you access to AVFoundation doesn't do a whole lot when you have to write ReactNative that targets AVFoundation and more code to target android.media SDK and handle the intricacies of both in your own code base. So I think the Qt approach is right. I just want more of it. :-)

 

 

Sent: Friday, June 24, 2016 at 9:26 AM
From: "Xavier Bigand" <flamaros.xav...@gmail.com>
To: "Robert Iakobashvili" <corobe...@gmail.com>
Cc: interest <interest@qt-project.org>
Subject: Re: [Interest] 5.8 Features?




Like you said I think that the iOS and Android progress too fast and on an other cadence than Qt.
We should not forget that Qt has to create a unified cross platform API, that is necessary harder than creating a new one for one platform.

 

I think that a latency of 6 months to a year is still reasonable for Qt depending on how it fall with releases.

 

In my opinion if you need something faster, you may have to consider to implement features your self. We started our application with 4.8 and necessitas and Qt was much slower than now to integrate new features provided by mobile devices. Some features like DPI retrieving wasn't correctly implemented so because it was a blocker for us, we fixed it by calling the native API on Android.

 

 

 

 


 
2016-06-24 15:00 GMT+02:00 Robert Iakobashvili <corobe...@gmail.com>:

On Tue, Jun 21, 2016 at 10:55 PM, Jason H <jh...@gmx.com> wrote:
> I feel like the last few releases have been run by the trolls, and not the users of Qt. I was hoping open governance would enable the community to direct Qt development, but I seem to have misinterpreted what it means. I'm looking for what's going into 5.8.. not much listed on the releases page.
>
> I'd like to suggest that mobile get some much needed love.
> - Application state transitions; Foreground, background
> - Background processing API
> - Screen wake lock API
> - In-app Notifications: local, remote
>
> While I have those characterized as "mobile" there are things like notifications occurring on desktop platforms.
>
> Any thoughts?
>

Agree with Jason that mobile support needs more love
and adding "Native, native, native ..."

However, it could be that progress made at iOS and Android side is too fast and
our expectations from Qt are too high?

As any cross-platform framework Qt has its limitations.
Still, it has good integration points to allow additions of native code.

jm4c to add.

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

 

 
--


Xavier


___ 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] Routing all QML file requests through a custom resource provider

2016-06-17 Thread Jason H

What Dimitry said plus:
 
Add:
CONFIG += resources_big

 
to your .pro file, which should get around some long linking times.
 
 
--
Sent: Friday, June 17, 2016 at 5:45 AM
From: "Dmitry Volosnykh" 
To: "Max Savenkov" , "" 

Subject: Re: [Interest] Routing all QML file requests through a custom resource 
provider

Hi, Max!
 
To be honest, I did not understand in all the details what you are trying to 
achieve. Anyway that looks way complex indeed.
 
Since you are inclined to pack all you resources into auxiliary file like zip 
package, you are surely okay with static content. Having this said, you should 
be fine using conventional .qrc files (this is what you named Qt resource 
system). These files are easily accessed (i.e. viewed, edited, etc.) from Qt 
Creator. Qt Designer tools understand them perfectly fine, as well. Also, there 
should be no issues when importing QML components from your .qml files once you 
feed QML engine with root .qml file stored inside .qrc file.
 
Regards,
Dmitry. 

On Fri, Jun 17, 2016 at 12:09 PM Max Savenkov  
wrote:Hello,

Once again, I'm trying to use Qt (in this case, QtQuick/QML) for game
development. The game is going to store all its resources in a package
(it might be zip, or a custom format) when deployed, but during
development, resources are available in the usual filesystem. This
difference is hidden by game's resource provider, which maps resource
name to a file or an entry in package.

This works for the game itself, but how can I make QML load images,
imports and other resources from game's resource provider? (also, I'd
like to view my QML files in Designer, which means I can't use custom
image providers in QML code itself)

I see two possibilities, but I'm not sure of either one.

1) Use dynamic resources produced by rcc. When loading a QML file from
C++, also load relevant rcc data (from game's resources) and register it
with Qt resource system to make it accessible. This sounds workable, but
I'm not sure how exactly to make it happen. Suppose I got a binary
buffer from game's resources. How do I register it in Qt?

2) Use a system of crutches.
* Register Url Interceptor with my QMLEngine, such that:
     - any URL that contains an image is changed into
"image:/my_resource_provider/imagename.png"
     - any URL that contains qml or qmldir is change into... What? There
is no way to register a special loader for QML imports. But I guess I
can change it into a network request, by substituting shcema to, for
example, "my_provider"
* Register image provider with name "my_resource_provider" that loads
images from my resource system.
* Register a custom network access manager factory/manager/network reply
that load QML files from my system instead of network. This doesn't
quite work, however, because QML at some point for whatever reason
checks that URL used to load qml file is local...

So, I'm stumped. This should be WAY easier... And it was, before
AbstractFileEngine was made private. But I really don't want to use
private APIs if I can avoid it.
An argument against AbstractFileEngine was made, that virtual FS should
be implemented "at OS level" - but I simply cannot see how a game can
implement it at OS level, because it's a game 0_o.
___
Interest mailing list
Interest@qt-project.org[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[http://lists.qt-project.org/mailman/listinfo/interest]
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Deployment issue on Samsung S3

2016-01-11 Thread Jason H
I'm not sure where to file this. I've got an S3 running 4.4.2

11:47:32: The process 
"/Users/jhihn/Qt5.6.0/5.6/android_armv7/bin/androiddeployqt" exited normally.
11:47:32: Pulling files necessary for debugging.
11:47:32: Package deploy: Running command 
"/Users/jhihn/Library/Android/sdk/platform-tools/adb -s 498ea64c pull 
/system/bin/app_process32 
/Users/jhihn/Projects/build-testapp-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Release/app_process".
11:47:32: Packaging error: Command 
"/Users/jhihn/Library/Android/sdk/platform-tools/adb -s 498ea64c pull 
/system/bin/app_process32 
/Users/jhihn/Projects/build-testapp-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Release/app_process"
 failed.Exit code: 1
11:47:32: Package deploy: Running command 
"/Users/jhihn/Library/Android/sdk/platform-tools/adb -s 498ea64c pull 
/system/bin/app_process 
/Users/jhihn/Projects/build-testapp-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Release/app_process".
11:47:32: Package deploy: Running command 
"/Users/jhihn/Library/Android/sdk/platform-tools/adb -s 498ea64c pull 
/system/lib/libc.so 
/Users/jhihn/Projects/build-testapp-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Release/libc.so".

And then nothing happens. 


Note: 11:47:32: Packaging error: Command 
"/Users/jhihn/Library/Android/sdk/platform-tools/adb -s 498ea64c pull 
/system/bin/app_process32 
/Users/jhihn/Projects/build-testapp-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Release/app_process"
 failed.Exit code: 1

This fails because /system/bin/app_process32 does not exist, but 
/system/bin/app_process does. 

How can I fix this?

Thanks!

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


[Interest] git initr-epository error

2016-01-13 Thread Jason H
Aliasing ../../../qtrepotools/git-hooks/gerrit_commit_msg_hook
  as qt3d/.git/hooks/commit-msg ...
Cannot create forwarding script qt3d/.git/hooks/commit-msg: Not a directory

What should I do?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Standardized StackView navigation

2016-01-18 Thread Jason H
What are your thoughts with extending StackView (maybe a derived class called 
'ScreenStack' or 'ActivityStack')

I've done a number of mobile-paradigm based apps, and seem to be convergently 
evolving the same pattern.

main.qml {
ScreenStack {}
Screen1 {}
Screen2 {}
Screen3 {}
Screen4 {}
}

Screen.qml {
visible: false
// lifecycle
signal created();
signal entered();
signal exited();
signal destroyed();
// navigation
signal next();
signal back();
}

ScreenX.qml {
 Screen {
 }
}

Which is similar to android, minus the pause/resume. ( 
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
 )

I figure it would be cool to have a 'ScreenView' that would properly instrument 
the lifecycle, and potentially the navigation.
Currently, I implement entered/exited with onVisibleChanged, destroyed is not 
implemented, and created is Component.onCompleted.

I also have used this to implement dynamic workflows. To avoid Apple app store 
restrictions, a JSON object was retrieved from the server which contained the 
names of QML files, which existed locally in the application, with a trivial 
decision tree to decide the next screen. In this case, each screen was 
dynamically created.

Thoughts?





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


Re: [Interest] 5.8 Features?

2016-06-27 Thread Jason H

That's exactly my worry too. So far, I've had a number of mobile devs like you 
agree with me, but how do we take it to the next level and get the Qt company 
on board and actually do something?

What's irritating me is that there aren't any other killer features competing. 
It also seems that these issues could be fixed relatively quickly if the trolls 
were to focus on it. I think adding something like 3D is much more complicated 
and affects far fewer people. 
 
Qt 5.7 added two mobile features:
- NFC (Android) (Also reported as a 5.6 feature)
- Android Services 

While any addition is good, I find it hard that NFC was more missed that 
notifications.  Could we possibly come up with a "mobile features" priority 
list and help focus what gets delivered?
Say, with a minimum of 1 (or more) feature(s) per X.Y release? 



---
Sent: Monday, June 27, 2016 at 11:29 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] 5.8 Features?

+1
I love Qt, but I'd tried to implement 3 mobile apps using Qt, and I always fall 
in some sort of limitation that annoys me.
Like you said, pretty basic things like the video recording parameters.

And I look into the next steps and I don't see any much effort on that area, 
this was the main reason I'd cancel my subscription.

Mobile seems more like a second class citizen.
 

On Fri, 24 Jun 2016 at 18:02 Jason H <jh...@gmx.com> wrote:

6 months of latency would be great.
But the things I talk about are pretty basic on mobile:
- Foreground/background lifecycle events,
- Screen wake locks,
- Notifications (local / remote)
 
These have been aound since before Qt targeted mobile and are sorely STILL 
missing from Qt.
 
Things upcoming that I wouldn't complain about having to implement myself:
- Fingerprint scanning
As this is relatively new for Android and iOS platforms. Though the Atrix 
(2010) had a fingerprint scanner, but only Android 6 had a platform API. iPhone 
had it as of the 5S. 
 
It's like Qt is on mobile only if you want to put things on the screen and do 
AJAX. But if you really want to do anything really "mobile" you're on your own. 
We still can't control the video recording parameters on iOS (Thanks to my 
company, it will land in 5.6.2 -- was supposed to land in 5.6.1). Qt can only 
really be accurately described to be a Cross-platform UI on mobile. Outside of 
that, you're writing Java and Obj-C. So call it cross-platform for mobile is a 
stretch. I urging Qt to focus on eliminating the asterisks, so it's proper 
Mobile (capital M) platform. 
 
With that said though, Qt's abstraction of various platform services is a 
godsend. The fact that ReactNative gives you access to AVFoundation doesn't do 
a whole lot when you have to write ReactNative that targets AVFoundation and 
more code to target android.media SDK and handle the intricacies of both in 
your own code base. So I think the Qt approach is right. I just want more of 
it. :-)
 
 
Sent: Friday, June 24, 2016 at 9:26 AM
From: "Xavier Bigand" <flamaros.xav...@gmail.com[flamaros.xav...@gmail.com]>
To: "Robert Iakobashvili" <corobe...@gmail.com[corobe...@gmail.com]>
Cc: interest <interest@qt-project.org[interest@qt-project.org]>

Subject: Re: [Interest] 5.8 Features?

Like you said I think that the iOS and Android progress too fast and on an 
other cadence than Qt.
We should not forget that Qt has to create a unified cross platform API, that 
is necessary harder than creating a new one for one platform.
 
I think that a latency of 6 months to a year is still reasonable for Qt 
depending on how it fall with releases.
 
In my opinion if you need something faster, you may have to consider to 
implement features your self. We started our application with 4.8 and 
necessitas and Qt was much slower than now to integrate new features provided 
by mobile devices. Some features like DPI retrieving wasn't correctly 
implemented so because it was a blocker for us, we fixed it by calling the 
native API on Android.
 
 
 
 
 
2016-06-24 15:00 GMT+02:00 Robert Iakobashvili 
<corobe...@gmail.com[http://corobe...@gmail.com]>:On Tue, Jun 21, 2016 at 10:55 
PM, Jason H <jh...@gmx.com[http://jh...@gmx.com]> wrote:
> I feel like the last few releases have been run by the trolls, and not the 
> users of Qt. I was hoping open governance would enable the community to 
> direct Qt development, but I seem to have misinterpreted what it means. I'm 
> looking for what's going into 5.8.. not much listed on the releases page.
>
> I'd like to suggest that mobile get some much needed love.
> - Application state transitions; Foreground, background
> - Background processing API
> - Screen wake lock API
> - In-app Notifications: local, remote
>
> While I have those characterized as "mobile" there are things like 
&g

Re: [Interest] 5.8 Features?

2016-06-24 Thread Jason H

I've solved these, to various exents, or Android and iOS.

I would share my code as longas everyone promises to not laughs at my code. I do not know what is "best" or everyone. I just wrote what I had to fill the requirement I had. 

 

 



Sent: Friday, June 24, 2016 at 12:20 PM
From: ekke <e...@ekkes-corner.org>
To: interest@qt-project.org
Subject: Re: [Interest] 5.8 Features?



Am 24.06.16 um 18:02 schrieb Jason H:




6 months of latency would be great.

But the things I talk about are pretty basic on mobile:

- Foreground/background lifecycle events,

- Screen wake locks,

- Notifications (local / remote)

 

These have been aound since before Qt targeted mobile and are sorely STILL missing from Qt.

 

Things upcoming that I wouldn't complain about having to implement myself:

- Fingerprint scanning

As this is relatively new for Android and iOS platforms. Though the Atrix (2010) had a fingerprint scanner, but only Android 6 had a platform API. iPhone had it as of the 5S. 

 

It's like Qt is on mobile only if you want to put things on the screen and do AJAX. But if you really want to do anything really "mobile" you're on your own. We still can't control the video recording parameters on iOS (Thanks to my company, it will land in 5.6.2 -- was supposed to land in 5.6.1). Qt can only really be accurately described to be a Cross-platform UI on mobile. Outside of that, you're writing Java and Obj-C. So call it cross-platform for mobile is a stretch. I urging Qt to focus on eliminating the asterisks, so it's proper Mobile (capital M) platform. 

 

With that said though, Qt's abstraction of various platform services is a godsend. The fact that ReactNative gives you access to AVFoundation doesn't do a whole lot when you have to write ReactNative that targets AVFoundation and more code to target android.media SDK and handle the intricacies of both in your own code base. So I think the Qt approach is right. I just want more of it. :-)

 



+1

another point: I think that there are many developers out there already implementing common missing features in Java and ObjectiveC

would be great to collect and exchange this to help each other - don't know where's the best place and it should be promoted by Qt



 

Sent: Friday, June 24, 2016 at 9:26 AM
From: "Xavier Bigand" <flamaros.xav...@gmail.com>
To: "Robert Iakobashvili" <corobe...@gmail.com>
Cc: interest <interest@qt-project.org>
Subject: Re: [Interest] 5.8 Features?




Like you said I think that the iOS and Android progress too fast and on an other cadence than Qt.
We should not forget that Qt has to create a unified cross platform API, that is necessary harder than creating a new one for one platform.

 

I think that a latency of 6 months to a year is still reasonable for Qt depending on how it fall with releases.

 

In my opinion if you need something faster, you may have to consider to implement features your self. We started our application with 4.8 and necessitas and Qt was much slower than now to integrate new features provided by mobile devices. Some features like DPI retrieving wasn't correctly implemented so because it was a blocker for us, we fixed it by calling the native API on Android.

 

 

 

 


 
2016-06-24 15:00 GMT+02:00 Robert Iakobashvili <corobe...@gmail.com>:

On Tue, Jun 21, 2016 at 10:55 PM, Jason H <jh...@gmx.com> wrote:
> I feel like the last few releases have been run by the trolls, and not the users of Qt. I was hoping open governance would enable the community to direct Qt development, but I seem to have misinterpreted what it means. I'm looking for what's going into 5.8.. not much listed on the releases page.
>
> I'd like to suggest that mobile get some much needed love.
> - Application state transitions; Foreground, background
> - Background processing API
> - Screen wake lock API
> - In-app Notifications: local, remote
>
> While I have those characterized as "mobile" there are things like notifications occurring on desktop platforms.
>
> Any thoughts?
>

Agree with Jason that mobile support needs more love
and adding "Native, native, native ..."

However, it could be that progress made at iOS and Android side is too fast and
our expectations from Qt are too high?

As any cross-platform framework Qt has its limitations.
Still, it has good integration points to allow additions of native code.

jm4c to add.

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

 

 
--


Xavier


___ 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/l

[Interest] Bluring the composited background for a menu

2016-06-27 Thread Jason H
It seems it's all the rage these days: Providing a menu whose background is the 
result of something below it, blurred, then its own content layered on top.I 
have a Menu item above the rest of the app, with a cyan background. Attempting 
to use blur only blurs the cyan (no change), the text below it (from 
Application window) is not blurred.


How can I blur the menu background in QML? 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What happened to 5.5.1 branch?

2016-02-05 Thread Jason H


> Sent: Friday, February 05, 2016 at 5:59 PM
> From: "Thiago Macieira" <thiago.macie...@intel.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] What happened to 5.5.1 branch?
>
> Answering the subject: 5.5.1 is released, so it no longer needs a branch.
> 
> On sexta-feira, 5 de fevereiro de 2016 23:32:09 PST Jason H wrote:
> > Git issues:
> > 1. I checked out the 5.5.1, and created a branch called
> > osx_recording_params. SourceTree shows me the [osx_recording_params] in the
> > "SourceTree" window. 
> 
> Mistake. You should have checked out the 5.5 branch.
> 
> > 2. Things were fine until 5.6 branch happened.  Now,
> > the list of pre-5.6 branches is gone. $ git branch
> > * (HEAD detached from c595fc7) # <- this was the 5.5.1 commit of
> > qtmultimedia that I checked out. 5.6
> 
> You were detached already. It just happened that the remote branch that you 
> happened to be detached from is now gone.



Not sure why it got deleted. They are free. And there are others. Now I'm 
always getting:
'git log' failed with code 128:'fatal: bad revision '(HEAD detached from 
c595fc7)'
with all my git actions.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] background uploads in iOS

2016-02-10 Thread Jason H
I was reading on how I can do background uploads and it seems as os iOS 7, 
there is a facility to do this. 
( 
https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLSession_class/index.html
 )
( 
https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW22
 )

I also know what Qt has to use the iOS networking APIs, and was wondering if 
this is already supported in some degree? I was thinking I could use: 
UIBackgroundModes: fetch to post the content? I found this page
( http://hayageek.com/ios-background-fetch/ ) that says I need to call a 
completion handler, but I am unsure as to where I add this in a QML app?

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


[Interest] Gerrit questions

2016-02-08 Thread Jason H
I'm trying to push code to gerrit, but I'm having some issues. I've fought 
through many already, but  I'm at  
! [remote rejected] HEAD -> refs/for/dev/osx_recording_params (missing 
Change-Id in commit message footer)
error: failed to push some refs to 
'ssh://scorp...@codereview.qt-project.org:29418/qt/qtmultimedia.git' 

I find plenty of info on how to set the hook, but not how to _obtain_ and the 
change-id.

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


Re: [Interest] Gerrit questions

2016-02-08 Thread Jason H
Thanks, that would explain why that information doesn't exist.


> Sent: Monday, February 08, 2016 at 9:59 AM
> From: "Blasche Alexander" <alexander.blas...@theqtcompany.com>
> To: "interest@qt-project.org" <interest@qt-project.org>
> Subject: Re: [Interest] Gerrit questions
>
> If the hook is already installed then you can trigger it by editing the 
> commit log message via for example "git commit --amend" or git rebase.
> 
> The hook itself will generate the change-id.
> --
> Alex
> 
> ____
> From: Interest <interest-boun...@qt-project.org> on behalf of Jason H 
> <jh...@gmx.com>
> Sent: Monday, February 8, 2016 15:55
> To: interest@qt-project.org
> Subject: [Interest] Gerrit questions
> 
> I'm trying to push code to gerrit, but I'm having some issues. I've fought 
> through many already, but  I'm at
> ! [remote rejected] HEAD -> refs/for/dev/osx_recording_params (missing 
> Change-Id in commit message footer)
> error: failed to push some refs to 
> 'ssh://scorp...@codereview.qt-project.org:29418/qt/qtmultimedia.git'
> 
> I find plenty of info on how to set the hook, but not how to _obtain_ and the 
> change-id.
> 
> ___
> 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] OSX moc_file compile error

2016-02-08 Thread Jason H
I'm building a modified version of Qt, I'm not used new to Objective-C. I have 
to include AVFoundation.h, because it has NSString key IDs, but when I do, the 
moc_ version of the file bombs out. How do I fix this?

In file included from .moc/debug/moc_avfaudioencodersettingscontrol.cpp:9:
In file included from 
.moc/debug/../../../../../../../../qt5/qtmultimedia/src/plugins/avfoundation/camera/avfaudioencodersettingscontrol.h:42:
In file included from 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:435:1:
 error: expected unqualified-id
@class NSString, Protocol;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:437:19:
 error: unknown type name 'NSString'; did you
  mean 'QString'?
FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
  ^
../../../../lib/QtMultimedia.framework/Headers/qaudioencodersettingscontrol.h:51:7:
 note: 'QString' declared here
class QString;
  ^
---
Here's the file (Minus comments)
#ifndef AVFAUDIOENCODERSETTINGSCONTROL_H
#define AVFAUDIOENCODERSETTINGSCONTROL_H

#include 
#include 

#include 
#include 
#include 

QT_BEGIN_NAMESPACE

class AVFCameraSession;
class AVFCameraService;

class AVFAudioEncoderSettingsControl : public QAudioEncoderSettingsControl
{
Q_OBJECT
public:
explicit AVFAudioEncoderSettingsControl(AVFCameraService *service);

QStringList supportedAudioCodecs() const Q_DECL_OVERRIDE;
QString codecDescription(const QString ) const Q_DECL_OVERRIDE;
QList supportedSampleRates(const QAudioEncoderSettings , bool 
*continuous = 0) const Q_DECL_OVERRIDE;
QAudioEncoderSettings audioSettings() const Q_DECL_OVERRIDE;
void setAudioSettings(const QAudioEncoderSettings ) 
Q_DECL_OVERRIDE;
NSDictionary *settingsAsNSDictionary() const;
FourCharCode codecAsFourCharCode(const QString ) const;

private:
void initCodecs();

AVFCameraSession *m_session;
QAudioEncoderSettings m_settings;
static QMap *m_audioCodecs;
};

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


Re: [Interest] What happened to 5.5.1 branch?

2016-02-08 Thread Jason H
> > Not sure why it got deleted. They are free.
> 
> It's free to keep it in the repository, but it adds noise to, say,
> `git branch -r` (command line). The number of Qt versions only grows
> over time.
> 
> Also, a branch is for making commits. Since no more commits are
> accepted for Qt 5.5.1, it makes sense to remove the "5.5.1" branch.
> 
> If you want the 5.5.1, sources, you can check out the "v5.5.1" tag.
> 
> 
> > And there are others. Now I'm always getting:
> > 'git log' failed with code 128:'fatal: bad revision '(HEAD detached from 
> > c595fc7)'
> > with all my git actions.
> 
> That's a SourceTree issue, not a git issue. Here's an old, unresolved
> bug report: 
> https://answers.atlassian.com/questions/293099/git-log-failed-with-code-128-fatal-bad-revision-detached-from-35e6d4e
> 
> Here's what others have done to fix very similar errors:
> https://answers.atlassian.com/questions/94201/error-encountered-on-source-tree-git-log-failed-with-code-128


I still don't see why that one got deleted and the others were allowed to stay. 
I'm still hosed.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What happened to 5.5.1 branch?

2016-02-08 Thread Jason H


> Sent: Monday, February 08, 2016 at 3:56 PM
> From: "Thiago Macieira" <thiago.macie...@intel.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] What happened to 5.5.1 branch?
>
> Em segunda-feira, 8 de fevereiro de 2016, às 19:10:59 PST, Jason H escreveu:
> > I still don't see why that one got deleted and the others were allowed to
> > stay. I'm still hosed.
> 
> $ git ls-remote origin refs/heads/*
> 73a1e8c60d894701f34806cc4b847aa2814bf389refs/heads/5.3
> 209a75f2d071e0977b6c0a8a2ce5d6eb0ff95b8crefs/heads/5.3.2
> 4a1e5dbade4bab55f39bd368480dcca9a11e4b38refs/heads/5.4
> b5ea7a5f5c849329643112cba9b57ad047c0bc4brefs/heads/5.5
> 12b19ca56c274565803d00bf551c32fc0f4a39b9refs/heads/5.6
> 4c1b6cdd292bc571a4104fff8b5b54d47970cca1refs/heads/5.6.0
> 4fb7eb0da74798205f5cac693c921065492fa33erefs/heads/dev
> c51d26b6ec7869641441d01597c3e7acc643f93frefs/heads/old/5.0
> 779fa9c590a1bf399b34fbf293d8399e61a1e15crefs/heads/old/5.1
> f15d9e6ccd006a2b47b50ae755fbe9534748a2ebrefs/heads/old/5.2
> 06c1ec4dd1df6e0bc417241bd15f164b38de87b3refs/heads/winrt
> [wip branches after this]
> 
> You're right. The 5.3.2 branch should be deleted, as the v5.3.2 tag points to 
> the same commit.
> 
> The 5.6.0 branch will be deleted once it's released and tagged.


Thanks for that clarification.

Should I rebase to 5.5?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] OSX moc_file compile error

2016-02-08 Thread Jason H

> Em segunda-feira, 8 de fevereiro de 2016, às 16:14:53 PST, Jason H escreveu:
> > I'm building a modified version of Qt, I'm not used new to Objective-C. I
> > have to include AVFoundation.h, because it has NSString key IDs, but when I
> > do, the moc_ version of the file bombs out. How do I fix this?
> 
> Option 1: do not include Objective-C-only headers in headers with Q_OBJECT. 
> Include only headers that have C / C++ versions, or #ifndef out the 
> inclusions.
> 
> Option 2: #include "moc_avfaudioencodersettingscontrol.cpp" at the end of 
> your 
> .mm source file.


Awesome, thanks Thiago! I never would have thought of that. 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Where to does Qt expect to find ".qt-license" file when running on a Jenkins slave machine?

2016-02-05 Thread Jason H


> Sent: Friday, February 05, 2016 at 4:36 PM
> From: "Michael Capewell" 
> To: interest@qt-project.org
> Subject: Re: [Interest] Where to does Qt expect to find ".qt-license" file 
> when running on a Jenkins slave machine?
>
> Edward Sutton  subsite.com> writes:
> 
> > 
> > 
> > Kai,
> > 
> > Thank you for your help.
> > 
> > On a Windows 7 VM machine it installs to:
> > 
> >  C:\Users\edward3\.qt-license
> > 
> > 
> > When logged on as edward3 all is good.
> > 
> > 
> > This same machine operates as a Jenkins slave.
> > 
> > Dumping the environment from the Jenkins job:
> > 
> >  USERDOMAIN=WORKGROUP
> >  USERNAME=WIN7X64-ESUTTON$
> >  USERPROFILE=C:\Windows\system32\config\systemprofile
> > 
> > I tried copying C:\Users\edward3\.qt-license to the following without 
> > success:
> > 
> >   C:\Windows\System32\config\systemprofile\AppData\Roaming\Qt\.qt-license
> >   C:\Windows\System32\config\systemprofile\.qt-license
> >   C:\jenkins\.qt-license
> > 
> > I had the slave building before using Qt Enterprise. What could have
> changed I do no know?
> > 
> > 
> > -Ed
> > 
> 
> 
> I had this same problem.  The solution is weird, but easy to do.  The
> problem is that C:\Windows\System32\config\systemprofile\ is different
> depending on which user is looking at it!  So if you manually copy your
> license there, Jenkins does not see it, because it runs as a different user.
>  You need to get Jenkins to copy the license there so it's in the right place.
> 
> So: 
> * add an "Execute Windows batch command" section to your Jenkins project's
> Build steps
> * copy your .qt-license into C:\temp\
> * Add the following two commands to the batch script text area (or add it at
> the top of your original script):
> * copy C:\temp\.qt-license %USERPROFILE%\.qtlicense
> * dir %USERPROFILE%
> * then build your project.  The file will be copied and qmake should run
> without issue.  
> 
> Notice that the contents listed for that directory are different than what
> you see with Windows Explorer under your normal user account!


If you copy the file as Adminstrator to the protected folder, everyone will see 
it. If you try to copy it as a normal user, it'll only be applied to that 
user's profile.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] What happened to 5.5.1 branch?

2016-02-05 Thread Jason H
Git issues:
0. I'm using Atlassian's Source Tree.
1. I checked out the 5.5.1, and created a branch called osx_recording_params. 
SourceTree shows me the [osx_recording_params] in the "SourceTree" window.
2. Things were fine until 5.6 branch happened.  Now, the list of pre-5.6 
branches is gone. 
$ git branch
* (HEAD detached from c595fc7) # <- this was the 5.5.1 commit of qtmultimedia 
that I checked out.
  5.6


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


[Interest] Compiling 5.5.1 from git sources

2016-01-29 Thread Jason H
I've been having some build problems, probably of my own fault.
My make distclean failed part of the way though, but it got far enough that the 
configure script would proceed.

~/qt5/qtdeclarative/src/3rdparty/masm/yarr/YarrPattern.cpp:39:10: fatal error: 
'RegExpJitTables.h' file not found


Advice on how I can salvage my build?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Compiling 5.5.1 from git sources

2016-01-29 Thread Jason H

So on a whim, I:

bash

cd ~/qt5/qtdeclarative/src/3rdparty/masm

python create_regex_tables > RegExpJitTables.h

exit

make

 

and it seemed to work.

 

Sent: Friday, January 29, 2016 at 9:13 AM
From: "Jason H" <jh...@gmx.com>
To: "Andrew Knight" <andrew.kni...@intopalo.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Compiling 5.5.1 from git sources




Hrm...

 


Jasons-Mac-mini:qt5.5.1-ios jhihn$ which python
/usr/bin/python

Jasons-Mac-mini:qt5.5.1-ios jhihn$ python --version
Python 2.7.10

 

How can I recover from it? 


Sent: Friday, January 29, 2016 at 9:03 AM
From: "Andrew Knight" <andrew.kni...@intopalo.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Compiling 5.5.1 from git sources


Hi,

 
On 29 January 2016 at 16:00, Jason H <jh...@gmx.com> wrote:

I've been having some build problems, probably of my own fault.
My make distclean failed part of the way though, but it got far enough that the configure script would proceed.

~/qt5/qtdeclarative/src/3rdparty/masm/yarr/YarrPattern.cpp:39:10: fatal error: 'RegExpJitTables.h' file not found


Advice on how I can salvage my build?

 

That's what happens when you don't have python in your path. Python is used to generate the JIT tables in qtdeclarative.
 

HTH,

Andrew









___ 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] Compiling 5.5.1 from git sources

2016-01-29 Thread Jason H

Hrm...

 


Jasons-Mac-mini:qt5.5.1-ios jhihn$ which python
/usr/bin/python

Jasons-Mac-mini:qt5.5.1-ios jhihn$ python --version
Python 2.7.10

 

How can I recover from it? 


Sent: Friday, January 29, 2016 at 9:03 AM
From: "Andrew Knight" <andrew.kni...@intopalo.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Compiling 5.5.1 from git sources


Hi,

 
On 29 January 2016 at 16:00, Jason H <jh...@gmx.com> wrote:

I've been having some build problems, probably of my own fault.
My make distclean failed part of the way though, but it got far enough that the configure script would proceed.

~/qt5/qtdeclarative/src/3rdparty/masm/yarr/YarrPattern.cpp:39:10: fatal error: 'RegExpJitTables.h' file not found


Advice on how I can salvage my build?

 

That's what happens when you don't have python in your path. Python is used to generate the JIT tables in qtdeclarative.
 

HTH,

Andrew








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


[Interest] Compiling Qt 5.5.1 from source for OSX, iOS

2016-01-28 Thread Jason H
I did a in-place build, then realized I wanted to do  both OSX and iOS, so I 
make the build directories.

When I try to compile:
You cannot make a shadow build from a source tree containing a previous build.
Cannot proceed.

I've run: make clean

What do I need to do to be able to build again?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Compiling Qt 5.5.1 from source for OSX, iOS

2016-01-28 Thread Jason H
Ah, nevermind. man git-clean


> Sent: Thursday, January 28, 2016 at 6:00 PM
> From: "Jason H" <jh...@gmx.com>
> To: "Thiago Macieira" <thiago.macie...@intel.com>
> Cc: interest@qt-project.org
> Subject: Re: [Interest] Compiling Qt 5.5.1 from source for OSX, iOS
>
> 
> > Or, better: git clean -x -d -f. If you're not using git, rm -rf and unpack 
> > the 
> > tarball again.
> 
> 
> Thanks. I have changes to QtMultimedia. Will those git options keep my 
> changes?
> ___
> 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] Compiling Qt 5.5.1 from source for OSX, iOS

2016-01-28 Thread Jason H

> Or, better: git clean -x -d -f. If you're not using git, rm -rf and unpack 
> the 
> tarball again.


Thanks. I have changes to QtMultimedia. Will those git options keep my changes?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] OT: perforce (was: Local version control with Qt Creator on Linux)

2016-01-29 Thread Jason H


> Sent: Friday, January 29, 2016 at 10:06 AM
> From: "Matthew Woehlke" <mwoehlke.fl...@gmail.com>
> To: interest@qt-project.org
> Subject: [Interest] OT: perforce (was: Local version control with Qt Creator 
> on Linux)
>
> On 2016-01-28 19:54, Thiago Macieira wrote:
> > On Friday 29 January 2016 01:48:06 Jason H wrote:
> >> Perforce is free for 20 users / 20 workspaces. I really like it. The only
> >> issue is by default files not checked out are readonly. This causes
> >> problems when building for iOS/Android as the manifest files can't be
> >> changed without a checkout.
> > 
> > You shouldn't need to do a p4 checkout for building. If you have to do 
> > that, 
> > then you checked files in that you shouldn't have added.
> 
> I've run into situations where certain files really should be checked
> in, but for some reason the build needs to be able to "modify" them
> (probably a sign of a badly designed build tool, but sometimes you're
> stuck with those).
> 
> Back when I used p4 (years ago, and it was an old version even then),
> you could tell the repo that certain files should always be writable...

The files for are AndroidManifest.xml, and anything in res/
The file for iOS is Info.plist

The Qt build tools copy these files and keep the perms, and don't make the 
writable before trying to modify them. It just kind of dies. I filed an issue, 
but the response was basically 'use git' ;-)
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Local version control with Qt Creator on Linux

2016-01-28 Thread Jason H
> I have experiences in using SVN (as client side user with Tortoise and other 
> clients) and I am very satisfied with it. I am a single user and there are no 
> plans of any team work.
> 
> What version management software should I try to install in your opinion?

Perforce is free for 20 users / 20 workspaces. I really like it. The only issue 
is by default files not checked out are readonly. This causes problems when 
building for iOS/Android as the manifest files can't be changed without a 
checkout.

But use git. Even though it's overkill if not doing distributed development, 
_everyone_ uses it. Look at Atlassian's SourceTree (free with registration) for 
a comprehensive GUI for git. 

Use git.

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


[Interest] Does QNAM / XMLHttpRequest understand 100?

2016-01-28 Thread Jason H
We are talking about using a long-polling technique. As a result, the server 
will send `100 continue` until there is data available for the client. 

Is this supported in Qt?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] 5.6 Beta broken on iOS (5.5.1 regression)

2016-01-25 Thread Jason H
Sorry I can't be more articulate, but here's what happened that lead to this 
posting.

I have an app on iOS and Android. I'm compiling android against 5.6 because the 
beta has some fixes I need. I accidentally compiled the iOS version against 5.6 
instead of 5.5.1 because I clicked on the wrong kit. It went to the app store, 
and into our TestFlight. This is where issues happened.
1. For phones that had it previously installed, built with 5.5.1, it worked. 
(iPhone 6/9.2)
2. For phones that had never had it, using 5.6 Beta it crashed on launch. 
(iPhone 6/9.2)

The app requires several permissions: Camera, location, mic and cellular data. 
On the phones it was crashing, it only listed "Camera" in the Settings app. 

Here's where I have to apologize. I don't know what's going on. As soon as I 
compiled against 5.5.1 and posted it, it worked for everyone.

I don't know enough to file a bug. But I know 5.6 is happening soon...
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] 5.5.1 OSX BTLE compile error - UUID is deprecated

2016-02-01 Thread Jason H
Back to my original problem, how can I compile 5.5.1 with this UUID thing even 
though it is deprecated?

I need a working copy of Qt -- with my multimedia changes.


> Sent: Monday, February 01, 2016 at 2:53 AM
> From: "Blasche Alexander" <alexander.blas...@theqtcompany.com>
> To: "interest@qt-project.org" <interest@qt-project.org>
> Subject: Re: [Interest] 5.5.1 OSX BTLE compile error - UUID is deprecated
>
> On Friday 29 January 2016 20:49:49 Jason H wrote:
> >> I don't know if this is fixed in 5.6?
> 
> >From: Interest <interest-boun...@qt-project.org> on behalf of Thiago 
> >Macieira <thiago.macie...@intel.com>
> >Looks like it is.
> 
> https://bugreports.qt.io/browse/QTBUG-48518
> 
> --
> Alex
> ___
> 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] 5.5.1 OSX BTLE compile error - UUID is deprecated

2016-01-29 Thread Jason H
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:313:21:
 error: 
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:313:21:
 error: property 'UUID' not found on object of type 'CBPeripheral *'
property 'UUID' not found on object of type 'CBPeripheral *'
if (!peripheral.UUID) {
^
if (!peripheral.UUID) {
^
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:318:59:
 error: property 'UUID' not found on object of type 'CBPeripheral *'
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:318:59:
 error: property 'UUID' not found on object of type 'CBPeripheral *'
StringStrongReference key(uuid_as_nsstring(peripheral.UUID));
  ^
StringStrongReference key(uuid_as_nsstring(peripheral.UUID));
  ^
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm::321321::7474::
  errorerror: : property 'UUID' not found on object of type 'CBPeripheral 
*'property 'UUID' not found on object of type 'CBPeripheral *'

const QBluetoothUuid 
deviceUuid(OSXBluetooth::qt_uuid(peripheral.UUID));const QBluetoothUuid 
deviceUuid(OSXBluetooth::qt_uuid(peripheral.UUID));


UUID is Deprecated:
https://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html#//apple_ref/occ/cl/CBPeripheral
https://developer.apple.com/library/prerelease/mac/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html#//apple_ref/occ/cl/CBPeripheral

I don't know if this is fixed in 5.6?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] x-platform way to pull app version?

2016-02-01 Thread Jason H
Currently, I have a string that I have to manually maintain, is there a way I 
can call some function and get my application version (that's in the plist or 
manifest)?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] OSX/iOS Recording parameters backend

2016-01-29 Thread Jason H
Currently, these Apple platforms don't support recording parameters. They use a 
hard-coded 1280x720, and as my app wants to upload video, this takes a 
considerable amount of time. On Android, we can set the parameters, and get 
"reasonable" file sizes and quality. On OSX/iOS, it's about 1 MB *per second*.  
So I've been trying to adjust the backend by implementing the respective 
classes in:
avfaudioencodersettingscontrol.h/mm
avfmediacontainercontrol.h/mm
avfvideoencodersettingscontrol.h/mm


And patching this into the existing backend. It's not gone well. I'm not a 
Apple developer type of person. I'm at the edge of my ability, making guesses 
based on what I can understand from the viewfinder stuff and the android 
plugin. I think I have something close to working, but I still haven't found 
the part where QML sets the resolution settings. At some point there needs to 
be a setResolution function declared in AVFCameraSession, but there isn't? 
Somehow Camera.videoRecorder need to map to one of these objects? I don't 
understand how all the calls I've been adding are going to get called.

I'm willing to share what I have as long as you promise not to laugh.



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


[Interest] emitting signals from UIApplication app delegate?

2016-02-24 Thread Jason H
I want a QObject class to emit a signal when a function in my app delegate is 
invoked. (Code follows) How can I do that? I don't know how to use QObjects in 
ObjectiveC

--- PlatformShimImpl.cpp
PlatformShimImpl::PlatformShimImpl(){
qDebug() << Q_FUNC_INFO;
QtAppDelegate *appDelegate = (QtAppDelegate *)[[UIApplication 
sharedApplication] delegate];
[[UIApplication sharedApplication] setDelegate:[QtAppDelegate 
sharedQtAppDelegate]];
//[[QtAppDelegate sharedQtAppDelegate] setWindow:appDelegate.window];
}


--- QtAppDelegate.mm
- (void)applicationWillResignActive:(UIApplication *)application
{
[application setIdleTimerDisabled:NO];
// emit resignActive()
}


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


[Interest] Android Studio and Qt

2016-02-24 Thread Jason H
There is a step missing in http://www.kdab.com/qt-android-episode-6/
Where we go from importing the build.gradle to somehow having Java source to 
start debugging. 

Can someone fill in the missing steps?
I didn't find any .java files.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android Studio and Qt

2016-02-24 Thread Jason H
Hrm, that's not what the instructions said, but I can see your point. If 
correct though, I'd be usin the Qt-supplied/generated classes, but that means 
I'm editing code in the build dir? Shouldn't the code be under my project's 
android dir? 

The article alludes to a projdir/android/src/com/company/... directory.


> Sent: Wednesday, February 24, 2016 at 5:59 PM
> From: "m...@rpzdesign.com" <m...@rpzdesign.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Android Studio and Qt
>
> Jason:
> 
> Its a little tricky, I think you have to open up the created project in 
> the build directory, not try to import from the source directory tree 
> where the qmake pro file is located.
> 
> Look at Build Settings -> Build Steps -> Make: main in /bla/bla/bla 
> directory and find the Debug -> android-build directory and magically 
> inside this directory is another gradle file.
> 
> Import from that build location and Android Studio will come up and be 
> able to process the java files while the compiled so C++ files are 
> loaded but not able to step into them as a native library.
> 
> That help?
> 
> md
> 
> On 2/24/2016 4:41 PM, Jason H wrote:
> > There is a step missing in http://www.kdab.com/qt-android-episode-6/
> > Where we go from importing the build.gradle to somehow having Java source 
> > to start debugging.
> >
> > Can someone fill in the missing steps?
> > I didn't find any .java files.
> > ___
> > 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 Studio and Qt

2016-02-24 Thread Jason H
How does one "regenerate it back into the build directory"?

I would figure that there would be some ability to extend the supplied 
QtActivity and tell the build system to use that? But it seems like I need to 
set up some build steps to overwrite the supplied activity? That doesn't seem 
'Qt' to me.

Many thanks for the insights so far!

> Sent: Wednesday, February 24, 2016 at 8:25 PM
> From: "m...@rpzdesign.com" <m...@rpzdesign.com>
> To: No recipient address
> Cc: "Jason H" <jh...@gmx.com>, "interest@qt-project.org" 
> <interest@qt-project.org>
> Subject: Re: [Interest] Android Studio and Qt
>
> Yes, edit the java code uptream and regenerate it back into the build 
> directory.
> 
> 
> 
> On 2/24/2016 6:41 PM, Jason H wrote:
> > Hrm, that's not what the instructions said, but I can see your point. If 
> > correct though, I'd be usin the Qt-supplied/generated classes, but that 
> > means I'm editing code in the build dir? Shouldn't the code be under my 
> > project's android dir?
> >
> > The article alludes to a projdir/android/src/com/company/... directory.
> >
> >
> >> Sent: Wednesday, February 24, 2016 at 5:59 PM
> >> From: "m...@rpzdesign.com" <m...@rpzdesign.com>
> >> To: interest@qt-project.org
> >> Subject: Re: [Interest] Android Studio and Qt
> >>
> >> Jason:
> >>
> >> Its a little tricky, I think you have to open up the created project in
> >> the build directory, not try to import from the source directory tree
> >> where the qmake pro file is located.
> >>
> >> Look at Build Settings -> Build Steps -> Make: main in /bla/bla/bla
> >> directory and find the Debug -> android-build directory and magically
> >> inside this directory is another gradle file.
> >>
> >> Import from that build location and Android Studio will come up and be
> >> able to process the java files while the compiled so C++ files are
> >> loaded but not able to step into them as a native library.
> >>
> >> That help?
> >>
> >> md
> >>
> >> On 2/24/2016 4:41 PM, Jason H wrote:
> >>> There is a step missing in http://www.kdab.com/qt-android-episode-6/
> >>> Where we go from importing the build.gradle to somehow having Java source 
> >>> to start debugging.
> >>>
> >>> Can someone fill in the missing steps?
> >>> I didn't find any .java files.
> >>> ___
> >>> 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 Studio and Qt

2016-02-25 Thread Jason H
> Jason:
> 
> On 2/24/2016 8:38 PM, Jason H wrote:
> > How does one "regenerate it back into the build directory"?
> 
> You want to look at the "use gradle builds" and then generate android 
> files in the project android setup in project preferences.

Did that.
 
> This will create an android subdirectory from your project main 
> directory.  Put in their your MyActivity.java override java files and 
> then edit them.

I already had an android directory, maybe this is an issue. Is there a skeleton 
override file provided for me to start with? Should I just copy the default 
QtActivity?

> When you "regenerate the project", these files are copied into the 
> android-build directory.


Thanks for the help. I now have something to look into.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Preventing iOS/Android device sleep

2016-02-22 Thread Jason H
I have an app that records video. If the user records more than the display 
timeout, the display goes black.

Is there a way in Qt 5.5 or 5.6 to prevent the device sleep? I know android 
will require a WAKE_LOCK permissions.

Ideally these this will only be in place while the video recording is active.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Native Sqlite on iOS

2016-02-26 Thread Jason H
I have to write some native implementation functions (ObjC) for my Qt/QML app. 
I'm wondering about having to include/link sqlite library. I'm not really a iOS 
guy, just a Qt guy having to hack some native functionality. 
Do I have to link another sqlite3? Can I just run the one that Qt uses?

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


Re: [Interest] Native Sqlite on iOS

2016-02-26 Thread Jason H
> I have to write some native implementation functions (ObjC) for my Qt/QML 
> app. I'm wondering about having to include/link sqlite library. I'm not 
> really a iOS guy, just a Qt guy having to hack some native functionality. 
> Do I have to link another sqlite3? Can I just run the one that Qt uses?

Additionally, how do I accurately  determine the offline database? There is 
QQmlEngine::offlineStoragePath(), but the database itself isin that plus 
"/Databases/" + a hash-lookingvalue.sqlite

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


[Interest] Can't login to bugreports

2016-01-21 Thread Jason H
It seems the login now requires an @, and something is amiss in my account.

Can someone look into it? The password reset link isn't working. I'm not sure 
which email domain it is going to, but none of them have received a password 
reset link.

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


Re: [Interest] Can't login to bugreports

2016-01-21 Thread Jason H


> Sent: Thursday, January 21, 2016 at 11:37 AM
> From: "Thiago Macieira" <thiago.macie...@intel.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Can't login to bugreports
>
> On Thursday 21 January 2016 16:18:52 Jason H wrote:
> > It seems the login now requires an @, and something is amiss in my account.
> > 
> > Can someone look into it? The password reset link isn't working. I'm not
> > sure which email domain it is going to, but none of them have received a
> > password reset link.
> 
> This was announced several times. You need to log in with your Qt account 
> (see 
> http://account.qt.io). 


Yes, I know. But I have no idea what my login info is anymore. The bug updates 
go to this address, which is new because Yahoo changed and broke mailing lists 
like 2 years ago, I've had a few commercial accounts. It's quite the mess. 
Also, I didn't receive the password reset email.

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


Re: [Interest] Can't login to bugreports

2016-01-21 Thread Jason H


> Sent: Thursday, January 21, 2016 at 1:42 PM
> From: "Matthew Woehlke" <mwoehlke.fl...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Can't login to bugreports
>
> On 2016-01-21 11:37, Thiago Macieira wrote:
> > On Thursday 21 January 2016 16:18:52 Jason H wrote:
> >> It seems the login now requires an @, and something is amiss in my account.
> >>
> >> Can someone look into it? The password reset link isn't working. I'm not
> >> sure which email domain it is going to, but none of them have received a
> >> password reset link.
> > 
> > This was announced several times. You need to log in with your Qt account 
> > (see 
> > http://account.qt.io). 
> 
> Jason, do you *have* a Qt account? I didn't. I had to create one using
> my Jira e-mail. Once I did that, I could log into Jira and see my old
> bug reports.


I guess that was it. I created an account with my bugreports email and it 
worked as described.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Video file generation from Qt application, other than FFmpeg

2016-01-21 Thread Jason H
> Sent: Thursday, January 21, 2016 at 3:15 PM

> We will not be able to use the FFmpeg library for video generation from 
> our Qt application. Are there any other tools/products usable with Qt 
> which can do basic generation of video files, given a sequence of 
> QImages or QPixmaps? We don't need audio with the video.
> 

You can of course do this, however, your platform must support it.  I'm mucking 
about in the multimedia stuff at the moment (not my usual thing), and I don't 
see an obvious reason why you can't implement your own multimedia plugin. You 
would have to write a frame source (i.e. a Camera). You can model it around one 
of the existing backends.

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


Re: [Interest] Pixmap redraw on OS X Retina display zoomed-in 4x?

2016-01-22 Thread Jason H

Look for something called DevicePixelRatio... Also QML Screen attached property/element. It might be a shortcoming in Qt, but you should be able to work around it.

 

 

 

Sent: Friday, January 22, 2016 at 8:57 AM
From: "Edward Sutton" 
To: "Qt Interest" 
Subject: [Interest] Pixmap redraw on OS X Retina display zoomed-in 4x?




 



	I have a QTableWidget.  
	In the name column zero I have cell widget consisting of a QCommandLinkButton
	I added a horizontal layout to QCommandLinkButton containing 3 QLabels, 2 with text, and the middle label contains a pixmap.



Problem:


 


1 - When QWidget app runs on external HD display all is good. See screenshot below.

2 - When the same QWidget app is executed on the MacBook’s internal retina display, the pixmaps are zoomed in about 4X.

 

Suggestions are appreciated.

 

( I wish I had been paying attention to the high DPI discussions now. )

 

-Ed

 

Screenshot 1 - HD display all is good.

 




 

 


Screenshot 2 - After redraw on retina  pixmaps are zoomed in about 4X?


 

 



 

 
This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ___ 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] iOS video orientation (recording)

2016-01-25 Thread Jason H
Is there anything I can do to get it as portrait? The app is locked to 
portrait, but it only records landscape video, so all the videos need to be 
rotated 270.


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


[Interest] QML ListView not updating with ListModels

2016-01-20 Thread Jason H
I am implementing a model where items have a "check" property. The GUI calls it 
a Toggle. 

If the first item is checked, all other items should be unchecked, and vice 
versa. In my delegate I have:

Toggle {
id: toggle
checked: check
onCheckedChanged: {
model.setProperty(index, "check", checked)
evalNextBar()
console.debug("index", index);
if (index == 0) {
console.debug("model.count", model.count)
for (var i=1; i> model.count; i++) {
console.debug("model.setProperty", i, "check", 
"false")
model.setProperty(i, "check", false);
}
} else {
console.debug(0, "check", "false")
model.setProperty("check", false);
}
for (var i=1; i> model.count; i++) {
console.debug("model.get", i, model.get(i).check);
}
}
}


The model itself gets updated, but the GUI never gets updated. How can I have 
the ListView update ALL the delegates?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Video file generation from Qt application, other than FFmpeg

2016-01-23 Thread Jason H

FFMPEG is a utllity and a library.

 

I would investigate using FFMPEG from a command line using QProcess, rather than linking to it directly.

 

 

Sent: Friday, January 22, 2016 at 5:34 PM
From: "rpzrpz...@gmail.com" 
To: interest@qt-project.org
Subject: Re: [Interest] Video file generation from Qt application, other than FFmpeg


Why don't you look into VP8 or VP9 from google, open source free..?

FFmpeg is maybe less quality codec.

md
 
On 1/22/2016 2:23 PM, Mike Chinander wrote:


I'm not a lawyer, but as long as you follow all the items in the "License Compliance Checklist" on that page, you can use the FFmpeg library in commercial software since you would be complying to their LGPLv2.1 license. That 'Note that...' sentence says there is no separate commercial license that can be obtained for using FFmpeg under different terms, it doesn't say that it can't be used in commercial applications.

 
On Fri, Jan 22, 2016 at 2:14 PM, Phil Weinstein  wrote:


Samuel, thanks for your response.

It looks like FFmpeg is really NOT an option for commercial applications -- See for example: https://www.ffmpeg.org/legal.html (see especially the "Note that FFmpeg ..." sentence and the last two paragraphs on the page). 

I see that OpenCV ... http://opencv.org/ ... states that it's "free for both academic and commercial use", but there seem to be issues with this, e.g. as raised on this thread: "OpenCV Free for Commercial use" ... http://answers.opencv.org/question/73877/opencv-free-for-commercial-use/

We really need to be squeaky clean on licensing. So we may be willing to pay a reasonable fee for the ability to generate (create) video FILES given a sequence of QImages or QPixmaps. (Or at least with the possibility of getting frame image DATA from either of those Qt classes into the thing).

Can anyone point me to authoritative information delineating why and how these things CAN be used in commercial applications?

- Phil





On 1/21/2016 1:46 PM, Samuel Gaist wrote:

On 21 janv. 2016, at 21:15, Phil Weinstein  wrote:




We will not be able to use the FFmpeg library for video generation from our Qt application. Are there any other tools/products usable with Qt which can do basic generation of video files, given a sequence of QImages or QPixmaps? We don't need audio with the video.

(Sorry for the repost. My original message went deep into a completely unrelated thread).



Hi,

Out of curiosity, why can't you use ffmpeg ?

There's VLClib that you can use but it's also ffmpeg based so it could be problematic.

OpenCV can also create video files.

Hope it helps
Samuel







___
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] Qt component repositories (was: QtArg version 2.0.0)

2016-01-26 Thread Jason H

> What's the difference between qpm.io and inqlude.org?

I use neither, but it looks like qpm.io is a npm-style site that uses a package 
manager to do the downloading for you. NPM is highly successful. With node, you 
have  package.js in the project root that lists your dependencies and their 
versions, and this can be used to manage your dependencies. I believe Qt has 
this capability with .pro/.pri files, and that's what qpm uses. 

inqlude.org just looks like a listing.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to get number of channels from QAudioDeviceInfo

2016-01-26 Thread Jason H
 
> In the application am writing I can work around not being able to detect the
> actual number of channels on a device but I do need to be able to send sound
> data independently to each channel. Is this possible with Qt?

I have no idea. You're looking at the code. My guess is no, that you'll need to 
write your own Qt->ObjC/Swift class. There is no reason it can't be done, it 
just hasn't been done.

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


Re: [Interest] Getting QImages into QMediaRecoder to create video files (e.g. avi, mp4, or animated gif)?

2016-01-26 Thread Jason H
Well your QImages are going to display device optimized, your video needs to be YUV (or some other video format) There exists a multitude of utlities that can take images and use them as frames. FFMPeg is one. GraphicsMagick (Like ImageMagick but MIT licensed) is another.  Availible as exe or library
 

Sent: Tuesday, January 26, 2016 at 3:14 PM
From: "Phil Weinstein" 
To: interest@qt-project.org
Subject: Re: [Interest] Getting QImages into QMediaRecoder to create video files (e.g. avi, mp4, or animated gif)?


Unfortunately, Qt commercial license support folks are confirming that, currently (as of Qt 5.6), there is no way to get a sequence of programmatically generated QImages (e.g. renders from an application QWidget) into the QMediaRecorder class.  ("There is no API for that").

Related -- they also could not offer any information about a Google WebM / VP8 solution.  That really looks like a promising approach, though the integration is technically challenging.  As far as I can tell, that really is the only virtually bullet-proof legal approach to generating synthetic videos (i.e. animations generated programmatically, saved as video files).  http://www.webmproject.org/about/

- Phil

On 1/24/2016 11:50 AM, Phil Weinstein wrote:
Relative to this topic, "Video file generation from Qt application, other than FFmpeg" (on this "interest" e-mail list, in the wrong place, and also thread: https://forum.qt.io/topic/63105/video-file-generation-from-qt-application-other-than-ffmpeg) there's been suggestions in related Qt forums, possibly referring to the Qt5 QMediaRecorder class, that video file generation can be done in "just" Qt.

In the Qt5 documentation, there is just a little information about using QCamera in conjunction with QMediaRecorder to create video files ("record video to disk") ...


	http://doc.qt.io/qt-5/videooverview.html#recording-video
	http://doc.qt.io/qt-5/cameraoverview.html#movies


However, I'm not seeing any way to get QImages or QPixmaps into either of these classes (QCamera or QMediaRecorder), nor their base classes.  So I don't see how these can be used to generate video files from synthetic (program-created) images.  (Ultimately, the frame images would come from "rendering" our QWidgets to QPixmaps or QImages).
Also, there doesn't seem to be any information about whether anything special has to be done with respect to video codecs for creating video files (e.g. avi, mp4, or animated gif).  I'd like to give it a try, but that's not doable (nor meaningful) if we can't get QImages and QPixmaps into these Qt5 video-handling classes.
---

___ 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 component repositories

2016-01-26 Thread Jason H
> The most helpful initiatives for Qt is the one that de-fragments it. Qt 
> community isn't big enough to cut it into pieces...


I completely agree. We are too small to be fragmented. We should resolve this 
sooner than later. I also like the idea that it gets carried forth by an 
organization - as part of the project a first-class binary like qmake.

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


[Interest] Summary of Android 6.0 issues?

2016-01-20 Thread Jason H
My phone finally got the OTA update for marshmallow - but I have not installed 
it yet. 

I am developing with Qt on Android. Is there anyone else here that has 6.0? Any 
issues developing for Android? Not that it matters, but my host platform is OSX.

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


[Interest] Speeding up linking for iOS?

2016-02-15 Thread Jason H
It takes forever for my app to link for iOS. Is there anyway to speed this up?

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


Re: [Interest] C++/QML Sequence Type to JavaScript Array

2016-02-18 Thread Jason H

> MyData object filled with some data and exposed as context property to QML. 
> At QML i imported QtPositioning, so QGeoCoordinate refers to coordinate QML 
> basic type, but
> console.log(myData.path) prints QVariant(QList)
> console.log(myData.path) prints undefined
> - there is no sequence, no length.
> 
> Is it possible to expose QList sequence to QML, where Type known by 
> meta object system and refers to QML basic type provided by an QtQuick module?
> I know that i can expose C++ property of type QVariantList , but what is that 
> opaque conversion mentioned in docs.

I think you want to convert them to a QList ? I do that and it 
works. 

I don't know that I'm using the builr-in opaque conversion, but maybe that is 
just a matter of having a QVariantMap conversion?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Minimum work needed to update bundle for Apple App Store?

2016-02-18 Thread Jason H
Recently, Apple started requiring a 167x167px icon for iPad Pro.
I added the entry to the Info.plist,  but was unsure of what to do. 
Will the icon be included in the bundle just from from the plist change?
Will I have to rebuild the app?
Will it only update when the .xcodeproj is rebuilt, and if so, how do I 
regenerate that?

It took me a few tries to get it included, that's why I'm asking.

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


[Interest] QML id property to string?

2016-03-10 Thread Jason H
A few times now, I've wanted to display the id as a string. Usually when 
something goes wrong on the console, but sometimes in a hash/map.  I've got a 
function that takes an object (QML item) and does some processing on it. Is 
there a way to get it? I know I can just set a property, but then that has to 
be maintained separately. 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML id property to string?

2016-03-10 Thread Jason H

Yes, Ideally what I want:

1. Be able to get object id as string

2. Search the object heirarchy for that string and get that object 

 

Sent: Thursday, March 10, 2016 at 12:14 PM
From: "Dmitry Volosnykh" <dmitry.volosn...@gmail.com>
To: "Jason H" <jh...@gmx.com>, "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] QML id property to string?


I feel the same need frequently, too. Without such feature I have to set objectName by copy-pasting and qouting id. This is quite annoying.
 

On Thu, Mar 10, 2016 at 8:08 PM Jason H <jh...@gmx.com> wrote:

A few times now, I've wanted to display the id as a string. Usually when something goes wrong on the console, but sometimes in a hash/map.  I've got a function that takes an object (QML item) and does some processing on it. Is there a way to get it? I know I can just set a property, but then that has to be maintained separately.
___
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 Promises

2016-03-10 Thread Jason H
Are promises scheduled to come to QML anytime soon? (5.6/5.7)?

The more code I write in JS, the more async things are getting. Anytime I work 
with XMLHttpRequest or LocalStorage (and worse yet, when I combine them) I get 
into a call-back hell.

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


Re: [Interest] QML id property to string?

2016-03-10 Thread Jason H

Awesome! Thanks.

 

But shouldn't this be in QML by default? Seems like it'd be a simple thing to add and use?

 

 

 

Sent: Thursday, March 10, 2016 at 1:10 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "Dmitry Volosnykh" <dmitry.volosn...@gmail.com>, "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] QML id property to string?


Another useful one:
 


Q_INVOKABLE QString MySingleton::ownership( QObject * object ) const

{

auto ownership = QQmlEngine::contextForObject(object)->engine()->objectOwnership(object);

switch(ownership)

{

case QQmlEngine::CppOwnership: return QString("CppOwnership");

case QQmlEngine::_javascript_Ownership: return QString("_javascript_Ownership");

default: break;

}

       return QString("error");

}



 
On Thu, Mar 10, 2016 at 1:07 PM, Jérôme Godbout <jer...@bodycad.com> wrote:


You can create a C++ method for this, expose it into a C++ singleton to easily access it:
 


Q_INVOKABLE QString MySingleton::idName(QObject * object) const

{

const auto context = qmlContext(object);

return context ? context->nameForObject(object): QString("context not found");

}


 

http://doc.qt.io/qt-5/qqmlcontext.html#nameForObject

 

For Qml it return the context id.

 

Other useful methods would be address and file where the object come from:


Q_INVOKABLE QString MySingleton::objHexAddress(QObject * object) const

{

return QString().sprintf("%08p", object);

}


 


Q_INVOKABLE QUrl MySingleton::whereAmIDeclared(QObject * object) const

{

if (object)

if (auto context = QQmlEngine::contextForObject(object))

return context->baseUrl();

return QUrl();

}


 

This help a lot to debug into the console.

Regards,

Jerome




 
On Thu, Mar 10, 2016 at 12:45 PM, Jason H <jh...@gmx.com> wrote:





Yes, Ideally what I want:

1. Be able to get object id as string

2. Search the object heirarchy for that string and get that object 

 

Sent: Thursday, March 10, 2016 at 12:14 PM
From: "Dmitry Volosnykh" <dmitry.volosn...@gmail.com>
To: "Jason H" <jh...@gmx.com>, "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] QML id property to string?




I feel the same need frequently, too. Without such feature I have to set objectName by copy-pasting and qouting id. This is quite annoying.
 

On Thu, Mar 10, 2016 at 8:08 PM Jason H <jh...@gmx.com> wrote:

A few times now, I've wanted to display the id as a string. Usually when something goes wrong on the console, but sometimes in a hash/map.  I've got a function that takes an object (QML item) and does some processing on it. Is there a way to get it? I know I can just set a property, but then that has to be maintained separately.
___
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] Upcoming mobile Qt features?

2016-03-14 Thread Jason H
I'm being asked for more modern features, I don't know where these are on the 
Qt roadmap?

- TouchID/FingerprintManager: 
  Now that both mobile platforms have platform-level APIs for fingerprints, is 
Qt going to support them in some way? 

- Streaming video: 
  Capture, send, receive "live" video to enable real-time video chat, yes, like 
skype/google hangouts/facetime. 

Meanwhile, I'm still looking for Qt to abstract these mobile old-but-goodies:
- Push notifications
- Background operations
- Screen wake-locking
(I have a platform shim for those, but would just prefer to use a standard 
x-platform interface)

Anyone know the 5.7/5.8 roadmap? The only mobile thing listed on the wiki is:
- Android: Qt can now be used to easily create Android Services*

* This seems to be an either-or. Not an app with services?

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


Re: [Interest] Upcoming mobile Qt features?

2016-03-14 Thread Jason H

I'm not waiting, but these are barriers to adoption for new users, and 
frustrations for current users.



> Sent: Monday, March 14, 2016 at 3:48 PM
> From: "rpzrpz...@gmail.com" <rpzrpz...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Upcoming mobile Qt features?
>
> Don't wait for anything.
> 
> Native code for Android and IOS.
> 
> md
> 
> On 3/14/2016 1:26 PM, Jason H wrote:
> > I'm being asked for more modern features, I don't know where these are on 
> > the Qt roadmap?
> >
> > - TouchID/FingerprintManager:
> >Now that both mobile platforms have platform-level APIs for 
> > fingerprints, is Qt going to support them in some way?
> >
> > - Streaming video:
> >Capture, send, receive "live" video to enable real-time video chat, yes, 
> > like skype/google hangouts/facetime.
> >
> > Meanwhile, I'm still looking for Qt to abstract these mobile 
> > old-but-goodies:
> > - Push notifications
> > - Background operations
> > - Screen wake-locking
> > (I have a platform shim for those, but would just prefer to use a standard 
> > x-platform interface)
> >
> > Anyone know the 5.7/5.8 roadmap? The only mobile thing listed on the wiki 
> > is:
> > - Android: Qt can now be used to easily create Android Services*
> >
> > * This seems to be an either-or. Not an app with services?
> >
> > ___
> > 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] Hybrid Qt/HTML5 app

2016-03-08 Thread Jason H

I *love* Qt, but I think you're talking React here.

 

There is... another...  There is a project called QmlWeb which is a port of QML to the browser. https://github.com/qmlweb/qmlweb This might give you the level of code sharing you want, or at least you might find tolerable, so that your devs 

 

QML is amazing. It shouldn't take much to convince them. QmlWeb should then be the next logical step, takign that level of amazing and bringing it to the web. (And giving you that shared code base)

 

 



Sent: Tuesday, March 08, 2016 at 3:39 PM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app







Generally when someone says "web" they mean something that works in browser. While Qt apps can be Chrome NaCL apps, I don't think this matches most people's idea of "web"





 

Yes, I mean something running in the browser, writing the UI in HTML/CSS/JS I could easily have the web version, that's what I meant by "including web", if I write it in QML I'll need to basically have 2 different UI implementations.






  I would expect QML to outstrip thw web version. Things like webcamera control are possible in HTML5, but you can't control it to the degree that Qt can. Qt runs native on all the platforms, allowing many additional configurations. It also allows (but does not directly handle) Local and Remote push notifications, app backgrounding, etc. 

 






 

The mobile version can have extended features, taking advantage of Qt native capabilities.






I think those are the people thart should be using QML. It is after all, enhanced JS. And it's very visual. I once had a designer code things in QML, with only an hour tutorial. 







In that case I'll need:
1. Convince the developers to learn QML

2. Have different codebase for the mobile UI/web UI

 






 
I think given what you've said about your team,  the features Qt brings to the table would be under appreciated and React would be a better choice. That way they can stay in entirely in JS. 

This way I wouldn't take advantage of Qt native capabilities on mobile version.






 


Em ter, 8 de mar de 2016 às 18:11, Jason H <jh...@gmx.com> escreveu:




I think something like React/ReactNative (http://www.reactnative.com/)  would be better for your team. But My comments are below.

 



Sent: Tuesday, March 08, 2016 at 11:58 AM










From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app











>> You said " cross-platform, including web".  Web, as I understand it, is not a prorietary application. If you said desktop apps, >> that'd be fine. But you specifically included web.
I don't understand your point, really, could you clarify?.

 













Generally when someone says "web" they mean something that works in browser. While Qt apps can be Chrome NaCL apps, I don't think this matches most people's idea of "web"













 

 

>> If you do make a web-only version

>> - it's going to be difficult to maintain feature parity. Perhaps your users can live with a downgraded web experience?

In this statement you're agreeing with me? If I've a web-specific version and a QML version it would be very difficult to keep same features yes.

 













 I would expect QML to outstrip thw web version. Things like webcamera control are possible in HTML5, but you can't control it to the degree that Qt can. Qt runs native on all the platforms, allowing many additional configurations. It also allows (but does not directly handle) Local and Remote push notifications, app backgrounding, etc. 













 

 

>> you also cited your developers that don't want to learn anything new and wanting to resuse existing libraries. While the
>> WebEngine will allow this, Qt would have you using C++ and/or QML at some level.
What's not a problem for me, the backend developer and leave the js developers/designers away from qml.

 













I think those are the people thart should be using QML. It is after all, enhanced JS. And it's very visual. I once had a designer code things in QML, with only an hour tutorial. 













 


>> QML, fwiw, is a small derivitive of _javascript_, and is complete joy. It just seems unatural to me to have QML availible but still want to live in JS. Perhaps you are trying to maintain a core, shared codebase, which is an admirable goal, and I'm sure you can do it.
QML is far from HTML/CSS enough, and yes, one of my goals is to have a shared codebase.














 

I think given what you've said about your team,  the features Qt brings to the table would be under apprecia

Re: [Interest] QML Promises

2016-03-11 Thread Jason H

Nice. Thank you.

Sent: Thursday, March 10, 2016 at 5:41 PM
From: "Gunnar Roth" <gunnar.r...@gmx.de>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] QML Promises


Maybe have a look here https://github.com/benlau/quickpromise

 

Regards,

Gunnar Roth

 


Am 10.03.2016 um 23:31 schrieb Jason H <jh...@gmx.com>:
 


Are promises scheduled to come to QML anytime soon? (5.6/5.7)?

The more code I write in JS, the more async things are getting. Anytime I work with XMLHttpRequest or LocalStorage (and worse yet, when I combine them) I get into a call-back hell.

___
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] Dynamic translations for mobile apps at runtime?

2016-03-11 Thread Jason H
So we had a great thread about "dynamic translations" Its in and working well. 
(Thanks everyone)

And while I have a slick update procedure for adding dictionaries at run time, 
I am wondering about adding translation strings at runtime?

Here's what's happening:
- App is in a language (Now, can be more than English)
- User logs in, the user has a language on their profile
- That profile is selected on the UI
- The server sends content in that language (JSON)

The reason for this is some of the content is user-configurable, and as a 
result, the server has it's own internal translation tables. Currently, I can 
toggle the UI language, but the server delivered content stays the same. It 
would be nice if I could retranslate both. However the lupdate/lrelease 
workflow won't work someone suggested using localise.biz, but then we have to 
coordinate the strings, and we want to have the web UI without dependencies. My 
backend team won't be happy, but we (really just me) . I could then:
My options are:
a. could write a binary for direct DB tables-to-QM file translation, load the 
server translations into a QTranslator and have it just work, 
or
b. use some QTranslator API to dynamically add translations at runtime.

Both don't seem possible as there is no non-private API to write QM files, and 
there is no API to alter the QTranslator.

I'm hoping maybe the QM file format is just some kind of QMap? 




___
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-11 Thread Jason H
Ooops. I concretely missed the `virtual`.


> Sent: Friday, March 11, 2016 at 11:15 AM
> From: "Julien Cugnière" <julien.cugni...@gmail.com>
> To: "Jason H" <jh...@gmx.com>
> Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
> Subject: Re: [Interest] Dynamic translations for mobile apps at runtime?
>
> QTranslator::translate is virtual. Its documentation even says "If you
> need to programatically insert translations into a QTranslator, this
> function can be reimplemented." :-)
> 
> So you can create a QTranslator based class that returns translations
> from your own list if the QM file found nothing.
> Julien Cugnière
> 
> 
> 2016-03-11 17:08 GMT+01:00 Jason H <jh...@gmx.com>:
> > So we had a great thread about "dynamic translations" Its in and working 
> > well. (Thanks everyone)
> >
> > And while I have a slick update procedure for adding dictionaries at run 
> > time, I am wondering about adding translation strings at runtime?
> >
> > Here's what's happening:
> > - App is in a language (Now, can be more than English)
> > - User logs in, the user has a language on their profile
> > - That profile is selected on the UI
> > - The server sends content in that language (JSON)
> >
> > The reason for this is some of the content is user-configurable, and as a 
> > result, the server has it's own internal translation tables. Currently, I 
> > can toggle the UI language, but the server delivered content stays the 
> > same. It would be nice if I could retranslate both. However the 
> > lupdate/lrelease workflow won't work someone suggested using localise.biz, 
> > but then we have to coordinate the strings, and we want to have the web UI 
> > without dependencies. My backend team won't be happy, but we (really just 
> > me) . I could then:
> > My options are:
> > a. could write a binary for direct DB tables-to-QM file translation, load 
> > the server translations into a QTranslator and have it just work,
> > or
> > b. use some QTranslator API to dynamically add translations at runtime.
> >
> > Both don't seem possible as there is no non-private API to write QM files, 
> > and there is no API to alter the QTranslator.
> >
> > I'm hoping maybe the QM file format is just some kind of QMap?
> >
> >
> >
> >
> > ___
> > 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 Image

2016-03-19 Thread Jason H
A picture would help
 

Sent: Thursday, March 17, 2016 at 1:15 AM
From: "Jani Tykka" <jty...@broadsoft.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] QML Image


Source size was already set as the original image size. When mipmap is set colors seems to be even more distorted.

 
On Wed, Mar 16, 2016 at 10:45 PM, Jason H <jh...@gmx.com> wrote:





Since you mention gradients, try setting source size or the mipmap properties. I wonder if you're getting some subsampling issue.

 

 

Sent: Wednesday, March 16, 2016 at 8:26 AM
From: "Jani Tykka" <jty...@broadsoft.com>
To: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: [Interest] QML Image





Hi,

 
I'm using Qt 5.5.1. When quick2 window renders png-image defined in QML Image element it seems that colors are not rendered exactly as defined in source png-image. This seems to happen on images which have more complicated color fills, like gradients. Is there anything that can be done to achieve exact presentation from source image? Any explanation what is causing the difference?

 

Thanks,

Jani 






 

This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient and have received this email in error, please notify BroadSoft, Inc. immediately by replying to this message, and destroy all copies of this message, along with any attachment, prior to reading, distributing or copying it.
___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest







 

 
--


Jani Tykkä 
Development Manager | BroadSoft, Inc. | +358 44 596 0587 | jty...@broadsoft.com


 



 

This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient and have received this email in error, please notify BroadSoft, Inc. immediately by replying to this message, and destroy all copies of this message, along with any attachment, prior to reading, distributing or copying it.




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


[Interest] User Auth Confirmation on account.qt.io

2016-03-19 Thread Jason H
Just curious why this is always happening to me. I'm not seeing why I need to 
confirm it every time?

I do have multiple qt.io accounts, but I use incognito mode to maintain 
seperate logins when needed.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML Image

2016-03-19 Thread Jason H

Since you mention gradients, try setting source size or the mipmap properties. I wonder if you're getting some subsampling issue.

 

 

Sent: Wednesday, March 16, 2016 at 8:26 AM
From: "Jani Tykka" 
To: "interest@qt-project.org Interest" 
Subject: [Interest] QML Image



Hi,

 
I'm using Qt 5.5.1. When quick2 window renders png-image defined in QML Image element it seems that colors are not rendered exactly as defined in source png-image. This seems to happen on images which have more complicated color fills, like gradients. Is there anything that can be done to achieve exact presentation from source image? Any explanation what is causing the difference?

 

Thanks,

Jani 

 



 

This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient and have received this email in error, please notify BroadSoft, Inc. immediately by replying to this message, and destroy all copies of this message, along with any attachment, prior to reading, distributing or copying 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] Dynamic translations for mobile apps at runtime?

2016-03-09 Thread Jason H
Great clarification, thanks Andre!

> Sent: Wednesday, March 09, 2016 at 2:24 AM
> From: "André Somers" <an...@familiesomers.nl>
> To: interest@qt-project.org
> Subject: Re: [Interest] Dynamic translations for mobile apps at runtime?
>
> 
> 
> Op 08/03/2016 om 23:21 schreef Jason H:
> > Sounds like there should be a qApp->translations() that we can use to 
> > remove all currently installed translations? Without it, we have to do what 
> > you do.
> Just keep the translators you currently have active around, not all of 
> them. It is useless to new a QTranslator for languages you are not 
> actually using. When switching language, you can remove and then delete 
> the already loaded ones after installing the translations for the newly 
> selected language.
> 
> So, something like this (untested code, typed in email editor):
> 
> QString m_currentLanguage;
> QVector<QTranslator*> m_currentTranslations; //note that for any language, 
> you may need multiple translation files!
> 
> void Backend::selectLanguage( QString language ) {
>if (language == m_currentLanguage)
>  return;
> 
>QVector oldTranslators = m_currentTranslations;
>m_currentTranslations.clear();
> 
>//repeat for every translation file you need to install, ie for your own 
> app, for Qt itself, for libraries...
>translator = new QTranslator(this);
>translator->load( language, commonPath()+"/translations" );
>qApp->installTranslator(translator);
>m_currentTranslations.append(translator);
> 
>//now, get rid of the old translators
>foreach(QTranslator* oldTranslator, oldTranslators) {
>  qApp->removeTranslator(oldTranslator);
>  delete oldTranslator;
>}
> }
> 
> 
> 
> André
> 
> >
> >
> >> Sent: Tuesday, March 08, 2016 at 3:44 PM
> >> From: Gianluca <gmax...@gmail.com>
> >> To: "Jason H" <jh...@gmx.com>
> >> Cc: "interest@qt-project.org" <interest@qt-project.org>
> >> Subject: Re: [Interest] Dynamic translations for mobile apps at runtime?
> >>
> >> qApp->installTranslator add a new translation into the stack. Does not 
> >> remove the old ones.
> >> So, if the user click 10 times: Italian - English - Italian - English … 
> >> etc…
> >> you got ten translator into the memory.
> >> That’s because the translation is searched into the order on which the 
> >> translator are installed into the stack.
> >>
> >> That’s why I remove everything so there is only one translators at time 
> >> into the memory.
> >>
> >> Il giorno 08/mar/2016, alle ore 18:46, Jason H <jh...@gmx.com> ha scritto:
> >>
> >>> I'm wondering why you load all those languages and then remove all but 
> >>> one of them? Being a mobile app, I have to be somewhat conscience of 
> >>> memory foot print. Do you see anything wrong with:
> >>>
> >>> void Backend::selectLanguage( QString language ) {
> >>> translator = new QTranslator(this);
> >>> translator->load( language, commonPath()+"/translations" );
> >>> qApp->installTranslator(translator);
> >>> }
> >>>
> >>> ?
> >>>
> >>>
> >>>> 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", 

[Interest] QML offline storage and Non-QML database sharing

2016-03-09 Thread Jason H
I have an increasing need for QML aspects of my software to interact and 
coordinate through a database to the C++ side. Case and point:
I have a C++ class that is exposed to QML that needs to work in the same 
database as QML.

There is the QQmlEngine::offlineStoragePath(), which returns some variation of 
app directory + "QML/OfflineStorage". This is close (aside from it just being a 
guess as to how it is obtained, however I want to say: "MyDb"
Which then should return 
appDir+"QML/OfflineStorage/Databases"+QCryptograhicHash("myDb", 
QCryptograhicHash::Md5)+".sqlite" (or whatever is proper. For example, android 
is "/data/data/com.co.app/files/QML/OfflineStorage" <- see the files part?) 

I think there needs to be a formal API for the C++ side to acquire the proper 
path (no guessing "QML/OfflineStorage"). 

Als a follow up question, how does the QML side work with the connection 
"qt_sql_default_connection"? 
Is it possible to have only one connection shared with C++ and QML? 
Will QML open it's own connection?
Do I have to maintain both connections?

Thanks.

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


Re: [Interest] Moving from Parse

2016-03-28 Thread Jason H
I'm not sure I see your problem. You're using Qt, you can use QJson* classes, QNAM, and interop with these without issue.

I believe you can just use MongoDB, as a JS object store. I've not done that though, but that seems the path of most resistence. I personally just roll my own using Node/Express/Postgres (since the newer Prostgres has JSONB datatype)

 

Sent: Monday, March 28, 2016 at 2:12 PM
From: "Nuno Santos" 
To: interest 
Subject: [Interest] Moving from Parse




Hi,
 

Since Parse announced it’s shutdown I have been looking for a pain free and scaling solution.

 

The most difficult problem is to find a baas/daas that has a C++ client lib. All platforms out there only provide REST API as an alternative to iOS and Android libs.

 

Question: what are you people using for baas/daas of your Qt based applications? 

 

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


Re: [Interest] Problem location symbol on android

2016-04-08 Thread Jason H
I'm not sure of your exact issue, looks good to me. But do note:

1. You may need a QTPLUGIN

2. The android dynamic linker is single-pass, one-way. All prerequisites must me loaded prior to the library containing depenencies.

 

But, given your logs I think it should be working. I've not used the XMLdirectly, only so far as for SVG. in which case I have:


QT +=  svg xml 


android|osx {

	QTPLUGIN += qsvg
}





HTH

 


Sent: Thursday, April 07, 2016 at 7:15 PM
From: "Lorne Sturtevant" 
To: interest@qt-project.org
Subject: [Interest] Problem location symbol on android


I have a project that I'm trying to get working on android.   I'm using Qt Creator to build and run everything. The program compiles, links and deploys.  When it runs, I get the following error:
 
Starting remote process.V/Zygote (20264): Switching descriptor 33 to /dev/null

V/Zygote (20264): Switching descriptor 9 to /dev/null

D/dalvikvm(20264): Late-enabling CheckJNI

I/ActivityManager( 436): Start proc org.qtproject.example.test_mage for activity org.qtproject.example.test_mage/org.qtproject.qt5.android.bindings.QtActivity: pid=20264 uid=10109 gids={50109, 3003, 1028, 1015}

D/ActivityThread(20264): handleBindApplication:org.qtproject.example.test_mage

D/ActivityThread(20264): setTargetHeapUtilization:0.75

D/ActivityThread(20264): setTargetHeapMinFree:524288

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Core.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Core.so 0x2c665238

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x2c665238

I/Qt (20264): qt start

D/dalvikvm(20264): Trying to load lib /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so 0x2c665238

D/dalvikvm(20264): Added shared lib /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so 0x2c665238

D/dalvikvm(20264): No JNI_OnLoad found in /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so 0x2c665238, skipping init

D/dalvikvm(20264): Trying to load lib /data/app-lib/org.qtproject.example.test_mage-2/libmage.so 0x2c665238


Re: [Interest] qtWebsocket SSL question

2016-04-08 Thread Jason H
Use openssl's cert generation features. 

> Sent: Friday, April 08, 2016 at 11:24 AM
> From: "Alexander Carôt" 
> To: "qt qt" 
> Subject: [Interest] qtWebsocket SSL question
>
> Hello all,
> 
> I just started investigating websockets with Qt and now have a question 
> regarding this example:
> 
> http://doc.qt.io/qt-5/qtwebsockets-sslechoserver-example.html
> 
> I compiled it but encountered the issue of missing files:
> 
> RCC: Error in 'securesocketclient.qrc': Cannot find file 'localhost.cert'
> make: *** [qrc_securesocketclient.cpp] Error 1
> 
> In securesocketclient.qrc the following files are required:
> 
> 
> 
> localhost.cert
> localhost.key
> 
> 
> 
> and I wonder how or where to generate them and since I have no experience 
> with security and certificates etc. I'd appreciate any comment.
> 
> Thanks in advance,
> best
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] User Auth Confirmation on account.qt.io

2016-03-20 Thread Jason H


> Sent: Friday, March 18, 2016 at 4:01 AM
> From: "Nikos Chantziaras" <rea...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] User Auth Confirmation on account.qt.io
>
> On 17/03/16 16:32, Jason H wrote:
> > Just curious why this is always happening to me. I'm not seeing why I need 
> > to confirm it every time?
> >
> > I do have multiple qt.io accounts, but I use incognito mode to maintain 
> > seperate logins when needed.
> 
> Incognito mode deleted all your session information when you exit the 
> browser.
> 
> The whole point of incognito is to make it impossible for other users to 
> know where you browsed to. If it remembered session information, that 
> would defeat the point of incognito :-)


I'm not getting that in incognito mode. I'm getting that anytime I'm not incog 
and going to qt.io
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Canvas keeping artifacts

2016-03-23 Thread Jason H

Thanks for the tip, but a few things:

1. I don't think clearRect uses fillStyle

2. I don't think clearRect needs a fill, as "clear" implies both color and fill op. http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_clearrect

 

 

I had played with that, including your code, no luck.

It looks like the Black Sabbath - Paraoid album cover. 

 

 

Sent: Wednesday, March 23, 2016 at 5:11 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts


You may want to clear fill with blank transparency:

 

ctx.fillStyle = 'rgba(0,0,0,0)';

ctx.clearRect(0,0,width,height);

ctx.fill();


 

for me it did the trick.


 
On Wed, Mar 23, 2016 at 4:54 PM, Jason H <jh...@gmx.com> wrote:

I have a very simple pause button:
        Canvas {
                id: pauseCanvas
                anchors.fill: parent
                onWidthChanged: requestPaint()
                onHeightChanged: requestPaint()
                onPaint: {
                        var ctx = getContext('2d');
                        ctx.save()
                        ctx.clearRect(0,0, width,height)
                        ctx.fillStyle = color;
                        ctx.rect(0.125*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.rect(0.625*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.restore();
                }
        }

The problem is when I resize the window (which in turn resizes the canvas), I get artifacts of previous draws. If the window is made larger (corner drag or maximize) I can see the smaller original rectangles. And vice-versa.

How can I get Canvas to play nice?


___
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] Canvas keeping artifacts

2016-03-23 Thread Jason H
I have a very simple pause button:
Canvas {
id: pauseCanvas
anchors.fill: parent
onWidthChanged: requestPaint()
onHeightChanged: requestPaint()
onPaint: {
var ctx = getContext('2d');
ctx.save()
ctx.clearRect(0,0, width,height)
ctx.fillStyle = color;
ctx.rect(0.125*width, 0.05*height, 0.25*width, 
0.90*height);
ctx.fill();
ctx.rect(0.625*width, 0.05*height, 0.25*width, 
0.90*height);
ctx.fill();
ctx.restore();
}
}

The problem is when I resize the window (which in turn resizes the canvas), I 
get artifacts of previous draws. If the window is made larger (corner drag or 
maximize) I can see the smaller original rectangles. And vice-versa. 

How can I get Canvas to play nice?


___
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 Jason H
> Sent: Wednesday, March 23, 2016 at 4:23 PM
> From: "Thiago Macieira" <thiago.macie...@intel.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Very large QRC file
>
> On quarta-feira, 23 de março de 2016 16:39:02 EDT 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?
> 
> CONFIG += resources_big


 Nice. Since 5.4. Never knew. "Just works". Thanks!
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Canvas keeping artifacts

2016-03-24 Thread Jason H

ctx.reset(); fixes it.

 


Again, I think you have meaningless statements.


ctx.beginPath(); // It's not a path

ctx.fillStyle = 'rgba(0,0,0,0)'; // it's not using fillStyle

ctx.clearRect(0,0,width,height); // this works

ctx.fill(); // there is no closed path to fill

 



Sent: Wednesday, March 23, 2016 at 6:21 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts


Canvas
{

        id: component

        //...


        renderStrategy: Canvas.Immediate

        renderTarget: Canvas.FramebufferObject


 

        onWidthChanged: requestPaint()
        onHeightChanged: requestPaint()


        onPaint: paintHandler()

 


        function paintHandler()

{

var ctx = getContext('2d');

ctx.reset();

// clear with transparent

ctx.beginPath();

ctx.fillStyle = 'rgba(0,0,0,0)';

ctx.clearRect(0,0,width,height);

ctx.fill();

// Set general style

                ...

// Call draw functions here

...

}


}


 

At a few overhead near, this is what I do, the thing is clear, I guess my ctx.reset() is the missing key here, I had problems too with this clear thing with Qml Canvas where Html canvas where working perfectly fine with the same code.

 

My guess is that the Widgets try to redraw as little as possible somehow, not sure if a replacement to the requestPaint() or a function that will:

function myRequestPaint()

{

      markDirty(Qt.rect(0,0,width,height));

      requestPaint();

}

 


onWidthChanged: myRequestPaint()
onHeightChanged: myRequestPaint()

 

Hope this help you out, let me know if the makeDirty() change anything, I may change my code for it too.

 

Jerome


 
On Wed, Mar 23, 2016 at 5:26 PM, Jason H <jh...@gmx.com> wrote:





Thanks for the tip, but a few things:

1. I don't think clearRect uses fillStyle

2. I don't think clearRect needs a fill, as "clear" implies both color and fill op. http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_clearrect

 

 

I had played with that, including your code, no luck.

It looks like the Black Sabbath - Paraoid album cover. 

 

 

Sent: Wednesday, March 23, 2016 at 5:11 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts




You may want to clear fill with blank transparency:

 

ctx.fillStyle = 'rgba(0,0,0,0)';

ctx.clearRect(0,0,width,height);

ctx.fill();


 

for me it did the trick.


 
On Wed, Mar 23, 2016 at 4:54 PM, Jason H <jh...@gmx.com> wrote:

I have a very simple pause button:
        Canvas {
                id: pauseCanvas
                anchors.fill: parent
                onWidthChanged: requestPaint()
                onHeightChanged: requestPaint()
                onPaint: {
                        var ctx = getContext('2d');
                        ctx.save()
                        ctx.clearRect(0,0, width,height)
                        ctx.fillStyle = color;
                        ctx.rect(0.125*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.rect(0.625*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.restore();
                }
        }

The problem is when I resize the window (which in turn resizes the canvas), I get artifacts of previous draws. If the window is made larger (corner drag or maximize) I can see the smaller original rectangles. And vice-versa.

How can I get Canvas to play nice?


___
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] Canvas keeping artifacts

2016-03-24 Thread Jason H

By the way, reset() is not a W3C function, and it's also not in the QML Canvas documentation.

 

I'm wondering how you found it?

 

 

 

Sent: Thursday, March 24, 2016 at 9:42 AM
From: "Jason H" <jh...@gmx.com>
To: "Jérôme Godbout" <jer...@bodycad.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts




ctx.reset(); fixes it.

 


Again, I think you have meaningless statements.


ctx.beginPath(); // It's not a path

ctx.fillStyle = 'rgba(0,0,0,0)'; // it's not using fillStyle

ctx.clearRect(0,0,width,height); // this works

ctx.fill(); // there is no closed path to fill

 



Sent: Wednesday, March 23, 2016 at 6:21 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts


Canvas
{

        id: component

        //...


        renderStrategy: Canvas.Immediate

        renderTarget: Canvas.FramebufferObject


 

        onWidthChanged: requestPaint()
        onHeightChanged: requestPaint()


        onPaint: paintHandler()

 


        function paintHandler()

{

var ctx = getContext('2d');

ctx.reset();

// clear with transparent

ctx.beginPath();

ctx.fillStyle = 'rgba(0,0,0,0)';

ctx.clearRect(0,0,width,height);

ctx.fill();

// Set general style

                ...

// Call draw functions here

...

}


}


 

At a few overhead near, this is what I do, the thing is clear, I guess my ctx.reset() is the missing key here, I had problems too with this clear thing with Qml Canvas where Html canvas where working perfectly fine with the same code.

 

My guess is that the Widgets try to redraw as little as possible somehow, not sure if a replacement to the requestPaint() or a function that will:

function myRequestPaint()

{

      markDirty(Qt.rect(0,0,width,height));

      requestPaint();

}

 


onWidthChanged: myRequestPaint()
onHeightChanged: myRequestPaint()

 

Hope this help you out, let me know if the makeDirty() change anything, I may change my code for it too.

 

Jerome


 
On Wed, Mar 23, 2016 at 5:26 PM, Jason H <jh...@gmx.com> wrote:





Thanks for the tip, but a few things:

1. I don't think clearRect uses fillStyle

2. I don't think clearRect needs a fill, as "clear" implies both color and fill op. http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_clearrect

 

 

I had played with that, including your code, no luck.

It looks like the Black Sabbath - Paraoid album cover. 

 

 

Sent: Wednesday, March 23, 2016 at 5:11 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts




You may want to clear fill with blank transparency:

 

ctx.fillStyle = 'rgba(0,0,0,0)';

ctx.clearRect(0,0,width,height);

ctx.fill();


 

for me it did the trick.


 
On Wed, Mar 23, 2016 at 4:54 PM, Jason H <jh...@gmx.com> wrote:

I have a very simple pause button:
        Canvas {
                id: pauseCanvas
                anchors.fill: parent
                onWidthChanged: requestPaint()
                onHeightChanged: requestPaint()
                onPaint: {
                        var ctx = getContext('2d');
                        ctx.save()
                        ctx.clearRect(0,0, width,height)
                        ctx.fillStyle = color;
                        ctx.rect(0.125*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.rect(0.625*width, 0.05*height, 0.25*width, 0.90*height);
                        ctx.fill();
                        ctx.restore();
                }
        }

The problem is when I resize the window (which in turn resizes the canvas), I get artifacts of previous draws. If the window is made larger (corner drag or maximize) I can see the smaller original rectangles. And vice-versa.

How can I get Canvas to play nice?


___
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] Amharic character support?

2016-03-24 Thread Jason H
Amharic (Ethiopian) is giving me some trouble. All the other languages are 
fine. What do I need to do get Amharic characters showing? They are rendered as 
boxes.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Amharic character support?

2016-03-24 Thread Jason H
> On quinta-feira, 24 de março de 2016 17:41:30 PDT Jason H wrote:
> > Amharic (Ethiopian) is giving me some trouble. All the other languages are
> > fine. What do I need to do get Amharic characters showing? They are
> > rendered as boxes. 
> 
> How are you sure you have a font with those characters? Are you sure you're 
> using that font?

I'm not sure at all. I'm using Monserrat, which is a google font, which works 
for every language I have except that one. But somehow my browser can display 
it. I copied the text out of chrome and plopped it in.

property var nativeLanguages: {
'english' : 'english',  // ok
'amharic' : 'አማርኛ', // not ok, except in chrome
'arabic' : 'عربي عربى', // ok
'burmese' : 'မြန်မာစကာ',// ok
'french' : 'français',// ok
'kinyarwanda' : 'kinyarwanda',// ok
'mandarin' : '普通话',// ok
'portugese' : 'português',// ok
'spanish' : 'español',// ok
'swahili' : 'swahili'// ok
}
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Amharic character support?

2016-03-24 Thread Jason H
Awesome, thanks for the link.

FYI: To use:
main.cpp: 
QFontDatabase::addApplicationFont(":/assets/NotoSansEthiopic-Regular.ttf");
MyText.qml: Text{ family: "Montserrat,Noto Sans Ethiopic" }

> Sent: Thursday, March 24, 2016 at 3:14 PM
> From: "Jesse Jaara" <jesse.ja...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Amharic character support?
>
> 24.03.2016, 20:44, Jason H kirjoitti:
> > I'm not sure at all. I'm using Monserrat, which is a google
> > font, which works for every language I have except that one.
> > But somehow my browser can display it. I copied the text out
> > of chrome and plopped it in.
> 
> Actually the Montserrat font from google only supports Latin characters. 
> Your system is simply falling back to use another
> for all those languages. You may want to use the Noto Sans family
> of fonts instead, which includes a font for amharic too.
> 
> https://www.google.com/get/noto
> ___
> 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] Displaying First video frame (android)

2016-03-25 Thread Jason H
I have an app that on OSX, I can play() and pause() back-to-back to get the 
first frame on screen.

On android this doesn't seem  to work, it stays black (black background rect). 
Is there a way I can ensure the first videoframe is presented?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt/JNI blows up on android when activity is closed

2016-03-22 Thread Jason H
As my app's tendrils root further into the mobile OSs, I've found one very 
troubling issue. I have an alarm manager and a service to handle the pending 
intent. The service talks to Qt through JNI. This works for as long as my Qt 
Activity exists. However if the activity is closed (user task kills it) the 
service keeps running (as it should) but then the native JNI functions stop 
working.

I'm thinking we should be able to associate the native functions with the 
application, or a default service so that the native functions always exist?
Is there a way to prevent this? Logs below. This does work until the activity 
is killed.

D/Recents_TaskStackView( 2989): onStackTaskRemoved Task=Task (no group): 
com.app.a [com.android.systemui.recents.model.Task@33d63ca2]
D/Recents_TaskStackView( 2989): getChildViewForTask t=Task (no group): 
com.app.a [com.android.systemui.recents.model.Task@33d63ca2]
V/ApplicationPolicy(  784): isApplicationStateBlocked userId 0 pkgname com.app.a
I/WindowState(  784): WIN DEATH: Window{1d9235ab u0 
com.app.a/com.app.MyActivity}
W/WindowManager(  784): Force-removing child win Window{18d9c46a u0 
SurfaceView} from container Window{1d9235ab u0 com.app.a/com.app.MyActivity}
I/ActivityManager(  784): Process com.app.a (pid 23416)(adj 0) has died(100,423)
W/ActivityManager(  784): Scheduling restart of crashed service 
com.app.a/com.app.ServerService in 1000ms
I/ActivityManager(  784): Start proc com.app.a for service 
com.app.a/com.app.a.ServerService: pid=26206 uid=10246 gids={50246, 9997, 3003, 
1028, 1015} abi=armeabi-v7a
D/app ServerServiceTask(26206): created
D/app ServerServiceTask(26206): onStartCommand
D/app ServerServiceTask(26206): sendBackgroundChunk running...
E/art (26206): No implementation found for boolean 
com.app.MyApplication.ready() (tried Java_com_app_MyApplication_ready and 
Java_com_app_MyApplication_ready__)
E/AndroidRuntime(26206): Process: com.app.a, PID: 26206
E/AndroidRuntime(26206): Caused by: java.lang.UnsatisfiedLinkError: No 
implementation found for boolean com.app.MyApplication.ready() (tried 
Java_com_app_MyApplication_ready and Java_com_app_MyApplication_ready__)
E/AndroidRuntime(26206):at com.app.MyApplication.ready(Native Method)
E/AndroidRuntime(26206):at 
com.app.ServerService$SyncServerTask.doInBackground(ServerService.java:55)
E/AndroidRuntime(26206):at 
com.app.ServerService$SyncServerTask.doInBackground(ServerService.java:50)

... eventually ...

W/ActivityManager(  784): Process com.app.a has crashed too many times: killing!
I/ActivityManager(  784): Killing 27664:com.app.a/u0a246 (adj 0): crash
D/CrashAnrDetector(  784): processName: com.app.a
D/CrashAnrDetector(  784): broadcastEvent : com.app.a data_app_crash
W/ActivityManager(  784): Unable to launch app com.app.a/10246 for service 
Intent { cmp=com.app.a/com.app.ServerService }: process is bad

... last line repeats forever ...

___
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 Jason H
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


[Interest] Very large QRC file

2016-03-23 Thread Jason H
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


Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H

> Notice the -no-compress option too this can save runtime CPu costs involved 
> with decompressing the data especially for already compressed formats such as 
> most video codecs.
> 
> Then in your c++ source add:
> 
> QResource::registerResource("mybigmedia.qrb");
> 
> and use it just like any other resource. Just remember to deploy the qrb file 
> with your app.


Thanks, that seems to have fixed my compile time, but the call to 
registerResource fails.
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qDebug() << "registerResource" << 
QResource::registerResource("media.qrb"); // FALSE

QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

return app.exec();
}

However the build directory contains: media.qrb (100mb)
However when the app is launched it is that build dir plus 
"VideoPlayerHIV.app/Contents/MacOS"

How can I set this up in a platform independent way? (Develop on OSX, deploy to 
iOS/Android)
___
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 Jason H

> Op 23/03/2016 om 16:57 schreef Jason H:
> > 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.
> Please don't. Don't fill your users' devices with assets they are not 
> going to use, like video or audio for different languages. It doesn't 
> scale. Instead, get the right contents for your application on demand 
> when first requested, so you only store on the users device what the 
> user actually needs.

Normally, I would agree with you, but we are deploying the app to 
connectivity-limited areas. We get one shot to load the tablet.  Not everywhere 
on the planet has it as good as the western world.

___
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 Jason H

> 
> mac {
> asset_builder.output = 
> $$OUT_PWD/VideoPlayerHIV.app/Contents/MacOs/${QMAKE_FILE_IN_BASE}.qrb
> } else {
> asset_builder.output = $$OUT_PWD/${QMAKE_FILE_IN_BASE}.qrb
> }
> 
> Or similar.


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


Re: [Interest] Canvas keeping artifacts

2016-03-25 Thread Jason H


> Sent: Friday, March 25, 2016 at 5:14 AM
> From: "Nikita Krupenko" <krne...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Canvas keeping artifacts
>
> 2016-03-24 15:49 GMT+02:00 Jason H <jh...@gmx.com>:
> > By the way, reset() is not a W3C function, and it's also not in the QML
> > Canvas documentation.
> >
> > I'm wondering how you found it?
> 
> In fact, it is in the doc:
> https://doc.qt.io/qt-5/qml-qtquick-context2d.html#reset-method


Ah, I see what I happened. I read docs for Canvas element, and missed the link 
for "Context2D", which has the info. 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Jason H

Some more background would help. With the flexibility of QML, why would you want to restrict yourself to HTML? There are 3 paragigms at play:

1. Classic C++ Qt, parent-child heiarchial based layouts.

2. QML, Anchor and parent/child/sibling based layouts 

3. HTML, DOM based layouts

 

My choice is QML, though I do find myself working in C++ occasionally. And I drop to C++ for good reason: There are some things that are just not do-able in HTML5 yet.

 



Sent: Tuesday, March 08, 2016 at 6:22 AM
From: "Daniel França" 
To: "interest@qt-project.org" 
Subject: [Interest] Hybrid Qt/HTML5 app


Hi guys,
I was planning to create an hybrid app using Qt/QML/HTML5.
The application should be able to inject some QML elements or Qt widgets inside and interact with it.


I found that we can do that using WebKit [1] (at least for Qt widgets)

But it seems that it's not yet implemented in WebEngine (isn't Webkit deprecated?).

Does anyone has experience doing a similar thing? Which approach do you think is better? How do you suggest to work with Qt/QML/HML5?

Best,
Daniel

 

[1] http://daniel-albuschat.blogspot.nl/2008/12/embedding-qt-widgets-into-qtwebkit.html

___ 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] Hybrid Qt/HTML5 app

2016-03-08 Thread Jason H

Then you have only one option: HTML5

With webkit, you  would have the requirement that your clients would need to download and install the Qt Webkit app, just like as if hthey were downloading chrome. If you have to work in chrome/safari/ie, then Qt is out.

 

 

Sent: Tuesday, March 08, 2016 at 10:08 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app


Thanks for answer it, but I don't understand why you need the background to answer the question, but here it goes:
 

1. I want to make it cross-platform, including web.

2. I'm working with designers/js developers who are not interested in learning a new language/framework

3. I want to reuse all the bunch of libraries/frameworks we already have for JS/HTML/CSS

Best,
Daniel

 

 


Em ter, 8 de mar de 2016 às 15:47, Jason H <jh...@gmx.com> escreveu:





Some more background would help. With the flexibility of QML, why would you want to restrict yourself to HTML? There are 3 paragigms at play:

1. Classic C++ Qt, parent-child heiarchial based layouts.

2. QML, Anchor and parent/child/sibling based layouts 

3. HTML, DOM based layouts

 

My choice is QML, though I do find myself working in C++ occasionally. And I drop to C++ for good reason: There are some things that are just not do-able in HTML5 yet.

 



Sent: Tuesday, March 08, 2016 at 6:22 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "interest@qt-project.org" <interest@qt-project.org>
Subject: [Interest] Hybrid Qt/HTML5 app

 












Hi guys,
I was planning to create an hybrid app using Qt/QML/HTML5.
The application should be able to inject some QML elements or Qt widgets inside and interact with it.


I found that we can do that using WebKit [1] (at least for Qt widgets)

But it seems that it's not yet implemented in WebEngine (isn't Webkit deprecated?).

Does anyone has experience doing a similar thing? Which approach do you think is better? How do you suggest to work with Qt/QML/HML5?

Best,
Daniel

 

[1] http://daniel-albuschat.blogspot.nl/2008/12/embedding-qt-widgets-into-qtwebkit.html













___ 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] Hybrid Qt/HTML5 app

2016-03-08 Thread Jason H
You said " cross-platform, including web".  Web, as I understand it, is not a prorietary application. If you said desktop apps, that'd be fine. But you specifically included web.

 

If you do make a web-only version

- it's going to be difficult to maintain feature parity. Perhaps your users can live with a downgraded web experience? 

- you also cited your developers that don't want to learn anything new and wanting to resuse existing libraries. While the WebEngine will allow this, Qt would have you using C++ and/or QML at some level. QML, fwiw, is a small derivitive of _javascript_, and is complete joy. It just seems unatural to me to have QML availible but still want to live in JS. Perhaps you are trying to maintain a core, shared codebase, which is an admirable goal, and I'm sure you can do it. 


 

I think a better approach would be to use HTML to construct whatever Widgets or elements you need and stick with that. A lot can be done with HTML Canvas. 

 


Sent: Tuesday, March 08, 2016 at 10:52 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app


Why? I'm not worried at all about the user having to download the app in a mobile or desktop version.
 


Em ter, 8 de mar de 2016 às 16:48, Jason H <jh...@gmx.com> escreveu:





Then you have only one option: HTML5

With webkit, you  would have the requirement that your clients would need to download and install the Qt Webkit app, just like as if hthey were downloading chrome. If you have to work in chrome/safari/ie, then Qt is out.

 

 

Sent: Tuesday, March 08, 2016 at 10:08 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app












Thanks for answer it, but I don't understand why you need the background to answer the question, but here it goes:
 

1. I want to make it cross-platform, including web.

2. I'm working with designers/js developers who are not interested in learning a new language/framework

3. I want to reuse all the bunch of libraries/frameworks we already have for JS/HTML/CSS

Best,
Daniel

 

 


Em ter, 8 de mar de 2016 às 15:47, Jason H <jh...@gmx.com> escreveu:





Some more background would help. With the flexibility of QML, why would you want to restrict yourself to HTML? There are 3 paragigms at play:

1. Classic C++ Qt, parent-child heiarchial based layouts.

2. QML, Anchor and parent/child/sibling based layouts 

3. HTML, DOM based layouts

 

My choice is QML, though I do find myself working in C++ occasionally. And I drop to C++ for good reason: There are some things that are just not do-able in HTML5 yet.

 



Sent: Tuesday, March 08, 2016 at 6:22 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "interest@qt-project.org" <interest@qt-project.org>
Subject: [Interest] Hybrid Qt/HTML5 app

 












Hi guys,
I was planning to create an hybrid app using Qt/QML/HTML5.
The application should be able to inject some QML elements or Qt widgets inside and interact with it.


I found that we can do that using WebKit [1] (at least for Qt widgets)

But it seems that it's not yet implemented in WebEngine (isn't Webkit deprecated?).

Does anyone has experience doing a similar thing? Which approach do you think is better? How do you suggest to work with Qt/QML/HML5?

Best,
Daniel

 

[1] http://daniel-albuschat.blogspot.nl/2008/12/embedding-qt-widgets-into-qtwebkit.html













___ 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] Hybrid Qt/HTML5 app

2016-03-08 Thread Jason H
I think something like React/ReactNative (http://www.reactnative.com/)  would be better for your team. But My comments are below.

 



Sent: Tuesday, March 08, 2016 at 11:58 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app



>> You said " cross-platform, including web".  Web, as I understand it, is not a prorietary application. If you said desktop apps, >> that'd be fine. But you specifically included web.
I don't understand your point, really, could you clarify?.

 

Generally when someone says "web" they mean something that works in browser. While Qt apps can be Chrome NaCL apps, I don't think this matches most people's idea of "web"

 

 

>> If you do make a web-only version

>> - it's going to be difficult to maintain feature parity. Perhaps your users can live with a downgraded web experience?

In this statement you're agreeing with me? If I've a web-specific version and a QML version it would be very difficult to keep same features yes.

 

 I would expect QML to outstrip thw web version. Things like webcamera control are possible in HTML5, but you can't control it to the degree that Qt can. Qt runs native on all the platforms, allowing many additional configurations. It also allows (but does not directly handle) Local and Remote push notifications, app backgrounding, etc. 

 

 

>> you also cited your developers that don't want to learn anything new and wanting to resuse existing libraries. While the
>> WebEngine will allow this, Qt would have you using C++ and/or QML at some level.
What's not a problem for me, the backend developer and leave the js developers/designers away from qml.

 

I think those are the people thart should be using QML. It is after all, enhanced JS. And it's very visual. I once had a designer code things in QML, with only an hour tutorial. 

 


>> QML, fwiw, is a small derivitive of _javascript_, and is complete joy. It just seems unatural to me to have QML availible but still want to live in JS. Perhaps you are trying to maintain a core, shared codebase, which is an admirable goal, and I'm sure you can do it.
QML is far from HTML/CSS enough, and yes, one of my goals is to have a shared codebase.


 

I think given what you've said about your team,  the features Qt brings to the table would be under appreciated and React would be a better choice. That way they can stay in entirely in JS.

 

 

 


 


Em ter, 8 de mar de 2016 às 17:13, Jason H <jh...@gmx.com> escreveu:




You said " cross-platform, including web".  Web, as I understand it, is not a prorietary application. If you said desktop apps, that'd be fine. But you specifically included web.

 

If you do make a web-only version

- it's going to be difficult to maintain feature parity. Perhaps your users can live with a downgraded web experience? 

- you also cited your developers that don't want to learn anything new and wanting to resuse existing libraries. While the WebEngine will allow this, Qt would have you using C++ and/or QML at some level. QML, fwiw, is a small derivitive of _javascript_, and is complete joy. It just seems unatural to me to have QML availible but still want to live in JS. Perhaps you are trying to maintain a core, shared codebase, which is an admirable goal, and I'm sure you can do it. 


 

I think a better approach would be to use HTML to construct whatever Widgets or elements you need and stick with that. A lot can be done with HTML Canvas. 

 


Sent: Tuesday, March 08, 2016 at 10:52 AM










From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app










Why? I'm not worried at all about the user having to download the app in a mobile or desktop version.
 


Em ter, 8 de mar de 2016 às 16:48, Jason H <jh...@gmx.com> escreveu:





Then you have only one option: HTML5

With webkit, you  would have the requirement that your clients would need to download and install the Qt Webkit app, just like as if hthey were downloading chrome. If you have to work in chrome/safari/ie, then Qt is out.

 

 

Sent: Tuesday, March 08, 2016 at 10:08 AM
From: "Daniel França" <daniel.fra...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Hybrid Qt/HTML5 app












Thanks for answer it, but I don't understand why you need the background to answer the question, but here it goes:
 

1. I want to make it cross-platform, including web.

2. I'm working with designers/js developers who are not interested in learning a new language/framework


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

2016-03-08 Thread Jason H
I'm wondering why you load all those languages and then remove all but one of 
them? Being a mobile app, I have to be somewhat conscience of memory foot 
print. Do you see anything wrong with:

void Backend::selectLanguage( QString language ) {
translator = new QTranslator(this);
translator->load( language, commonPath()+"/translations" );
qApp->installTranslator(translator);
}

?


> 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.
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Deleting the QNetworkAccessManager post(req, iodev) QIODevice?

2016-03-02 Thread Jason H
Let me expand on this, I can f->setParent(reply), but I also need to delete the 
file from disk. If I rely on the parent/child object deletion, I can't get a 
change to delete the file.

> QFile *f = new QFile(filename);
> f->open(QIODevice::ReadOnly) 
> ...
> nam.post(req, f);
> ...
> 
> // sometime later in the finished slot:
> finished(QNetworkReply *reply) {
> 
>  // how to close and delete f ? (The QFile object)
> 
> }
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


<    2   3   4   5   6   7   8   9   10   11   >