[Interest] Antwort: Re: QML Loader Performance

2016-03-08 Thread Ingo Schiller
Hi Bo, Hi everyone thanks for your reply and the thoughts you have spent on my problem. You are right, using these cascading loader elements is a fundamental structure of the program which will not be easy to change. The point is that everything is user editable. The user can decide which

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

2016-03-08 Thread André Somers
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

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Sina Dogru
> > The problem is that the section you commented out could have hidden other > bugs. You didn't show how module A added to the data to be transmitted. > I have commented out because the module A just adding some other QVariants and QString to the bytearray with using QDataStream. That was my

Re: [Interest] QGraphicsWidget vs QGraphicsProxyWidget

2016-03-08 Thread Igor Mironchik
Hi, On 09.03.2016 07:54, maitai wrote: Hello, QGraphicsProxyWidget is quite nice and works. There is a number of caveats though: It doesn't inherit QGraphicsItem, so you cannot make it moveable etc. It's not true... QGraphicsItem->QGraphicsObject->QGraphicsWidget->QGraphicsProxyWidget

Re: [Interest] QGraphicsWidget vs QGraphicsProxyWidget

2016-03-08 Thread maitai
Hello, QGraphicsProxyWidget is quite nice and works. There is a number of caveats though: It doesn't inherit QGraphicsItem, so you cannot make it moveable etc. You can however have a container as a parent that derived from QGraphicsItem with no paint but the same boundingRect and shape and

Re: [Interest] Qt Charts

2016-03-08 Thread Andy
Scott: I believe Qt Charts is scheduled to be included in Qt 5.7: https://wiki.qt.io/New_Features_in_Qt_5.7 http://blog.qt.io/blog/2016/02/22/qt-roadmap-for-2016/ - Andy On Tue, Mar 8, 2016 at 11:00 PM, Scott Aron Bloom wrote: > I have downloaded the latest 5.6.0rc

[Interest] Qt Charts

2016-03-08 Thread Scott Aron Bloom
I have downloaded the latest 5.6.0rc from https://download.qt.io/development_releases/qt/5.6/5.6.0-rc And I cant for the life of me find the new (or old, or any) Qt Charts sub module. Where can it be found? Scott ___ Interest mailing list

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 

[Interest] QGraphicsWidget vs QGraphicsProxyWidget

2016-03-08 Thread Murphy, Sean
I'm looking to add my own custom widget to a QGraphicsScene and I'm trying to understand which class is more appropriate for what I'm doing. I've read the documentation for both the QGraphicsProxyWidget and the QGraphicsWidget and I'm not seeing why I should prefer one over the other. If it

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

2016-03-08 Thread Gianluca
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

Re: [Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Daniel França
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

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Nikita Krupenko
2016-03-08 21:43 GMT+02:00 Thiago Macieira : > On terça-feira, 8 de março de 2016 21:27:52 PST Nikita Krupenko wrote: >> 2016-03-08 19:30 GMT+02:00 Thiago Macieira : >> > Indeed, but look at how you've combined two or more examples. You have a

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Thiago Macieira
On terça-feira, 8 de março de 2016 21:27:52 PST Nikita Krupenko wrote: > 2016-03-08 19:30 GMT+02:00 Thiago Macieira : > > Indeed, but look at how you've combined two or more examples. You have a > > byte array, you create a QDataStream on it, write some data, then you >

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread André Somers
Op 08/03/2016 om 20:27 schreef Nikita Krupenko: 2016-03-08 19:30 GMT+02:00 Thiago Macieira : Indeed, but look at how you've combined two or more examples. You have a byte array, you create a QDataStream on it, write some data, then you used QDataStream to write that

Re: [Interest] Translating plural with is/are

2016-03-08 Thread André Somers
Op 08/03/2016 om 20:08 schreef Jason H: Sent: Tuesday, March 08, 2016 at 1:14 PM From: "André Somers" To: interest@qt-project.org Subject: Re: [Interest] Translating plural with is/are Op 08/03/2016 om 18:17 schreef Thiago Macieira: On terça-feira, 8 de março de

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Nikita Krupenko
2016-03-08 19:30 GMT+02:00 Thiago Macieira : > Indeed, but look at how you've combined two or more examples. You have a byte > array, you create a QDataStream on it, write some data, then you used > QDataStream to write that byte array to another byte array. You probably

Re: [Interest] Translating plural with is/are

2016-03-08 Thread Scott Aron Bloom
> Op 08/03/2016 om 18:17 schreef Thiago Macieira: > > On terça-feira, 8 de março de 2016 09:06:14 PST Frédéric Marchal wrote: > >> If for instance I write tr("%n whatever rubbish I type here", "", > >> n) and the translator decides to translate "%n whatever rubbish I > >> insert here" with "One

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);

