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

2016-03-03 Thread Dmitry Volosnykh
You will have the same overhead whenever the text to translate changes. If it is static during the application life cycle then this should not be an issue either. On Thu, Mar 3, 2016 at 11:41 PM Jérôme Godbout wrote: > Nice, I didn't knew about "-tr-function-alias", indeed this seem like the > r

Re: [Interest] Background Uploads in Android

2016-03-03 Thread Liang Jian
Maybe you should turn on ndroid.app.background_running in your AndroidManifest.xml On Thu, Mar 3, 2016 at 3:56 AM, Jason H wrote: > So there seems to be some conflicting information out there about how to > do this in Qt. > It seems tha

[Interest] famous issue : setMouseTracking

2016-03-03 Thread Nicolas Jäger
Hi, I have a question many time asked on internet, why even if some widget has the setMouseTracking set to true, the event mouseMoveEvent is detected only when a clicked is perfomed. I don't just setMouseTracking, I did a grep over the whole project to be sure that there is no other Set

Re: [Interest] scaling QRect inside a QWidget

2016-03-03 Thread Nicolas Jäger
Hi Nye and others, I use the resize event, the problem is how can I scale properly the QRect, because just scaling the widget don't resize the QRect. I try to compute the ratio = newWidth/oldWidth of widget then doing newWidthOfQRect * ratio. But first, since widths are int, I have to make a co

Re: [Interest] scaling QRect inside a QWidget

2016-03-03 Thread Nye
You could intercept the QWidget's resize event either by providing an override (http://doc.qt.io/qt-5/qwidget.html#resizeEvent) or by installing an event filter (http://doc.qt.io/qt-5/eventsandfilters.html#event-filters). Note, however, you'll receive a resize event on initialization of the widget

[Interest] scaling QRect inside a QWidget

2016-03-03 Thread Nicolas Jäger
Hi, I have a QRect inside a QWidget and I would like to scale it when the widget is scaled by the user. There is a QtThing to do that ? regards, Nicolas ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/inte

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

2016-03-03 Thread Jason H
What if you did "-tr-function-alias qsTr=MySingleton.myqsTr" ?    Sent: Thursday, March 03, 2016 at 5:31 PM From: "Jérôme Godbout" To: "Julien Cugnière" Cc: "interest@qt-project.org" Subject: Re: [Interest] Dynamic translations for mobile apps at runtime? I test it out, it work as long as the

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

2016-03-03 Thread Jérôme Godbout
I test it out, it work as long as the function is a direct function access, you can't use module call like MySingleton.myqsTr("My String") // don't work, lupdate does get this one myqsTr("My String") // work Could have put the function into it's own javascript .pragma library and just import it i

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

2016-03-03 Thread Jérôme Godbout
Nice, I didn't knew about "-tr-function-alias", indeed this seem like the right thing to do. Will try this out. About speed, for the number of time you use the change language during runtime, it doesn't really matter, if it take a few ms more. Thanks for the tips! On Thu, Mar 3, 2016 at 2:37 PM,

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

2016-03-03 Thread Julien Cugnière
2016-03-03 18:50 GMT+01:00 Jérôme Godbout : > We did the same thing into Qml, we have a C++ singleton equivalent to your > backend, that select the current language files and emit the QString > property changed. > qsTr("String to convert") + I18n.revaluate > > I wish they made underlying hook to re

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

2016-03-03 Thread Jérôme Godbout
We did the same thing into Qml, we have a C++ singleton equivalent to your backend, that select the current language files and emit the QString property changed. qsTr("String to convert") + I18n.revaluate I wish they made underlying hook to revaluate the qsTr() with a signal connected like if the

Re: [Interest] Update QWebElement from different threads

2016-03-03 Thread Thiago Macieira
On quinta-feira, 3 de março de 2016 14:01:31 PST Freddy Martinez Garcia wrote: > is that possible ??? what is the best way to do that It's not possible to modify any UI from outside the UI thread. You need to sync back to the main thread via a queued connection or via an event and do that from t

[Interest] Update QWebElement from different threads

2016-03-03 Thread Freddy Martinez Garcia
Hi guys... I need to update a QWebElement from different threads... Imagine that I have the following statement: QString htmlElemCode = "Hello World"; QWebElement elem = webFrame->findFirtsElement("#body_div"); elem.appendInside(htmlElemCode); well, I need to run elem.appendInside(htmlElemCode)

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

2016-03-03 Thread Jason H
Absolutely fantastic!!! THANKS! > Sent: Thursday, March 03, 2016 at 11:04 AM > From: "Gian Maxera" > To: "Jason H" > Cc: "interest@qt-project.org" > Subject: Re: [Interest] Dynamic translations for mobile apps at runtime? > > Hello Jason, > I got the same issue some times ago … and I found tha

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

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

[Interest] Dynamic translations for mobile apps at runtime?

2016-03-03 Thread Jason H
First, I'm not talking about the standard translation features of Qt. Those are static - the translation file is generated and deployed with the app. I now need to support an ever-changing list of translations. I want my mobile app to download the current set of translations and use that. In add

Re: [Interest] [Qt bugreports] (QTCREATORBUG-15705) Xcode 7.2 IOS 9.2 Simulator Debugging not possible

2016-03-03 Thread m...@rpzdesign.com
Eike: Well, that is a bit of news, thank you for looking at this. Thank you for your effort in this regard. md On 3/3/2016 7:47 AM, Eike Ziller (via JIRA) wrote: Message Title Eike Ziller *commented* on Bug QTCREATORBUG-15705

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

2016-03-03 Thread Jason H
> Sent: Wednesday, March 02, 2016 at 6:26 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Deleting the QNetworkAccessManager post(req, iodev) > QIODevice? > > On quinta-feira, 3 de março de 2016 00:08:38 PST Jason H wrote: > > > Another idea: why don't you u

Re: [Interest] Enabling OpenSSL on a shared build of Qt

2016-03-03 Thread Richard Moore
On 3 March 2016 at 07:50, Koehne Kai wrote: > > Ah, I missed to that you're talking about OS X. There the system OpenSSL > version should work - though it's very old (0.9.8y IIRC). You get these > warnings though because Qt checks for newer API. It's a runtime warning > though, basic SSL should