Re: [Interest] Translating plural with is/are

2016-03-08 Thread André Somers
Op 08/03/2016 om 18:17 schreef Thiago Macieira: On terça-feira, 8 de março de 2016 09:06:14 PST Frédéric Marchal wrote: If for instance I write tr("%n whatever rubbish I type here", "", n) and the translator decides to translate "%n whatever rubbish I insert here" with "One message was saved"

Re: [Interest] Error: /opt/qt-5.5.0/lib/libQt5*: undefined reference

2016-03-08 Thread Thiago Macieira
On terça-feira, 8 de março de 2016 21:50:05 PST Nilesh Kokane wrote: > > The order of the paths in -rpath-link is wrong. You need the one with the > > most recent libraries to show up first. > > env PATH didn't help to change the -rpath-link sequence /usr still > precedes /opt. PATH doesn't

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Thiago Macieira
On terça-feira, 8 de março de 2016 09:05:50 PST Sina Dogru wrote: > Thank you for writing Thiago, > > > The problem is here. You've removed the bug from the sample source. So we > > can't help you. > > Well I might made a mistake, I am kind of a amatuer programmer but on the > real code, the

Re: [Interest] Translating plural with is/are

2016-03-08 Thread Thiago Macieira
On terça-feira, 8 de março de 2016 09:06:14 PST Frédéric Marchal wrote: > If for instance I write tr("%n whatever rubbish I type here", "", n) > and the translator decides to translate "%n whatever rubbish I insert > here" with "One message was saved" for singular and "%n messages were > saved"

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" To: "Jason H" Cc: "interest@qt-project.org"

Re: [Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Daniel França
>> 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?.* >> If you do make a web-only version >> - it's

Re: [Interest] Error: /opt/qt-5.5.0/lib/libQt5*: undefined reference

2016-03-08 Thread Nilesh Kokane
On Mon, Mar 7, 2016 at 11:07 PM, Thiago Macieira wrote: > You probably have /usr/lib/libQt5Gui.so.5 (or another default libdir), > correct? It's conflicting. I have /usr/lib/libQt5Gui.so.5 conflicting /opt/qt-5.5.0/lib/libQt5Gui.so.5.This continues for all the other

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

Re: [Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Daniel França
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 escreveu: > Then you have only one option: HTML5 > With webkit, you would have the requirement that your clients would need > to

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

Re: [Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Daniel França
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

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

Re: [Interest] QML Loader Performance

2016-03-08 Thread Bo Thorsen
Hi Ingo, Den 07-03-2016 kl. 08:27 skrev Ingo Schiller: I have a serious performance problem in my application which uses QML for the UI and several C++ datamodels. The application consists of several "pages", which is a set of ui elements and covers the whole screen. These pages can be loaded

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread Nikita Krupenko
2016-03-08 9:25 GMT+02:00 André Somers : > Actually, for reading and writing binary data files, I think it is wise to > get into the habbit of using explicitly sized types. That is, write out and > read back a qint8, a qint32 or a qint64, not an int or a long. int and other

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread william.croc...@analog.com
Sure, you can look and see that the size() of a QByteArray returns an 'int', but that is only as of today. You should get into the habit of controlling the types written to QDataStreams. Actually, for reading and writing binary data files, I think it is wise to get into the habbit of using

[Interest] Hybrid Qt/HTML5 app

2016-03-08 Thread Daniel França
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

Re: [Interest] Quick2 OpenGL inefficiency?

2016-03-08 Thread Gunnar Sletta
The best option is if you can create the surfaces on the GPU as a framebuffer object and just share the texture like Filip points out. http://doc.qt.io/qt-5/qtquick-scenegraph-textureinthread-example.html and http://doc.qt.io/qt-5/qtquick-scenegraph-textureinsgnode-example.html show much of

Re: [Interest] Quick2 OpenGL inefficiency?

2016-03-08 Thread Jani Tykka
Thanks a lot for the info! Will check that out. Jani On Tue, Mar 8, 2016 at 9:40 AM, Filip Piechocki wrote: > I don't know how you produce the video frames, but check that the software > you are using might be able to produce OpenGL texture directly (not the > buffer

Re: [Interest] Translating plural with is/are

2016-03-08 Thread Frédéric Marchal
2016-03-07 20:16 GMT+01:00 Jason H : >> > Ok I'm getting there, but how do I specify this string (a) or that string >> > (b)? >> > What's the qsTr() line look like? >> > qsTr( ? ) >> >> http://doc.qt.io/qt-5/i18n-plural-rules.html >> >> and >> >>