Re: [Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-24 Thread Mark Gaiser
On Thu, Feb 24, 2022 at 4:38 PM Volker Hilsheimer 
wrote:

> > On 22 Feb 2022, at 00:34, Mark Gaiser  wrote:
> >>> On Mo, 2022-02-21 at 16:42 +0100, Mark Gaiser wrote:
> >>> Hi,
> >>>
> >>> I'm facing so many bugs in QML Controls in Qt6 (they used to be
> Controls V2 in the Qt 5.x
> >>> days) that I don't want to use them at all anymore. They are bugged
> beyond repair and
> >>> downright unusable for native desktop integration purposes.
> >>>
> >>> Is there another good open source component set out there that
> integrates with the
> >>> desktop. Specifically with Windows but preferably also with Linux (kde
> and gnome) and Mac.
> >>>
> >>> Using QWidgets should not be an alternative as it slows down
> development a lot. But given
> >>> the crap that QML Controls is makes me consider switching to QWidgets
> instead.
> >>
> >> On Mon, Feb 21, 2022 at 11:11 PM Bernhard Lindner <
> priv...@bernhard-lindner.de> wrote:
> >> Hi,
> >>
> >> QML is nice for basic applications but widgets is important for
> professional, technical
> >> and high-density applications.
> >>
> >> But that doesn't matter. From my point of view Qt stopped being
> developed as a desktop
> >> framework a long time ago. Other industries seems to have priority now.
> >
> > Well, it was nearly good enough in the Qt5 days with Controls V1.
> > All they needed was a better set of controls to accommodate mobile more
> and reduce complexity in V1.
> >
> > What they did - conceptually - with V2 was good.
> > But it seems like they just left it in alpha quality and call it "ok" to
> replace V1.. That was a mistake.
> > It needed much more development time to be a proper replacement.
> >
> > We're now like ~8 years past the introduction of the V2 set...
> > And it still has really severe bugs that just interrupt usability. 8
> years...
> > So I doubt it will be getting any better at all.
> >
>
>
> Hi All,
>
> Thanks for keeping it civilised.
>

Thank you for writing that insightful response! That's nice to read!

>
> Yes, Qt Quick Controls - and largely the entire Qt Quick framework - were
> originally designed for mobile and embedded platforms, and indeed, that
> shows when using them for the desktop.
>

It's not as simple as that.
In my view Qt went backwards with the version 6 release and QML support on
the desktop.
What was there before (Controls V1) in Qt5 sure had it's fair share of
bugs, true, but it was working very stable with relatively minor annoyances
to work around.
One should not remove something if the replacement isn't at least
reasonable on par with what was removed. I'm sure some of it is driven by
the maintenance cost of 2 component sets so with that in mind it did make
much sense to drop one. That being said, I don't think the current
components should be more than a labs project.

I’m happy that at least in The Qt Company we are now in a position that
> allows us to put more focus on the desktop, and that we are are able to do
> more than maintenance and catching up with what’s happening on the
> underlying platforms. That includes the journey of making Qt Quick Controls
> a great toolkit for the desktop as well. In Qt 6 so far we have had first
> implementations of the native styles - yes, those require more work; we
> have made a number of improvements to item views, including a TreeView now
> in Qt 6.3; a first set of standard dialogs is in Qt 6.2 and more are coming
> in 6.3. We have worked on some architectural issues that are problematic on
> the desktop, such as keyboard navigation and focus handling, and there is a
> fair amount of more work needed there as well.
>

That's good to hear :)
I do still care enough to want to use Qt with QML if it gets better.

>
> I’m not going to claim that all things will be wonderful any moment now;
> there’s plenty of work that needs to be done. But things do get better,
> both with Qt Quick Controls, and with Qt Widgets as well.
>
> What keeps confusing me personally is how few people in the community seem
> to find it interesting to contribute to either of our UI frameworks in Qt.
> If I take one of the QtWidgets issues that came up in this thread:
> "QTBUG-6864 is 12 years old, has 47 votes”. I sat down on Tuesday evening
> to check what it would take to implement hiding of rows in a QFormLayout;
> after a few hours I had a working implementation, which is right now on its
> way into the dev branch. The hardest part, as it so often is, was writing a
> unit test.
>
> Now, I understand that not everybody finds it fun t

Re: [Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-21 Thread Mark Gaiser
On Tue, Feb 22, 2022 at 12:51 AM Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> So I’ll throw my 2 cents worth of experience into the ring.
>
>
>
> I’ve developed a desktop application using Qt Widgets since 2009 era. Last
> year we got funding to completely rewrite it from the ground up. We
> selected QML over widgets because we wanted that forced Model-View-Delegate
> and separation of the back end from the front end. QML sure looked
> promising from the demos. The early prototypes were nice. What we got for
> development is a hot mess. The QML debugger is a joke. GammaRay helps here
> and there trying to figure out what rectangles are where. The development
> time is horribly long. QML itself is just a black-magic soup where you
> never really know when things are getting initialized. We were hoping to
> have a flashy desktop application, all “modern” and everything. We are
> months behind schedule at this point. We spend hours messing with QML
> trying to get it to behave appropriately (sizing, visual style) where
> widgets would have just been “done”. We spent a large chunk of cash paying
> someone to get a TreeView working since Qt5 doesn’t supply one (Don’t get
> me started on that.. ).
>
>
>
That sounds like a rough time and a developer nightmare.
While I don't have that experience (porting from QWidgets to QML), I do
have the experience from QML (Qt 5.x) with Controls V1 to Controls V2 in Qt
6.
The experience there is that components with the same names - making you
think you can easily port - have wildly different properties and in general
work just completely different.

Another annoyance are the component defaults. Those defaults are definitely
not suitable for desktop usage. Properties like selecting text or even
being able to edit it are off by default.
Need mouse support to select text?... You might or might not be able to
enable it. For a TextField you can enable it. For a SpinBox you can't
enable it at all. And there's so much more like this.


> Had I known back then what I know **now** I would never have selected QML
> over Widgets for Desktop development. In no way is it ready for anything
> past some trivial applications. Not even close. The idea is great. The
> vision is cool. Our development experience has not been a good one.
>

>
> @Mark Gaiser  one of our contractors implemented some
> code up in main.cpp where we press “F7” and the app reloads using the QML
> files from disk. This helps us cycle the theme updates and QML updates
> instead of having to quit and restart each time.
>
>
>
But... I thought one of the big selling points for QML was - when it first
got introduced - that it had live updating capabilities.
I never used it but I thought it was a unique selling point.


> --
>
> Michael Jackson | Owner, President
>
>   BlueQuartz Software
>
> [e] mike.jack...@bluequartz.net
>
> [w] www.bluequartz.net
>
>
>
>
>
> On 2/21/22, 6:34 PM, "Interest on behalf of Mark Gaiser" <
> interest-boun...@qt-project.org on behalf of mark...@gmail.com> wrote:
>
>
>
> On Mon, Feb 21, 2022 at 11:11 PM Bernhard Lindner <
> priv...@bernhard-lindner.de> wrote:
>
> Hi,
>
> QML is nice for basic applications but widgets is important for
> professional, technical
> and high-density applications.
>
> But that doesn't matter. From my point of view Qt stopped being developed
> as a desktop
> framework a long time ago. Other industries seems to have priority now.
>
>
>
> Well, it was nearly good enough in the Qt5 days with Controls V1.
>
> All they needed was a better set of controls to accommodate mobile more
> and reduce complexity in V1.
>
>
>
> What they did - conceptually - with V2 was good.
>
> But it seems like they just left it in alpha quality and call it "ok" to
> replace V1.. That was a mistake.
>
> It needed much more development time to be a proper replacement.
>
>
>
> We're now like ~8 years past the introduction of the V2 set...
>
> And it still has really severe bugs that just interrupt usability. 8
> years...
>
> So I doubt it will be getting any better at all.
>
>
> On Mo, 2022-02-21 at 16:42 +0100, Mark Gaiser wrote:
> > Hi,
> >
> > I'm facing so many bugs in QML Controls in Qt6 (they used to be Controls
> V2 in the Qt 5.x
> > days) that I don't want to use them at all anymore. They are bugged
> beyond repair and
> > downright unusable for native desktop integration purposes.
> >
> > Is there another good open source component set out there that
> integrates with the
> > desktop. Specifically with Windows but preferably also with Linux (kde
> and gnome) and Mac.
> >
> > Using QWid

Re: [Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-21 Thread Mark Gaiser
On Mon, Feb 21, 2022 at 11:11 PM Bernhard Lindner <
priv...@bernhard-lindner.de> wrote:

> Hi,
>
> QML is nice for basic applications but widgets is important for
> professional, technical
> and high-density applications.
>
> But that doesn't matter. From my point of view Qt stopped being developed
> as a desktop
> framework a long time ago. Other industries seems to have priority now.
>

Well, it was nearly good enough in the Qt5 days with Controls V1.
All they needed was a better set of controls to accommodate mobile more and
reduce complexity in V1.

What they did - conceptually - with V2 was good.
But it seems like they just left it in alpha quality and call it "ok" to
replace V1.. That was a mistake.
It needed much more development time to be a proper replacement.

We're now like ~8 years past the introduction of the V2 set...
And it still has really severe bugs that just interrupt usability. 8
years...
So I doubt it will be getting any better at all.

>
> On Mo, 2022-02-21 at 16:42 +0100, Mark Gaiser wrote:
> > Hi,
> >
> > I'm facing so many bugs in QML Controls in Qt6 (they used to be Controls
> V2 in the Qt 5.x
> > days) that I don't want to use them at all anymore. They are bugged
> beyond repair and
> > downright unusable for native desktop integration purposes.
> >
> > Is there another good open source component set out there that
> integrates with the
> > desktop. Specifically with Windows but preferably also with Linux (kde
> and gnome) and Mac.
> >
> > Using QWidgets should not be an alternative as it slows down development
> a lot. But given
> > the crap that QML Controls is makes me consider switching to QWidgets
> instead.
> >
> >
> > Best regards,
> > Mark
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
>
> --
> Best Regards,
> Bernhard Lindner
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-21 Thread Mark Gaiser
On Mon, Feb 21, 2022 at 6:27 PM coroberti  wrote:

> Hi Mark,
> The initial dev is slower when using Widgets,
> but with less bugs and more robustness, it could be worth doing it,
> and at the end of the day, it is even time-saving.
>
> The Qt apps on the desktop platforms you mentioned look very native with
> Widgets.
>
> There are many tips and ready solutions for Widgets you can find on the web
> to cut the time for the initial development.
>

Hi Robert,

Thank you for your reply!
I'm well aware of Widgets and it's looks, I've got quite some years of
experience with them:)

In fact, there's a "funny" thing with Qt here.
There is a QML component gallery [1] meant to demonstrate the components.
1. The compilation of that project takes _longer_ than the QWidgets gallery
demo [2]
2. You need to restart the QML gallery for theme changes where they are
right there on the fly in QWidgets.

Having said that...
The development speed and debugging is in fact faster in QML. It's also
much easier to change quite significant parts with relative ease.
Therefore I'd still like to go for QML.

But the components Qt provides are so bad that it's essentially impossible.
Hence I'm looking for components that integrate nicely in the platform.

Should I just consider QML to be dead[3] on the desktop now?

[1]
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quickcontrols2/gallery
[2] https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/gallery
[3] As in when going for platform integration. If you go the full custom
route you're fine.

>
> Kind regards,
> Robert Iakobashvili
> 
>
>
> On Mon, Feb 21, 2022 at 5:44 PM Mark Gaiser  wrote:
>
>> Hi,
>>
>> I'm facing so many bugs in QML Controls in Qt6 (they used to be Controls
>> V2 in the Qt 5.x days) that I don't want to use them at all anymore. They
>> are bugged beyond repair and downright unusable for native desktop
>> integration purposes.
>>
>> Is there another good open source component set out there that integrates
>> with the desktop. Specifically with Windows but preferably also with Linux
>> (kde and gnome) and Mac.
>>
>> Using QWidgets should not be an alternative as it slows down development
>> a lot. But given the crap that QML Controls is makes me consider switching
>> to QWidgets instead.
>>
>>
>> Best regards,
>> Mark
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-21 Thread Mark Gaiser
Hi,

I'm facing so many bugs in QML Controls in Qt6 (they used to be Controls V2
in the Qt 5.x days) that I don't want to use them at all anymore. They are
bugged beyond repair and downright unusable for native desktop integration
purposes.

Is there another good open source component set out there that integrates
with the desktop. Specifically with Windows but preferably also with Linux
(kde and gnome) and Mac.

Using QWidgets should not be an alternative as it slows down development a
lot. But given the crap that QML Controls is makes me consider switching to
QWidgets instead.


Best regards,
Mark
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Does QML have a way to detect if a click is outside an element?

2021-03-05 Thread Mark Gaiser
On Fri, Mar 5, 2021 at 11:40 AM Mitch Curtis  wrote:

> > -Original Message-
> > From: Interest  On Behalf Of Mark
> Gaiser
> > Sent: Friday, 5 March 2021 10:39 AM
> > To: Qt Interest 
> > Subject: [Interest] Does QML have a way to detect if a click is outside
> an
> > element?
> >
> > Hi,
> >
> > Picture a QML window with a red rectangle in the middle of it (say
> 200x200
> > px).
> > The window itself is, say, 500x500 px.
> >
> > Now I'm looking for a way to detect when you click on any area outside
> the
> > red rectangle but inside the white window area.
> >
> > The reason I need this is to provide a more intuitive interaction. In my
> > particular case the red rectangle is a calendar popup that needs to go
> away
> > when you click outside of it but inside the window still.
> >
> > I can imagine 2 possible solutions, both are quite cumbersome to
> implement.
> >
> > 1. One can make a kind of "EventFilter" object in C++ and expose it to
> QML.
> > So that custom event filters can be made which would allow me to find a
> click
> > that occurs outside the rectangle.
> >
> > 2. I can make an application with overlapping MouseArea{} and figure it
> out
> > that way. But this is really hacky and very error prone.
> >
> > Does QML provide another more native way for this kind of interaction?
>
> Popup provides this functionality:
>
> https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html
>
> Hi Mitch,

Thank you! That actually worked! :)
I'm surprised because the code where i used this uses QtQuick.Controls 1
and 2, which smells scary. But hey, it works.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Does QML have a way to detect if a click is outside an element?

2021-03-05 Thread Mark Gaiser
Hi,

Picture a QML window with a red rectangle in the middle of it (say 200x200
px).
The window itself is, say, 500x500 px.

Now I'm looking for a way to detect when you click on any area outside the
red rectangle but inside the white window area.

The reason I need this is to provide a more intuitive interaction. In my
particular case the red rectangle is a calendar popup that needs to go away
when you click outside of it but inside the window still.

I can imagine 2 possible solutions, both are quite cumbersome to implement.

1. One can make a kind of "EventFilter" object in C++ and expose it to QML.
So that custom event filters can be made which would allow me to find a
click that occurs outside the rectangle.

2. I can make an application with overlapping MouseArea{} and figure it out
that way. But this is really hacky and very error prone.

Does QML provide another more native way for this kind of interaction?

Best regards,
Mark Gaiser
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] download.qt.io is down

2021-01-19 Thread Mark Long
It seems that the only mirror list I can find online is served from
download.qt.io, which is quite unhelpful at the moment.  Does anyone have a
mirror link handy or a link to another list somewhere else?

Thanks much!
Mark

On Tue, Jan 19, 2021 at 12:59 PM Tuukka Turunen 
wrote:

> Hi,
>
>
>
> Update on the status. The downtime is caused by severe disk system failure
> at our cloud service provider. The service provider has notified us that
> they will not be able to repair the disk systems during today.
>
>
>
> Two important servers related to open-source package delivery are affected
> (download frontend and delivery system master). Mirrors are not affected,
> so online installer works and also offline packages can be downloaded
> directly from the mirrors. Commercial package distribution is done via a
> different system, which is not affected by this.
>
>
>
> Yours,
>
>
>
> Tuukka
>
>
>
> *From: *Development 
> *Date: *Tuesday, 19. January 2021 at 11.21
> *To: *developm...@qt-project.org ,
> releas...@qt-project.org 
> *Subject: *[Development] download.qt.io is down
>
> Hi all,
>
> You have most probably already noticed that download.qt.io is down. We
> are fixing the issue so please be patient. I'll inform you when it should
> work OK
>
> br,
> Jani Heikkinen
> Release Manager
> ___
> Development mailing list
> developm...@qt-project.org
> https://lists.qt-project.org/listinfo/development
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Recording video on Windows

2019-04-02 Thread Mark McKay


After doing a lot of testing trying to get Qt Multimedia related
classes working in a Windows environment, I came across this:


https://doc.qt.io/qt-5/qtmultimedia-windows.html [1] 

This was
referenced by a newsgroup post from 2014 so presumably it's been an
issue for a while. 

I'm writing a program where I would like to create
a video by generating original audio and video data. I was considering
using the Qt Mulitmedia classes to avoid having to use third party
libraries, but they appear not to be implemented on Windows.

Are there
any plans to get Qt Multimedia working on Windows so it can be a
cross-platform solution?  

---
http://www.kitfox.com



Links:
--
[1] https://doc.qt.io/qt-5/qtmultimedia-windows.html
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] How to properly translate an application?

2018-06-07 Thread Mark Gaiser
On Thu, Jun 7, 2018 at 3:09 PM Rainer Wiesenfarth <
rainer_wiesenfa...@trimble.com> wrote:

>
> On Thu, Jun 7, 2018 at 2:22 PM, Mark Gaiser  wrote:
>
>> I have a windows desktop application (Qt 5.9 LTS) here that has Dutch and
>> English translations files (in .ts format) created with Qt Linguist. Any
>> strings in that file show up in the Qt UI just fine in the chosen language.
>>
>> But if i set the language to Dutch (operating system language is English)
>> then Qt's default buttons are still in English. Sure, they can be
>> translated on a case-by-case basis but i don't think that
>> should be needed.
>>
>> I don't think there is a problem with the .ts files as anything in there
>> just works in the UI.
>> But perhaps i missed a step?
>>
>
> ​For a couple of languages, there are ​.qm files for Qt (search e.g. for
> qt_de.qm). These contain the translations of Qt itself. Unfortunately,
> Dutch seems to be not included here...
>
> ​The ​page http://wiki.qt.io/Qt_Localization may be useful for further
> investigations.
>

That seems like a good point to investigate further.
Thank you for the link!


>
> ​Cheers, Rainer
>
> --
> Software Engineer | Trimble Imaging Division
> Rotebühlstraße 81 | 70178 Stuttgart | Germany
> Office +49 711 22881 0 | Fax +49 711 22881 11
> http://www.trimble.com/imaging/ | http://www.inpho.de/
>
> Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
> Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
> Geschäftsführer: Dr. Frank Heimberg, Jürgen Kesper
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to properly translate an application?

2018-06-07 Thread Mark Gaiser
On Thu, Jun 7, 2018 at 2:40 PM alexander golks  wrote:

> Am Thu, 7 Jun 2018 14:22:08 +0200
> schrieb Mark Gaiser :
>
> > Hi,
> >
> > I have a windows desktop application (Qt 5.9 LTS) here that has Dutch and
> > English translations files (in .ts format) created with Qt Linguist. Any
> > strings in that file show up in the Qt UI just fine in the chosen
> language.
> >
> > But if i set the language to Dutch (operating system language is English)
> > then Qt's default buttons are still in English. Sure, they can be
> > translated on a case-by-case basis but i don't think that
> > should be needed.
>
> are you sure you have the translation of qt itself loaded, too?
>

I'm not sure if they are..
Where are they supposed to be?

Do they just magically work if they are in some special folder?

>
> >
> > I don't think there is a problem with the .ts files as anything in there
> > just works in the UI.
> > But perhaps i missed a step?
> >
> > The translation files are generated as follows:
> >
> > lupdate -verbosr file.pro
> >
> > "file.pro" contians the required translation lines:
> > TRANSLATIONS += dutch_nl.ts
> > TRANSLATIONS += english_en.ts
> >
> >
> > Best regards,
> > Mark Gaiser
>
>
> --
> /*
>  *  panic("CPU too expensive - making holiday in the ANDES!");
>  *  linux-2.2.16/arch/mips/kernel/traps.c
>  */
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to properly translate an application?

2018-06-07 Thread Mark Gaiser
Hi,

I have a windows desktop application (Qt 5.9 LTS) here that has Dutch and
English translations files (in .ts format) created with Qt Linguist. Any
strings in that file show up in the Qt UI just fine in the chosen language.

But if i set the language to Dutch (operating system language is English)
then Qt's default buttons are still in English. Sure, they can be
translated on a case-by-case basis but i don't think that
should be needed.

I don't think there is a problem with the .ts files as anything in there
just works in the UI.
But perhaps i missed a step?

The translation files are generated as follows:

lupdate -verbosr file.pro

"file.pro" contians the required translation lines:
TRANSLATIONS += dutch_nl.ts
TRANSLATIONS += english_en.ts


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


Re: [Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-08 Thread Mark Gaiser
On Mon, Jan 8, 2018 at 8:29 PM, Konstantin Tokarev <annu...@yandex.ru>
wrote:

>
>
> > On Mon, Jan 8, 2018 at 5:25 PM, Konstantin Tokarev <annu...@yandex.ru>
> wrote:
> >
> >> 08.01.2018, 14:34, "Carel Combrink" <carel.combr...@gmail.com>:
> >>
> >>> Hi Mark,
> >>
> >>>
> >>
> >>> How would one use QCollatorSortKey for this type of application?
> >>
> >> Note that you should use QCollatorSortKey if and only if you are going
> to sort same values many times, or use binary search in the sorted vector.
> Otherwise use QCollator.
> >
> > That is not true!
> >
> > I had benchmarked this years ago and using QCollator directly is
> _always_ the slowest path.
> > I had a whole blogpost about that, but that blog went offline... The
> code is still somewhere, but i'm very sure that using QCollator directly is
> never the fastest path in terms of performance, not even for a few entries.
> In terms of ease of use it is the easiest one :)
>
> That's interesting. I thought that QCollatorSortKey is an intermediate
> result of QCollator's comparison algorithm which is serialized in reusable
> form, so in theory sort key should not provide better performance if you do
> one comparison and throw it away
>
> http://userguide.icu-project.org/collation/architecture#TOC-Sort-Keys


Run some benchmarks and you'll see :)
If you want i can search for my old benchmark code. It surely is somewhere,
i just need to find it.

>
>
> >
> >>>
> >>
> >>> Unfortunately I have to say that the Qt documentation on this class is
> not as descriptive compared to other classes.
> >>
> >>>
> >>
> >>> Regards,
> >>
> >>> Carel
> >>
> >>>
> >>
> >>> On Mon, Jan 8, 2018 at 11:50 AM, Mark Gaiser <mark...@gmail.com>
> wrote:
> >>
> >>>> On Mon, Jan 8, 2018 at 4:18 AM, jack ma <assang...@gmail.com> wrote:
> >>
> >>>>> Thanks all of you, seems that std::sort + QCollator is a good way
> >>
> >>>>>
> >>
> >>>>> 2018-01-07 18:47 GMT+08:00 Konstantin Tokarev <annu...@yandex.ru>:
> >>
> >>>>>
> >>
> >>>>>>> Hi,
> >>
> >>>>>>>
> >>
> >>>>>>> you need a "lessThan"-function, tailored for your needs. An
> >>
> >>>>>>> example from me is this:
> >>
> >>>>>>>
> >>
> >>>>>>> bool Person::lessThanFamilyFirst(QSharedPointer
> >>
> >>>>>>> p1, QSharedPointer
> >>
> >>>>>>> p2)
> >>
> >>>>>>>
> >>
> >>>>>>> {
> >>
> >>>>>>>
> >>
> >>>>>>> return (QString::localeAwareCompare(p1->familyName(),p2->
> familyName())<0)
> >>
> >>>>>>>
> >>
> >>>>>>> || (( p1->familyName() == p2->familyName())
> >>
> >>>>>>>
> >>
> >>>>>>> && (QString::localeAwareCompare(p1->firstName(),p2->firstName(
> ))<0));
> >>
> >>>>>>>
> >>
> >>>>>>> }
> >>
> >>>>>>>
> >>
> >>>>>>> Now you can pass this as a functor to a sort method like this:
> >>
> >>>>>>>
> >>
> >>>>>>> std::stable_sort(pupils.begin(), pupils.end(),
> Person::lessThanFamilyFirst);
> >>
> >>>>>>
> >>
> >>>>>> FWIW, if this is not a list displayed in UI, or other place where
> preserving order of
> >>
> >>>>>> equal elements matters, you should consider std::sort
> >>
> >>>>>>
> >>
> >>>>>>>
> >>
> >>>>>>> Please notice, that there are no () when calling the lessThan
> functor.
> >>
> >>>>>>
> >>
> >>>>>> Original question was dealing with QMap. While sorted vector-like
> container can replace
> >>
> >>>>>> map (there is even convenience wrapper flat_map in Boost, which
> allows to work with
> >>
> >>>>>> sorted array 

Re: [Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-08 Thread Mark Gaiser
On Mon, Jan 8, 2018 at 5:25 PM, Konstantin Tokarev <annu...@yandex.ru>
wrote:

>
>
> 08.01.2018, 14:34, "Carel Combrink" <carel.combr...@gmail.com>:
> > Hi Mark,
> >
> > How would one use QCollatorSortKey for this type of application?
>
> Note that you should use QCollatorSortKey if and only if you are going to
> sort same values many times, or use binary search in the sorted vector.
> Otherwise use QCollator.
>

That is not true!

I had benchmarked this years ago and using QCollator directly is _always_
the slowest path.
I had a whole blogpost about that, but that blog went offline... The code
is still somewhere, but i'm very sure that using QCollator directly is
never the fastest path in terms of performance, not even for a few entries.
In terms of ease of use it is the easiest one :)


>
> >
> > Unfortunately I have to say that the Qt documentation on this class is
> not as descriptive compared to other classes.
> >
> > Regards,
> > Carel
> >
> > On Mon, Jan 8, 2018 at 11:50 AM, Mark Gaiser <mark...@gmail.com> wrote:
> >> On Mon, Jan 8, 2018 at 4:18 AM, jack ma <assang...@gmail.com> wrote:
> >>> Thanks all of you, seems that std::sort + QCollator is a good way
> >>>
> >>> 2018-01-07 18:47 GMT+08:00 Konstantin Tokarev <annu...@yandex.ru>:
> >>>
> >>>>> Hi,
> >>>>>
> >>>>> you need a "lessThan"-function, tailored for your needs. An
> >>>>> example from me is this:
> >>>>>
> >>>>> bool Person::lessThanFamilyFirst(QSharedPointer
> >>>>> p1, QSharedPointer
> >>>>> p2)
> >>>>>
> >>>>> {
> >>>>>
> >>>>> return (QString::localeAwareCompare(p1->familyName(),p2->
> familyName())<0)
> >>>>>
> >>>>> || (( p1->familyName() == p2->familyName())
> >>>>>
> >>>>> && (QString::localeAwareCompare(p1->firstName(),p2->firstName(
> ))<0));
> >>>>>
> >>>>> }
> >>>>>
> >>>>> Now you can pass this as a functor to a sort method like this:
> >>>>>
> >>>>> std::stable_sort(pupils.begin(), pupils.end(),
> Person::lessThanFamilyFirst);
> >>>>
> >>>> FWIW, if this is not a list displayed in UI, or other place where
> preserving order of
> >>>> equal elements matters, you should consider std::sort
> >>>>
> >>>>>
> >>>>> Please notice, that there are no () when calling the lessThan
> functor.
> >>>>
> >>>> Original question was dealing with QMap. While sorted vector-like
> container can replace
> >>>> map (there is even convenience wrapper flat_map in Boost, which
> allows to work with
> >>>> sorted array just like it was a "true" map), it doesn't always fit,
> e.g. inserts in such
> >>>> "flat map" are very expensive.
> >>>>
> >>>> So, you can just replace QMap with std::map and pass your comparator,
> e.g.
> >>>>
> >>>> auto comparator = [](const QString , const QString ) -> bool {
> >>>> // Your comparison function here
> >>>> };
> >>>> std::map<QString, QGraphicsItem *, decltype(comparator)>
> myMap(comparator);
> >>>>
> >>>> See [1] for more examples.
> >>>>
> >>>> Yet another approach is to use your own type as a key of QMap instead
> of QString,
> >>>> and create desired operator< for it. This has a downside that your
> access to internal
> >>>> QString will be more complicated, and you'll have to invent different
> key type each time
> >>>> you want to change comparator.
> >>>>
> >>>> And, last but not least: you probably want to know *how* to write
> comparator for your
> >>>> particular sorting order. You can do this with QCollator, see [2].
> >>>>
> >>>> [1] http://en.cppreference.com/w/cpp/container/map/map
> >>>> [2] https://forum.qt.io/topic/68910/natural-sort-using-qcollator/2
> >>>>
> >>>>>
> >>>>> HTH
> >>>>> Sebastian
> >>>>>
> >>>>> Am 07.01.2018 um 09:01 schrieb jack ma:
> >>>>>
> >>>>>> Hi,
> >>>>&g

Re: [Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-08 Thread Mark Gaiser
Hi,

That is tricky!

Disclaimer: The example below is just for illustration purposes. It's not
complete and will not work! It only gives you the general idea of a
possible solution.

This basically boils down to maintaining more lists.
for instance:

std::vector source;
std::vector keyCache;

You want to sort "keyCache" and update "source" in the same order.
There are a couple of ways of achieving this.

An approach i did years ago did the exact opposite of what i just
suggested. I added a proxy index on top like:
std::vector proxyToKey;

I sorted the proxyToKey mapping like so:
std::sort(proxyToKey.begin(), proxyToKey.end(), [&](int a, int
b) {
return m_collator.compare(keyCache[a], keyCache[b]) < 0;
});

Now your source[proxyToKey[0]] is the first entry.
This however is quite tricky to get right as you have to keep track of your
bookkeeping (aka, update the collator keyCache, source and proxy for every
change).

Another approach i learned later was by means of a so called "zip
iterator". Boost has one but it's not mutable so you can't sort.
There are other zip iterators out there that do work with std::sort and
those are imho the best solution with the least amount of added bookkeeping.

Another even better approach (but that's not possible at the moment) would
be a QCollatorSortKey to also act as QString itself so that your sort key
is also your string. All string data is known in that key, but the layout
is different. That is something for the future i hope.


On Mon, Jan 8, 2018 at 12:34 PM, Carel Combrink <carel.combr...@gmail.com>
wrote:

> Hi Mark,
>
> How would one use QCollatorSortKey for this type of application?
>
> Unfortunately I have to say that the Qt documentation on this class is not
> as descriptive compared to other classes.
>
> Regards,
> Carel
>
> On Mon, Jan 8, 2018 at 11:50 AM, Mark Gaiser <mark...@gmail.com> wrote:
>
>> On Mon, Jan 8, 2018 at 4:18 AM, jack ma <assang...@gmail.com> wrote:
>>
>>> Thanks all of you, seems that std::sort + QCollator is a good way
>>>
>>> 2018-01-07 18:47 GMT+08:00 Konstantin Tokarev <annu...@yandex.ru>:
>>>
>>>>
>>>>
>>>> > Hi,
>>>> >
>>>> > you need a "lessThan"-function, tailored for your needs. An
>>>> > example from me is this:
>>>> >
>>>> > bool Person::lessThanFamilyFirst(QSharedPointer
>>>> > p1, QSharedPointer
>>>> > p2)
>>>> >
>>>> > {
>>>> >
>>>> > return (QString::localeAwareCompare(p1->familyName(),p2->familyName
>>>> ())<0)
>>>> >
>>>> > || (( p1->familyName() == p2->familyName())
>>>> >
>>>> > && (QString::localeAwareCompare(p1->firstName(),p2->firstName())<0));
>>>> >
>>>> > }
>>>> >
>>>> > Now you can pass this as a functor to a sort method like this:
>>>> >
>>>> > std::stable_sort(pupils.begin(), pupils.end(),
>>>> Person::lessThanFamilyFirst);
>>>>
>>>> FWIW, if this is not a list displayed in UI, or other place where
>>>> preserving order of
>>>> equal elements matters, you should consider std::sort
>>>>
>>>> >
>>>> > Please notice, that there are no () when calling the lessThan functor.
>>>>
>>>> Original question was dealing with QMap. While sorted vector-like
>>>> container can replace
>>>> map (there is even convenience wrapper flat_map in Boost, which allows
>>>> to work with
>>>> sorted array just like it was a "true" map), it doesn't always fit,
>>>> e.g. inserts in such
>>>> "flat map" are very expensive.
>>>>
>>>> So, you can just replace QMap with std::map and pass your comparator,
>>>> e.g.
>>>>
>>>> auto comparator = [](const QString , const QString ) -> bool {
>>>> // Your comparison function here
>>>> };
>>>> std::map<QString, QGraphicsItem *, decltype(comparator)>
>>>> myMap(comparator);
>>>>
>>>> See [1] for more examples.
>>>>
>>>> Yet another approach is to use your own type as a key of QMap instead
>>>> of QString,
>>>> and create desired operator< for it. This has a downside that your
>>>> access to internal
>>>> QString will be more complicated, and you'll have to invent different
>>>> 

Re: [Interest] How to make the QString "10" behind "9" in QMap's key order

2018-01-08 Thread Mark Gaiser
On Mon, Jan 8, 2018 at 4:18 AM, jack ma  wrote:

> Thanks all of you, seems that std::sort + QCollator is a good way
>
> 2018-01-07 18:47 GMT+08:00 Konstantin Tokarev :
>
>>
>>
>> > Hi,
>> >
>> > you need a "lessThan"-function, tailored for your needs. An
>> > example from me is this:
>> >
>> > bool Person::lessThanFamilyFirst(QSharedPointer
>> > p1, QSharedPointer
>> > p2)
>> >
>> > {
>> >
>> > return (QString::localeAwareCompare(p1->familyName(),p2->familyName
>> ())<0)
>> >
>> > || (( p1->familyName() == p2->familyName())
>> >
>> > && (QString::localeAwareCompare(p1->firstName(),p2->firstName())<0));
>> >
>> > }
>> >
>> > Now you can pass this as a functor to a sort method like this:
>> >
>> > std::stable_sort(pupils.begin(), pupils.end(),
>> Person::lessThanFamilyFirst);
>>
>> FWIW, if this is not a list displayed in UI, or other place where
>> preserving order of
>> equal elements matters, you should consider std::sort
>>
>> >
>> > Please notice, that there are no () when calling the lessThan functor.
>>
>> Original question was dealing with QMap. While sorted vector-like
>> container can replace
>> map (there is even convenience wrapper flat_map in Boost, which allows to
>> work with
>> sorted array just like it was a "true" map), it doesn't always fit, e.g.
>> inserts in such
>> "flat map" are very expensive.
>>
>> So, you can just replace QMap with std::map and pass your comparator, e.g.
>>
>> auto comparator = [](const QString , const QString ) -> bool {
>> // Your comparison function here
>> };
>> std::map
>> myMap(comparator);
>>
>> See [1] for more examples.
>>
>> Yet another approach is to use your own type as a key of QMap instead of
>> QString,
>> and create desired operator< for it. This has a downside that your access
>> to internal
>> QString will be more complicated, and you'll have to invent different key
>> type each time
>> you want to change comparator.
>>
>> And, last but not least: you probably want to know *how* to write
>> comparator for your
>> particular sorting order. You can do this with QCollator, see [2].
>>
>> [1] http://en.cppreference.com/w/cpp/container/map/map
>> [2] https://forum.qt.io/topic/68910/natural-sort-using-qcollator/2
>>
>> >
>> > HTH
>> > Sebastian
>> >
>> > Am 07.01.2018 um 09:01 schrieb jack ma:
>> >
>> >> Hi,
>> >>
>> >> there is a QMap type, then
>> >> insert values with:
>> >>
>> >> type.insert("U1",nullptr),
>> >>
>> >> type.insert("U2",nullptr),
>> >>
>> >> 
>> >>
>> >> type.insert("U9",nullptr),
>> >>
>> >> type.insert("U10",nullptr),
>> >>
>> >> I want get the values follow the order of U1, U2 ... U10,
>> >> but the default order is U1, U10 ,……U9
>> >>
>> >> I know this is a common string sorting problem, but I do
>> >> not know how to solve it well.
>> >>
>> >> Any suggestions are very grateful !
>> >>
>> >> Thanks.
>> >>
>> >> ___
>> >> Interest mailing list
>> >> Interest@qt-project.org
>> >> http://lists.qt-project.org/mailman/listinfo/interest
>> >
>> > --
>> > http://www.classintouch.de - Tablet-Software für Lehrer
>> --
>> Regards,
>> Konstantin
>> ___
>> 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
>
>
Hi,

You might want to look into std::map[1] as well. It allows setting a
compare function, QMap doesn't.
Going that route is most likely more efficient as your inserts will be
sorted, no need to do std::sort afterwards.

You still would have to use QCollator. Note that you can just use QCollator
in the compare method which will work just fine, but is not the performant
way to go.
The most performant way (i know of) is by using QCollatorSortKey[2].


[1] http://en.cppreference.com/w/cpp/container/map/map
[2] http://doc.qt.io/qt-5/qcollatorsortkey.html
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Is there a QML way for doing web requests? Just for data, not for rendering.

2017-12-28 Thread Mark Gaiser
On Thu, Dec 28, 2017 at 2:33 PM, Konstantin Tokarev <annu...@yandex.ru>
wrote:

>
>
> 28.12.2017, 15:23, "Mark Gaiser" <mark...@gmail.com>:
>
> On Fri, Dec 22, 2017 at 11:19 PM, Mark Gaiser <mark...@gmail.com> wrote:
>
> Hi,
>
> You know those fancy REST api's out there.
> How does one use them in QML?
>
> For websockets the answer is simple: QML WebSocket.
> But i didn't find a way to just do a web request to some url and get it's
> data, at least not a way that seems "QMLified".
>
> Sure, javascript can be used with it's XMLHttpRequest which will work just
> fine, but using it seems so.. not QML like. So is there a QML way to do
> such things?
>
>
> Best regards,
> Mark
>
>
> Bump..
>
>
> Did you see http://www.cutehacks.com/blog/2016/9/23/friendlier-network-
> requests-in-qml
> This is among first things that search engines show
>
> I apparently didn't do a good job at searching (which i did) :)
That looks like a really powerful "cURL for QML" api heavily inspired on
Javascript Promises.

I wouldn't use that directly in QML (it looks too low level for QML...) but
it can serve as base to implement some fancy models.
Thank you for that link!
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Is there a QML way for doing web requests? Just for data, not for rendering.

2017-12-28 Thread Mark Gaiser
On Thu, Dec 28, 2017 at 2:25 PM, Shawn Rutledge <shawn.rutle...@qt.io>
wrote:

> On 22 Dec 2017, at 23:19, Mark Gaiser <mark...@gmail.com> wrote:
> >
> > Hi,
> >
> > You know those fancy REST api's out there.
> > How does one use them in QML?
> >
> > For websockets the answer is simple: QML WebSocket.
> > But i didn't find a way to just do a web request to some url and get
> it's data, at least not a way that seems "QMLified".
> >
> > Sure, javascript can be used with it's XMLHttpRequest which will work
> just fine, but using it seems so.. not QML like. So is there a QML way to
> do such things?
>
> Not AFAIK, except for anything (like Image) which has a source URL.
>
> Why don’t you like XMLHttpRequest?  How would you want the QML API to look
> then? Do you expect to do some data processing in JS after you fetch the
> data, or just looking for a way to pass the data to some C++ code?  If the
> latter, why not do the loading in C++ too?
>
> (at least some of those are rhetorical questions… ;-)
>
>
Well, in my ideal situation the web request fills a model which is then
hooked into a view.
An hypothetical API like:

WebRequestModel {
  id: webRequest
  url: "https://some/webservice/url;
  parseType: WebRequestModel.JSON
}

ListView {
  model: webRequest
  .. and some delegate stuff ..
}

Done :)
That would look really clean to me and be very powerful for QML. I'm
slightly surprised that QML doesn't have something like this yet.

A little explanation for the hypothetical "WebRequestModel". As i wrote it
above it should have multiple ways to parse it's data. JSON in this case,
but also XML and YAML at the very least.
The QML -> C++ passing would just be the url from the QML side to the C++
QAIM implementation. There the JSON (and other types) would be parsed.
This structure would only work with simple data outputs from web services.
Not if there is cruft around the data that you'd need to filter out first.
You could add a hypothetical property to the hypothetical WebRequestModel
called "path" or "xpath" which would define the part of the data to use for
the model.

As for not liking XMLHttpRequest. It works I just don't like it's API.
It looks very verbose and very specific for website backends. Not really
fitting (api wise) for QML.
Did i answer all your questions? :)
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Is there a QML way for doing web requests? Just for data, not for rendering.

2017-12-28 Thread Mark Gaiser
On Fri, Dec 22, 2017 at 11:19 PM, Mark Gaiser <mark...@gmail.com> wrote:

> Hi,
>
> You know those fancy REST api's out there.
> How does one use them in QML?
>
> For websockets the answer is simple: QML WebSocket.
> But i didn't find a way to just do a web request to some url and get it's
> data, at least not a way that seems "QMLified".
>
> Sure, javascript can be used with it's XMLHttpRequest which will work just
> fine, but using it seems so.. not QML like. So is there a QML way to do
> such things?
>
>
> Best regards,
> Mark
>

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


[Interest] Is there a QML way for doing web requests? Just for data, not for rendering.

2017-12-22 Thread Mark Gaiser
Hi,

You know those fancy REST api's out there.
How does one use them in QML?

For websockets the answer is simple: QML WebSocket.
But i didn't find a way to just do a web request to some url and get it's
data, at least not a way that seems "QMLified".

Sure, javascript can be used with it's XMLHttpRequest which will work just
fine, but using it seems so.. not QML like. So is there a QML way to do
such things?


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


Re: [Interest] Awkward Javascript problem

2017-11-30 Thread Mark Tucker
Hi Nuno,

Are you attempting to access this "controller" property within a 
"Component.onCompleted" block of code?

With Loaders I've found from experience that there's a brief period of time 
where the component has been created (and therefore its Component.onCompleted 
signal fires), but it has not yet been fully added to the object heirarchy, so 
attempting to access anything outside of that object's own scope fails.

The only way I've ever found to get around this limitation is to instead figure 
out a way of using the onLoaded signal from the Loader, which seems to be 
emitted at a point where the QML object is correctly placed within the object 
heirarchy and can actually correctly access things outside of its own scope.

The above is my own observations from a number of years of writing QML code - 
it may be what you're seeing here. I don't know anywhere near enough about how 
the C++ side of things or how the internals of Qt works to be able to provide 
any more detail.

Perhaps you can change the point at which you run this code?

Mark T

From: Interest 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Nuno Santos
Sent: 30 November 2017 10:11
To: Qt Project MailingList <interest@qt-project.org>
Subject: [Interest] Awkward Javascript problem

Hi,

I usually register a controller property that points to a Controller classe 
when I start my Qt apps. I can then access the controller from any point of the 
code in Javascript:

quickView->rootContext()->setContextProperty("controller", );

Curiously, I’m having an issue in which inside a MouseArea onClick event, 
controller is not defined:

ReferenceError: controller is not defined

This MouseArea lives inside a Loader component that is one of the children of a 
SplitView.

Maybe this be the cause for such ReferenceError? How can I workaround this? Any 
ideas?

Thanks!

Regards,

Nuno


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


Re: [Interest] Improve ListView scrolling performance (many pictures)

2017-08-13 Thread Mark Gaiser
Hi,

I don't quite follow.

First you say you implemented our suggestions (move image processing in a
thread), then you say: "all operations are performed in the main (GUI)
thread"... Exactly the opposite of what we've been suggesting.

If i'm reading your reply correctly you're not offloading anything to a
separate thread ;)
Do that and the listview will feel a lot more performant.



On Sun, Aug 13, 2017 at 10:40 PM, Bernhard B <schluc...@gmail.com> wrote:

> Many thanks guys!
>
> I just implemented your suggestions and have to say that the scrolling
> performance definitely improved a lot. Thanks a lot for your help!
>
> However, as I am now doing more work (compress image + resize) before I
> populate the Listmodel, I noticed that there is a significant lag every
> time I fetch and process another batch of images from the server. I think
> that's due to the fact that all operations are performed in the main (GUI)
> thread.
>
> Does anyone know if it's possible to move the populating of the ListModel
> to another thread? I am aware of the WorkerScript concept, but as far as I
> know this only works for QML ListModel's and not for
> QAbstractListModel-derived models. Or is the only possibility to move the
> heavy lifiting (i.e image operations) to a separate thread and keep the
> rest in the main thread? (as Mark suggested)
>
> Thanks,
> Bernhard
>
>
>
>
> 2017-08-11 15:54 GMT+02:00 Andy <asmalo...@gmail.com>:
>
>> I've been using jpeg - something like this (where MAX_THUMB_DIM is 60):
>>
>> void  _saveThumbnail( QImage inImage, const QString  )
>> {
>>QImage   image = inImage.scaled( MAX_THUMB_DIM, MAX_THUMB_DIM,
>> Qt::KeepAspectRatio, Qt::SmoothTransformation );
>>
>>QImageWriter writer( inPath, "JPEG" );
>>
>>writer.setQuality( 100 );
>>writer.setOptimizedWrite( true );
>>writer.setProgressiveScanWrite( true );
>>
>>writer.write( image );
>> }
>>
>> It gives me decent-looking, reasonable sized thumbnails.
>>
>> ---
>> Andy Maloney  //  https://asmaloney.com
>> twitter ~ @asmaloney <https://twitter.com/asmaloney>
>>
>>
>> On Fri, Aug 11, 2017 at 9:36 AM, Bernhard B <schluc...@gmail.com> wrote:
>>
>>> Hi Andy,
>>>
>>> many thanks for your response! I am also using a
>>> QAbstractListModel-derived class that gets exposed to the QML world which
>>> contains the images.
>>>
>>> Yesterday I started to resize the images before feeding them to the
>>> ListModel. According to the QML Profiler the delegate gets now created a
>>> little bit faster, but fast scrolling is still a little bit sluggish. Today
>>> I probably will play a little bit with different image codecs to see if
>>> those have an impact. Currently I am using *.png files often which is
>>> probably not the best choice.
>>>
>>> Thanks a lot for your input, really appreciated!
>>>
>>> Bernhard
>>>
>>>
>>> Am Freitag, 11. August 2017 schrieb Andy :
>>>
>>>> Bernhard:
>>>>
>>>> I don't use QML, but in my application I use a
>>>> QAbstractItemModel-derived class and a QTreeView-derived class to display
>>>> image thumbnails in the view. The way I make it speedy is to save the image
>>>> as a thumbnail so the view items don't need to resize the image data at 
>>>> all.
>>>>
>>>> Maybe you could save a thumbnail of an appropriate size when you're
>>>> adding them to your model?
>>>>
>>>> ---
>>>> Andy Maloney  //  https://asmaloney.com
>>>> twitter ~ @asmaloney <https://twitter.com/asmaloney>
>>>>
>>>>
>>>> On Fri, Aug 11, 2017 at 3:33 AM, Bernhard B <schluc...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Vlad,
>>>>>
>>>>> you mean the QQuickAsyncImageProvider? That one sounds really
>>>>> promising. Will definitely try that out. Many thanks for the suggestion!
>>>>>
>>>>> Bernhard
>>>>>
>>>>> Am Donnerstag, 10. August 2017 schrieb Vlad Stelmahovsky :
>>>>>
>>>>>> threaded image provider might help
>>>>>>
>>>>>> On Thu, Aug 10, 2017 at 12:36 PM, Bernhard B <schluc...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> yesterday, I also tried to replace t

Re: [Interest] Improve ListView scrolling performance (many pictures)

2017-08-11 Thread Mark Gaiser
You need to do the "heavy" image operations in a separate thread!
Copy the result back to the main thread and feed it to QML.
You should not do any more operations on it once it lives in the main
thread (no resize, scale, colorize, whatever) as you will notice that
during scrolling.

On Fri, Aug 11, 2017 at 3:36 PM, Bernhard B  wrote:

> Hi Andy,
>
> many thanks for your response! I am also using a
> QAbstractListModel-derived class that gets exposed to the QML world which
> contains the images.
>
> Yesterday I started to resize the images before feeding them to the
> ListModel. According to the QML Profiler the delegate gets now created a
> little bit faster, but fast scrolling is still a little bit sluggish. Today
> I probably will play a little bit with different image codecs to see if
> those have an impact. Currently I am using *.png files often which is
> probably not the best choice.
>
> Thanks a lot for your input, really appreciated!
>
> Bernhard
>
>
> Am Freitag, 11. August 2017 schrieb Andy :
>
>> Bernhard:
>>
>> I don't use QML, but in my application I use a QAbstractItemModel-derived
>> class and a QTreeView-derived class to display image thumbnails in the
>> view. The way I make it speedy is to save the image as a thumbnail so the
>> view items don't need to resize the image data at all.
>>
>> Maybe you could save a thumbnail of an appropriate size when you're
>> adding them to your model?
>>
>> ---
>> Andy Maloney  //  https://asmaloney.com
>> twitter ~ @asmaloney 
>>
>>
>> On Fri, Aug 11, 2017 at 3:33 AM, Bernhard B  wrote:
>>
>>> Hi Vlad,
>>>
>>> you mean the QQuickAsyncImageProvider? That one sounds really promising.
>>> Will definitely try that out. Many thanks for the suggestion!
>>>
>>> Bernhard
>>>
>>> Am Donnerstag, 10. August 2017 schrieb Vlad Stelmahovsky :
>>>
 threaded image provider might help

 On Thu, Aug 10, 2017 at 12:36 PM, Bernhard B 
 wrote:

> Hi,
>
> yesterday, I also tried to replace the Base64ImageProvider approach
> with a subclassed QQuickPaintedItem which paints the image in it's paint
> method. I imagined that this approach might be faster es no bade64 
> decoding
> needs to be done. But unfortunately it looks like as it's performing even
> worse that way.
>
> Bernhard
>
> Am Mittwoch, 9. August 2017 schrieb Bernhard B :
>
>> Hi,
>>
>> I would need some help from you guys on how to improve the ListView's
>> performance. The problem is, that scrolling through my ListView sometimes
>> feels a little bit sluggish.
>>
>> If I only display some text in the ListView's delegate I can scroll
>> smoothly through my list. But as soon as there is a picture in the
>> ListView's delegate I notice that I can't scroll smoothly through my list
>> anymore. That's especially noticable if I try to scroll fast through my
>> list. Every time I hit a picture while scrolling through the list I can 
>> see
>> that there is a noticable delay until the picture is fully loaded. My
>> assumption is, that those pictures are the reason why he scrolling feels 
>> so
>> sluggish.
>>
>> My application currently works like this:
>>
>> * load 20 pictures via REST (pictures are base64 encoded)
>> * populate list model
>> * the Image component in the delegate uses a Base64ImageProvider
>> (self written) to access the model's base64 encoded content and displays
>> the image
>> * if the user scrolls past a threshold another batch of base64
>> encoded pictures is fetched from the server
>>
>> I also found this document: http://doc.qt.io/qt-
>> 5/qtquick-performance.html#rendering and tried to apply as much as
>> possible. In detail I applied the following changes:
>>
>> * removed complex bindings from delegate
>> * set sourceSize property for Image
>> * increased cacheBuffer a bit
>> * profiled with QML profiler and improved a few things
>>
>> But still, the ListView feels a bit sluggish. The strange thing is,
>> that it's most noticable on Android whereas on Windows and iOs it is 
>> better.
>>
>> Does anyone have an idea on how to improve that?
>>
>>
>> Any help is really appreciated.
>> Thanks a lot!
>>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


 --
 Best regards,
 Vlad

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

[Interest] Android 5.9.1 qmltestcase

2017-07-18 Thread Mark R Youngquist
I've been struggling for a bit without an understanding of why this error is 
occuring.  We have a series of test cases we want to run on Android, but are 
unable to get a build to compile.  This works properly under 5.8.0, and it 
works on Windows builds with 5.9.1


We simple add a CONFIG+=qmltestcase to the project pro file, and begin getting 
a series of errors during the qmake process:


Makefile:1954: warning: overriding recipe for target 'install_target'

Makefile:1945: warning: ignoring old recipe for target 'install_target'

Makefile:1958: warning: overriding recipe for target 'uninstall_target'

Makefile:1949: warning: ignoring old recipe for target 'uninstall_target'


Additionally if we attempt to build while ignoring those warnings we get errors 
within mingw.


Is there something I am missing?  Documentation is not helping as it doesn't 
look like anything has changed with regards to testing.


Thanks!


Mark Youngquist

<http://vantagecontrols.com>



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.
Se désabonner: Si vous souhaitez être retiré de notre liste de diffusion, s'il 
vous plaît envoyer vos coordonnées à 
casl.unsubscr...@legrand.ca<mailto:casl.unsubscr...@legrand.ca> et indiquer 
quels sont les messages que vous ne souhaitez plus recevoir.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.
Unsubscribe: If you would like to be removed from our mailing list, please send 
your contact information to 
casl.unsubscr...@legrand.ca<mailto:casl.unsubscr...@legrand.ca> and indicate 
what messages you no longer wish to receive.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Updating NumberAnimation from/to at runtime

2017-07-14 Thread Mark Tucker
From my experience, once started, you cannot dynamically change the parameters 
(such as from, to, duration) of an animation in such a way, without restarting 
the animation. Doing so simply has no effect on the already running animation.

In other words, the values are taken as an assignment at the point at which 
it's started and will not change until the animation is restarted.

-Mark

From: Interest 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Kristoffersen, Even (NO14)
Sent: 14 July 2017 14:00
To: interest@qt-project.org
Subject: Re: [Interest] Updating NumberAnimation from/to at runtime

You can try to force binding with Qt.binding().

-Even

From: Interest 
[mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org] On 
Behalf Of Shantanu Tushar
Sent: 14. juli 2017 11:27
To: interest@qt-project.org<mailto:interest@qt-project.org>
Subject: [Interest] Updating NumberAnimation from/to at runtime

Hi,
Consider the following code which draws two rectangles - a red rectangle which 
contains another blue rectangle.

Rectangle {
id: r1
anchors.centerIn: parent
width: 300; height: 100
color: "red"

Rectangle {
id: r2
width: 100; height: 100
color: "blue"

NumberAnimation on x {
loops: Animation.Infinite
from: 0; to: r1.width-r2.width
duration: 1000

onToChanged: console.log(to)
}
}

NumberAnimation on width {
loops: Animation.Infinite
from: 300; to: 100
duration: 1
}
}
The blue rectangle is supposed to keep moving inside the red rectangle by means 
of a NumberAnimation. However, the width of the red rectangle changes according 
to another animation.
I thought this will work fine and the blue rectangle will be confined to the 
red rectangle because of the following binding-

to: r1.width-r2.width
However, thats not what happens. The blue rectangle overflows the red 
rectangle, as if the binding never got updated. But, I can see that the 
`console.log(to)` does prove the binding is working.

(Screenshot at 
http://i.imgur.com/yDTYbv9.png<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fi.imgur.com%2FyDTYbv9.png=02%7C01%7Ceven.kristoffersen%40honeywell.com%7C5b50a750b34e473ffd8708d4ca9a91e0%7C96ece5269c7d48b08daf8b93c90a5d18%7C0%7C0%7C636356212616706749=D17jHatSL1gf3XFPYQpAebB2e1H7T7nmzhLvi%2BPcB5g%3D=0>
 )
Is this a limitation of NumberAnimation? Or am I using it wrong?

--
Shantanu Tushar(UTC +0530)
shantanu.io<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshantanu.io=02%7C01%7Ceven.kristoffersen%40honeywell.com%7C5b50a750b34e473ffd8708d4ca9a91e0%7C96ece5269c7d48b08daf8b93c90a5d18%7C0%7C0%7C636356212616706749=E80rwaltPVsx1m%2FToEC8aIY1%2F9fwpeFCfxrLlThOxTs%3D=0>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] TableView in Qt Quick Controls 2

2017-06-28 Thread Mark Gaiser
On Mon, Jun 26, 2017 at 7:51 PM, J-P Nurmi <jpnu...@qt.io> wrote:

> On 26 Jun 2017, at 19:10, Jean-Michaël Celerier <
> jeanmichael.celer...@gmail.com> wrote:
>
>
> On Mon, Jun 26, 2017 at 6:19 PM, Frederik Gladhorn <
> frederik.gladh...@qt.io> wrote:
>
>>
>>
>> 5.10 is scheduled for the end of this year. I'd rather expect this to be
>> in
>> 5.11 - mid next-year. I hope we'll have something sooner for people to
>> play
>> with though, let's see.
>>
>
> Question: why must a single component like this be coupled so tightly to
> the rest of the framework ?
> Why does it have to be in the "official" Qt release at all, and not in a
> separate git repo or something loosely coupled ?
> Couldn't it be released on a separate channel as a qml extension plugin ?
>
> Just trying to understand.
>
>
> The goal is to get the new TableView’s performance on the same level with
> ListView and  GridView. (The old QML-based TableView is from a different
> planet.) The idea is to base the new TableView on the existing Qt Quick
> item view framework, and support all same item view transitions, item
> recycling, and all that. Providing such functionality as a standalone
> addition outside of Qt Quick is not doable without re-writing or forking
> the entire Qt Quick item view framework, which is a lot of code and goes
> into deep internals of libQtQuick and libQtQml. Even though there have been
> some discussions about re-writing the item view framework from scratch, we
> don’t plan to do that now as that would take a lot longer than it has taken
> so far to refactor the existing item view framework to support
> two-dimensional views. What remains to be done for the view itself is the
> actual table layout for the visible items. After that, there are a few
> other things on the TODO-list related to multiple delegate types,
> multi-selection, and so on (http://lists.qt-project.org/
> pipermail/development/2017-January/028344.html).
>
> --
> J-P Nurmi
>
> Hi J-P,

>From what you just said there i get the impression that the new table view
has "some code somewhere", right?
Or is it all still in a planning phase?

Anyhow, if there is some working code for this somewhere, could you point
me to that? I'd like to play with it and see if it fits my needs.
In this case that's merely displaying a calendar and showing animations
when switching between months.


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


Re: [Interest] Issue with ComboBox style properties in QtQuick.Controls 2.1

2017-05-24 Thread Mark R Youngquist
Qt Quick Controls 2 does not use the style property as controls 1 does.


See documentation here for customizing the look and feel:


https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-combobox

Customizing Qt Quick Controls 2 | Qt Quick Controls 2 
5.8
doc.qt.io
Qt Quick Controls 2 consist of a hierarchy (tree) of items. In order to provide 
a custom look and feel, the default QML implementation of each item can be 
replaced ...






From: Interest 
 on behalf 
of Nibedit Dey 
Sent: Thursday, May 18, 2017 8:11:11 AM
To: interest@qt-project.org
Subject: [Interest] Issue with ComboBox style properties in QtQuick.Controls 2.1

Hello Everyone,

I am trying to use SwipeView and ComboBoxStyle together in a file. In 
QtQuick.Controls 2.1, seems like style properties is not there.

I tried to mix both modules. I believe we shouldn't do this.
But when I experimented this approach to use SwipeView and ComboboxStyle 
together.
Please refer to the snippets below.

In first case, QtQuick.Controls 2.1 is used before 1.4. Hence it works properly.
In second case, QtQuick.Controls 1.4 is used before 2.1 and it gives error.
In third case, I mixed and accessed with another name and it fails again.

Is it a bug in ComboBox implementation in QtQuick.Controls 2.1? How can I use 
both SwipeView and ComboBoxStyle together?

Snippet 1: //Works

import QtQuick 2.5

import QtQuick.Window 2.2

import QtQuick.Controls 2.1

import QtQuick.Controls 1.4

import QtQuick.Controls.Styles 1.4


Window {

visible: true

width: 640

height: 480

title: qsTr("Snippet 1")


SwipeView{

currentIndex: 0

anchors.fill : parent


Item {

id: page1

ComboBox {

x: 100

width: 200

model: [ "Apple","Banana", "Orange","Others" ]


style: ComboBoxStyle {

id: comboBox

background: Rectangle {

id: rectCategory

color: "transparent"

border.width: 1

border.color: "gray"

radius: 15

}

label: Text {

verticalAlignment: Text.AlignVCenter

horizontalAlignment: Text.AlignHCenter

font.pixelSize: 20

font.capitalization: Font.SmallCaps

color: "#40C0FF"

text: control.currentText

}

}

}

}

Item {

id:page2

}

}

}



Snippet 2:


Cannot assign to non-existent property "style"


import QtQuick 2.5

import QtQuick.Window 2.2

import QtQuick.Controls 1.4

import QtQuick.Controls.Styles 1.4

import QtQuick.Controls 2.1

Window {

visible: true

width: 640

height: 480

title: qsTr("Snippet 2")


SwipeView{

currentIndex: 0

anchors.fill : parent

Item {

id: page1

ComboBox {

x: 100

width: 200

model: [ "Apple","Banana", "Orange","Others" ]

style: ComboBoxStyle {

id: comboBox

background: Rectangle {

id: rectCategory

color: "transparent"

border.width: 1

border.color: "gray"

radius: 15

}

label: Text {

verticalAlignment: Text.AlignVCenter

horizontalAlignment: Text.AlignHCenter

font.pixelSize: 20

font.capitalization: Font.SmallCaps

color: "#40C0FF"

text: control.currentText

}

}

}

}

Item {

id:page2

}

}

}

Snippet 3:

Error: NewControls.SwipeView is not a type


import QtQuick 2.5

import QtQuick.Window 2.2

import QtQuick.Controls 2.1 as OldControls

import QtQuick.Controls 1.4 as NewControls

import QtQuick.Controls.Styles 1.4


Window {

visible: true

width: 640

height: 480

title: qsTr("Snippet 3")

NewControls.SwipeView{

currentIndex: 0

anchors.fill : parent

Item {

id: page1

OldControls.ComboBox {

x: 100

width: 200

model: [ "Apple","Banana", "Orange","Others" ]

style: ComboBoxStyle {

id: comboBox


Re: [Interest] Another query on GTK platform theme/style

2017-04-18 Thread Mark Gaiser
On Tue, Apr 18, 2017 at 10:42 AM, Mark Gaiser <mark...@gmail.com> wrote:
> On Tue, Apr 18, 2017 at 8:59 AM, Thiago Macieira
> <thiago.macie...@intel.com> wrote:
>> Em segunda-feira, 17 de abril de 2017, às 23:44:06 PDT, Elvis Stansvik
>> escreveu:
>>> Den 18 apr. 2017 6:46 fm skrev "Thiago Macieira" <thiago.macie...@intel.com
>>> > > 2. This is something that will be rectified in a future Qt release.
>>> >
>>> > Use the one from Fedora developers.
>>>
>>> Do you mean as a temporary solution, or are there are no plans for an
>>> official Gtk3 style plugin?
>>
>> I did not mean temporary. It's permanent as long as the developers of this
>> platform theme plugin do not decide to submit their code to Qt. It's their
>> project, they can do whatever they want with it. Now, I don't know if anyone
>> has ever asked them. I, for one, didn't know it existed until a few hours 
>> ago.
>>
>> I don't think Qt developers should redevelop it from scratch. That wouldn't 
>> be
>> a good use of our time, plus the Fedora developers are actually knowledgeable
>> about Gtk, unlike us.
>>
>>> I've always thought it a great strength that Qt can look native on both the
>>> big Linux desktops out of the box, so would be a bit sad if there are no
>>> plans for a Gtk3 successor to the Gtk2 style.
>>
>> If the plugin is installed system-wide, any Qt should be able to load it, 
>> even
>> the official binary packages (provided the plugin can be somehow found).
>>
>> This applies to the KDE platform theme plugin too.
>
> This sadly isn't the case.hat might not be entirely correct anymore.
> It used to be a platform plugin that you could load in any desktop 
> environment.
>
> But this changed some half year ago [1] since they had issues they
> "could not resolve otherwise"...
> The platform theme is now part of some plasma library or kwin. Don't know.

No, i do know :)
https://cgit.kde.org/plasma-integration.git/
>
> That doesn't mean it doesn't work. It's just not guaranteed to work
> and if it does, it will lack support for some features. I think it was
> about the system tray, but i don't know the details.
>
> [1] 
> https://cgit.kde.org/frameworkintegration.git/commit/?id=5ddb0b262dc409071f556dbd3f94799136b60909
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Another query on GTK platform theme/style

2017-04-18 Thread Mark Gaiser
On Tue, Apr 18, 2017 at 8:59 AM, Thiago Macieira
 wrote:
> Em segunda-feira, 17 de abril de 2017, às 23:44:06 PDT, Elvis Stansvik
> escreveu:
>> Den 18 apr. 2017 6:46 fm skrev "Thiago Macieira" > > > 2. This is something that will be rectified in a future Qt release.
>> >
>> > Use the one from Fedora developers.
>>
>> Do you mean as a temporary solution, or are there are no plans for an
>> official Gtk3 style plugin?
>
> I did not mean temporary. It's permanent as long as the developers of this
> platform theme plugin do not decide to submit their code to Qt. It's their
> project, they can do whatever they want with it. Now, I don't know if anyone
> has ever asked them. I, for one, didn't know it existed until a few hours ago.
>
> I don't think Qt developers should redevelop it from scratch. That wouldn't be
> a good use of our time, plus the Fedora developers are actually knowledgeable
> about Gtk, unlike us.
>
>> I've always thought it a great strength that Qt can look native on both the
>> big Linux desktops out of the box, so would be a bit sad if there are no
>> plans for a Gtk3 successor to the Gtk2 style.
>
> If the plugin is installed system-wide, any Qt should be able to load it, even
> the official binary packages (provided the plugin can be somehow found).
>
> This applies to the KDE platform theme plugin too.

This sadly isn't the case.hat might not be entirely correct anymore.
It used to be a platform plugin that you could load in any desktop environment.

But this changed some half year ago [1] since they had issues they
"could not resolve otherwise"...
The platform theme is now part of some plasma library or kwin. Don't know.

That doesn't mean it doesn't work. It's just not guaranteed to work
and if it does, it will lack support for some features. I think it was
about the system tray, but i don't know the details.

[1] 
https://cgit.kde.org/frameworkintegration.git/commit/?id=5ddb0b262dc409071f556dbd3f94799136b60909
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Awesome, I have it working, thanks very much for putting up with all my 
questions :D

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:13
To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 17:08, "Mark Tucker" <mark.tuc...@airborne.aero>:
> Ah, there's a 5.5.1 tag in there, presumably that's what I would need?
>
> Now I need to read up on how to use this from git :)

You just clone this repo, checkout 5.5.1 and build with qmake

>
> Thanks
>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:06
> To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
> Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 17:03, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>  I'm not using the SDK installer - I compiled my own version of Qt from the 
>> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
>> that is the QtWebView module.
>>
>>  Is it a separate download?
>
> I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 15:02
>>  To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
>> Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:58, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>>   Where do I install it from? Is it a configure option?
>>
>>  If you are using Qt SDK installer, you probably need to build it from 
>> source, as there is no binary component for 5.5.1 or earlier
>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>>   Sent: 05 April 2017 14:53
>>>   To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne 
>>> <kai.koe...@qt.io>; Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh 
>>> <szehowe@gmail.com>
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
>>>   05.04.2017, 16:45, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>>>    Hi Kai,
>>>>
>>>>    My problem is that despite having successfully compiled and installed 
>>>> both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>>>> platform, the QML statement
>>>
>>>   You need to install QtWebView module
>>>
>>>>    import QtWebView 1.0
>>>>
>>>>    Reports as being uninstalled/not available when I attempt to run my QML 
>>>> app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
>>>> same effect). This import works on my target Android platform.
>>>>
>>>>    There does not appear to be a specific "qtwebview" folder/module within 
>>>> my Src folder for my Qt version.
>>>>
>>>>    I ran configure with no options, i.e. literally just "./configure" with 
>>>> nothing added.
>>>>
>>>>    I can live with having to have different import statements for the 
>>>> different platforms if I have to, was just wanting to check that I wasn't 
>>>> missing something stupid/obvious.
>>>>
>>>>    Thanks
>>>>
>>>>    Mark
>>>>
>>>>    -Original Message-
>>>>    From: Interest 
>>>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
>>>> Behalf Of Kai Koehne
>>>>    Sent: 05 April 2017 12:21
>>>>    To: Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh 
>>>> <szehowe@gmail.com>
>>>>    Cc: interest@qt-project.org
>>>>    Subject: Re: [Interest] QML WebView modules
>>>>
>>>>> -Original Message-
>>>>> From: Interest
>>>>>    

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Ah, there's a 5.5.1 tag in there, presumably that's what I would need?

Now I need to read up on how to use this from git :)

Thanks

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:06
To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 17:03, "Mark Tucker" <mark.tuc...@airborne.aero>:
> I'm not using the SDK installer - I compiled my own version of Qt from the 
> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
> that is the QtWebView module.
>
> Is it a separate download?

I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:02
> To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
> Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:58, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>  Where do I install it from? Is it a configure option?
>
> If you are using Qt SDK installer, you probably need to build it from source, 
> as there is no binary component for 5.5.1 or earlier
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 14:53
>>  To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
>> Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:45, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>>   Hi Kai,
>>>
>>>   My problem is that despite having successfully compiled and installed 
>>> both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>>> platform, the QML statement
>>
>>  You need to install QtWebView module
>>
>>>   import QtWebView 1.0
>>>
>>>   Reports as being uninstalled/not available when I attempt to run my QML 
>>> app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
>>> same effect). This import works on my target Android platform.
>>>
>>>   There does not appear to be a specific "qtwebview" folder/module within 
>>> my Src folder for my Qt version.
>>>
>>>   I ran configure with no options, i.e. literally just "./configure" with 
>>> nothing added.
>>>
>>>   I can live with having to have different import statements for the 
>>> different platforms if I have to, was just wanting to check that I wasn't 
>>> missing something stupid/obvious.
>>>
>>>   Thanks
>>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Interest 
>>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
>>> Behalf Of Kai Koehne
>>>   Sent: 05 April 2017 12:21
>>>   To: Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh 
>>> <szehowe@gmail.com>
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
>>>>    -Original Message-
>>>>    From: Interest
>>>>    [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>>>    [..]
>>>>    With Qt 5.5 the Qt WebKit module is
>>>>    deprecated:(https://wiki.qt.io/New-
>>>>    Features-in-Qt-5.5#Deprecated_Functionality)
>>>>
>>>>    QWebView uses WebKit as the backend.
>>>>
>>>>    QWebEngineView uses Chromium as the backend.
>>>>
>>>>    WebView with the same name has been defined in both WebKit and
>>>>    WebEngine. Hence import statement varies.[I believe this is the source
>>>>    of confusion ]
>>>>
>>>>    import QtWebKit 3.0
>>>>    import QtWebView 1.0
>>>
>>>   Not exactly. The terminology is arguably confusing here, but the 
>>> "QtWebView" import comes from the "Qt WebView" module 
>>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>>> abstracts different rendering engines (Qt Web

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
I'm not using the SDK installer - I compiled my own version of Qt from the 
5.5.1 sources. There doesn't seem to be anything included in that tarball that 
is the QtWebView module.

Is it a separate download?

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:02
To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 16:58, "Mark Tucker" <mark.tuc...@airborne.aero>:
> Where do I install it from? Is it a configure option?

If you are using Qt SDK installer, you probably need to build it from source, 
as there is no binary component for 5.5.1 or earlier

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 14:53
> To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
> Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:45, "Mark Tucker" <mark.tuc...@airborne.aero>:
>>  Hi Kai,
>>
>>  My problem is that despite having successfully compiled and installed both 
>> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>> platform, the QML statement
>
> You need to install QtWebView module
>
>>  import QtWebView 1.0
>>
>>  Reports as being uninstalled/not available when I attempt to run my QML app 
>> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
>> effect). This import works on my target Android platform.
>>
>>  There does not appear to be a specific "qtwebview" folder/module within my 
>> Src folder for my Qt version.
>>
>>  I ran configure with no options, i.e. literally just "./configure" with 
>> nothing added.
>>
>>  I can live with having to have different import statements for the 
>> different platforms if I have to, was just wanting to check that I wasn't 
>> missing something stupid/obvious.
>>
>>  Thanks
>>
>>  Mark
>>
>>  -Original Message-
>>  From: Interest 
>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
>> Of Kai Koehne
>>  Sent: 05 April 2017 12:21
>>  To: Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh 
>> <szehowe@gmail.com>
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>>   -Original Message-
>>>   From: Interest
>>>   [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>>   [..]
>>>   With Qt 5.5 the Qt WebKit module is
>>>   deprecated:(https://wiki.qt.io/New-
>>>   Features-in-Qt-5.5#Deprecated_Functionality)
>>>
>>>   QWebView uses WebKit as the backend.
>>>
>>>   QWebEngineView uses Chromium as the backend.
>>>
>>>   WebView with the same name has been defined in both WebKit and
>>>   WebEngine. Hence import statement varies.[I believe this is the source
>>>   of confusion ]
>>>
>>>   import QtWebKit 3.0
>>>   import QtWebView 1.0
>>
>>  Not exactly. The terminology is arguably confusing here, but the 
>> "QtWebView" import comes from the "Qt WebView" module 
>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>> abstracts different rendering engines (Qt WebEngine, native) away behind a 
>> simple API.
>>
>>  So
>>
>>  ---
>>  import QtWebView 1.0
>>
>>  WebView {
>>    // ...
>>  }
>>  --
>>  should work both on mobile and desktop. On Android, iOS and WinRT the 
>> native browsers are embedded, on all the rest Qt WebEngine is used (if 
>> available).
>>
>>  Regards
>>
>>  Kai
>>  ___
>>  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
>
> --
> Regards,
> Konstantin

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


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Where do I install it from? Is it a configure option?

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 14:53
To: Mark Tucker <mark.tuc...@airborne.aero>; Kai Koehne <kai.koe...@qt.io>; 
Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 16:45, "Mark Tucker" <mark.tuc...@airborne.aero>:
> Hi Kai,
>
> My problem is that despite having successfully compiled and installed both 
> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
> platform, the QML statement

You need to install QtWebView module

>
> import QtWebView 1.0
>
> Reports as being uninstalled/not available when I attempt to run my QML app 
> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
> effect). This import works on my target Android platform.
>
> There does not appear to be a specific "qtwebview" folder/module within my 
> Src folder for my Qt version.
>
> I ran configure with no options, i.e. literally just "./configure" with 
> nothing added.
>
> I can live with having to have different import statements for the different 
> platforms if I have to, was just wanting to check that I wasn't missing 
> something stupid/obvious.
>
> Thanks
>
> Mark
>
> -Original Message-
> From: Interest 
> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
> Of Kai Koehne
> Sent: 05 April 2017 12:21
> To: Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
>>  -Original Message-
>>  From: Interest
>>  [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>  [..]
>>  With Qt 5.5 the Qt WebKit module is
>>  deprecated:(https://wiki.qt.io/New-
>>  Features-in-Qt-5.5#Deprecated_Functionality)
>>
>>  QWebView uses WebKit as the backend.
>>
>>  QWebEngineView uses Chromium as the backend.
>>
>>  WebView with the same name has been defined in both WebKit and
>>  WebEngine. Hence import statement varies.[I believe this is the source
>>  of confusion ]
>>
>>  import QtWebKit 3.0
>>  import QtWebView 1.0
>
> Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
> import comes from the "Qt WebView" module 
> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
> abstracts different rendering engines (Qt WebEngine, native) away behind a 
> simple API.
>
> So
>
> ---
> import QtWebView 1.0
>
> WebView {
>   // ...
> }
> --
> should work both on mobile and desktop. On Android, iOS and WinRT the native 
> browsers are embedded, on all the rest Qt WebEngine is used (if available).
>
> Regards
>
> Kai
> ___
> 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

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


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Hi Kai,

My problem is that despite having successfully compiled and installed both the 
qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux platform, the 
QML statement

import QtWebView 1.0

Reports as being uninstalled/not available when I attempt to run my QML app on 
my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
effect). This import works on my target Android platform.

There does not appear to be a specific "qtwebview" folder/module within my Src 
folder for my Qt version.

I ran configure with no options, i.e. literally just "./configure" with nothing 
added.

I can live with having to have different import statements for the different 
platforms if I have to, was just wanting to check that I wasn't missing 
something stupid/obvious.

Thanks

Mark

-Original Message-
From: Interest 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Kai Koehne
Sent: 05 April 2017 12:21
To: Nibedit Dey <nibedit@gmail.com>; Sze Howe Koh <szehowe@gmail.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



> -Original Message-
> From: Interest 
> [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> [..]
> With Qt 5.5 the Qt WebKit module is 
> deprecated:(https://wiki.qt.io/New-
> Features-in-Qt-5.5#Deprecated_Functionality)
> 
> QWebView uses WebKit as the backend.
> 
> QWebEngineView uses Chromium as the backend.
> 
> WebView with the same name has been defined in both WebKit and 
> WebEngine. Hence import statement varies.[I believe this is the source 
> of confusion ]
> 
> import QtWebKit 3.0
> import QtWebView 1.0

Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
import comes from the "Qt WebView" module 
(http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that abstracts 
different rendering engines (Qt WebEngine, native) away behind a simple API.

So 

---
import QtWebView 1.0

WebView {
  // ...
}
--
should work both on mobile and desktop. On Android, iOS and WinRT the native 
browsers are embedded, on all the rest Qt WebEngine is used (if available).

Regards

Kai
___
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 WebView modules

2017-04-05 Thread Mark Tucker
Hi All,

Thanks for your input.

Seems like due to the Qt version I need to use, I may have to have different 
QML code for my target Android and Linux platforms.

I have ways of working around this, and this isn't for anything that's going 
public anyway so I'll figure something out.

Thanks again!

Mark

From: Nibedit Dey [mailto:nibedit@gmail.com]
Sent: 05 April 2017 05:50
To: Sze Howe Koh <szehowe@gmail.com>
Cc: Mark Tucker <mark.tuc...@airborne.aero>; interest@qt-project.org
Subject: Re: [Interest] QML WebView modules

Dear Sze-Howe,

I haven't worked much in Qt web modules. But below is my understanding.

With Qt 5.5 the Qt WebKit module is 
deprecated:(https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality)

QWebView uses WebKit as the backend.

QWebEngineView uses Chromium as the backend.

WebView with the same name has been defined in both WebKit and WebEngine. Hence 
import statement varies.[I believe this is the source of confusion ]

import QtWebKit 3.0
import QtWebView 1.0

In 5.8,
import QtWebView 1.1
QT += qml quick webview
This is useful on mobile platforms such as Android, iOS, and WinRT; especially 
on iOS, where policy dictates that all web content is displayed using the 
operating system's web view. [ http://doc.qt.io/qt-5/qtwebview-index.html ]

Regards,
Nibedit

On Wed, Apr 5, 2017 at 4:20 AM, Sze Howe Koh 
<szehowe@gmail.com<mailto:szehowe@gmail.com>> wrote:
On 4 April 2017 at 21:39, Nibedit Dey 
<nibedit@gmail.com<mailto:nibedit....@gmail.com>> wrote:
>
>
> Hi Mark,
>
> Qt WebEngine is only supported on desktop platforms.Hence Linux is supported.
> It's not supported on mobile platforms yet .So Qt 5.5.1 doesn't support.
> Refer: https://doc.qt.io/archives/qt-5.5/qtmodules.html
>
> To use WebView module, in pro file add:
> QT += webkit
> greaterThan(QT_MAJOR_VERSION, 4):QT+=webkitwidgets

The Qt WebView module is not related to WebKit.

Unfortunately, there are two different things named "WebView" in Qt,
which is very confusing:

* http://doc.qt.io/archives/qt-5.5/qml-qtwebview-webview.html
* http://doc.qt.io/archives/qt-5.5/qml-qtwebkit-webview.html


> For WebEngine module add:
> QT += webengine
>
> In both cases, Linux should be working.
>
> Regards,
> Nibedit
> .
>
>
> -- Forwarded message --
> From: Mark Tucker 
> <mark.tuc...@airborne.aero<mailto:mark.tuc...@airborne.aero>>
> Date: Tue, Apr 4, 2017 at 3:56 PM
> Subject: [Interest] QML WebView modules
> To: "interest@qt-project.org<mailto:interest@qt-project.org>" 
> <interest@qt-project.org<mailto:interest@qt-project.org>>
>
>
> Hi,
>
>
>
> I'm currently trying to create a QML app that works on both a Linux platform 
> and an Android platform. Due to the nature of my target platforms (embedded 
> systems), I'm limited to Qt 5.5.1 and cannot upgrade.
>
> Note that my app is pure QML and I cannot write any C++ code to solve this.
>
> To get the app running on Android, I can put "import QtWebView 1.1" into my 
> QML file imports, and then create a simple WebView component and set its URL 
> and that works.
>
> That same import doesn't work for me on Linux, however. I can use either 
> "import QtWebKit 3.0" or "import QtWebEngine 1.1" (with the latter, changing 
> my WebView to a WebEngineView too) and I can then see a webview that works 
> with no issues, but neither of those are available on my Android target (nor, 
> from what I understand, will they ever be).
>
> So, is there a way I can get the QtWebView import working on Linux? I can't 
> seem to figure out how to build it, or if it's even a valid option.
>
> If not, then I guess that means I'll need to have different QML for both 
> Linux and Android…

When Qt WebView first started as a Tech Preview in Qt 5.4, it only
supported Android and iOS. These platforms were chosen specifically
because Qt WebKit and Qt WebEngine can't run on them.

In later releases, support for desktop platforms was added to Qt
WebView, but I'm not exactly sure which version. Qt 5.5 might be too
early.


> Thanks in advance
>
> Mark

Regards,
Sze-Howe

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


[Interest] QML WebView modules

2017-04-04 Thread Mark Tucker
Hi,

I'm currently trying to create a QML app that works on both a Linux platform 
and an Android platform. Due to the nature of my target platforms (embedded 
systems), I'm limited to Qt 5.5.1 and cannot upgrade.

Note that my app is pure QML and I cannot write any C++ code to solve this.

To get the app running on Android, I can put "import QtWebView 1.1" into my QML 
file imports, and then create a simple WebView component and set its URL and 
that works.

That same import doesn't work for me on Linux, however. I can use either 
"import QtWebKit 3.0" or "import QtWebEngine 1.1" (with the latter, changing my 
WebView to a WebEngineView too) and I can then see a webview that works with no 
issues, but neither of those are available on my Android target (nor, from what 
I understand, will they ever be).

So, is there a way I can get the QtWebView import working on Linux? I can't 
seem to figure out how to build it, or if it's even a valid option.

If not, then I guess that means I'll need to have different QML for both Linux 
and Android...

Thanks in advance

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


Re: [Interest] [PAID] Seeking a C++/Qt Tutor/Mentor

2017-03-30 Thread mark diener
What is your education budget and time frame?

md


On Thu, Mar 30, 2017 at 3:38 PM, Jason Allen 
wrote:

> Hi all,
> I'm seeking a paid C++/Qt tutor or mentor.
>
> I am professionally experienced with Ruby on Rails, JS, and
> Elixir/Phoenix, but I'm having a hard time getting quickly up to speed with
> C++ and Qt's capabilities on my own.
>
> *I'm particularly interested in learning techniques/best practices within:*
> Signals/slots/emitters between C++ classes and QML views
> qmlEngine: QML views, QML UI forms, registering C++ classes, state change
> Qt Network: TCP socket, UDP socket, network requests to a JSON API
>
> Since I learn best by working with what I'm learning, tutoring through
> pair programming (building a toy project using C++/Qt) remotely via Google
> Hangouts would be awesome. A tutor/mentor local to Washington DC would be
> even better!
>
> Email me directly to discuss further (i.e. your availability, experience
> with C++/Qt, preferred payment method). *I'm hoping to get started as
> soon as possible! *Thanks in advance for your help.
> Best,
> Jason
>
>
>
> *Jason Allen  *m:
> *703-868-5306 <(703)%20868-5306>*w: www.jasoncaryallen.com
>   
> 
>
> ___
> 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 Lite 5.8

2017-01-30 Thread mark diener
Konstantin:

How do I cross compile on Linux for IOS/OSX target?

So while your suggestion is appreciated,
your logic is hard to follow.

md




On Mon, Jan 30, 2017 at 12:16 PM, Konstantin Tokarev <annu...@yandex.ru> wrote:
>
>
> 30.01.2017, 20:58, "mark diener" <rpzrpz...@gmail.com>:
>> Kai:
>>
>> Thank you for the response.
>>
>> As a QT customer, I would hope that communications from Qt Staff would
>> yield something that I can USE.
>>
>> Your response suggested that dependency build failures are an uncommon
>> occurrence. ("there might still be feature permutations that lead to
>> compilation errors")
>>
>> I can assure you that 100% of my attempts to reduce the binary size of
>> Qt 5.8 have ended in failure.
>>
>> Don't believe me? Try this test config line:
>
> I think macOS is not the best platform to play with shrinking, try Linux 
> instead.
>
>>
>> /macdev/qt580/5.8/Src/configure -prefix /macdev/qt580/5.8/osxstat \
>> -verbose \
>> -opensource \
>> -release \
>> -strip \
>> -c++std c++11 \
>> -confirm-license \
>> -reduce-exports \
>> -nomake tests \
>> -nomake examples \
>> -qt-libjpeg \
>> -qt-libpng \
>> -opengl desktop \
>> -no-widgets
>>
>> Results in build failure:
>>
>> 10.11.sdk/System/Library/Frameworks/AGL.framework/Headers
>> -I/macdev/qt580/5.8/Src/qtbase/mkspecs/macx-clang
>> -F/macdev/qt580/5.8/build-osx/qtbase/lib -o .obj/qmacfunctions_mac.o
>> /macdev/qt580/5.8/Src/qtmacextras/src/macextras/qmacfunctions_mac.mm
>> In file included from
>> /macdev/qt580/5.8/Src/qtmacextras/src/macextras/qmacfunctions_mac.mm:50:
>> In file included from /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/QMenu:1:
>> In file included from 
>> /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/qmenu.h:1:
>> In file included from
>> /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/../../src/widgets/widgets/qmenu.h:43:
>> In file included from
>> /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/qtwidgetsglobal.h:1:
>> /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/../../src/widgets/kernel/qtwidgetsglobal.h:44:10:
>> fatal error: 'QtWidgets/qtwidgets-config.h' file not
>>   found
>> #include 
>>  ^
>> 1 error generated.
>> make[3]: *** [.obj/qmacfunctions_mac.o] Error 1
>> make[2]: *** [sub-macextras-install_subtargets] Error 2
>> make[1]: *** [sub-src-install_subtargets] Error 2
>> make: *** [module-qtmacextras-install_subtargets] Error 2
>> Start:Mon Jan 30 11:40:59 CST 2017 End:Mon Jan 30 11:52:37 CST 2017
>> mds-Mac-mini:builds md$
>>
>> So how do I get rid of widgets, since I am only using Qt Quick QML?
>>
>> Maybe Qt can provide configuration command line examples of reduced
>> size builds that actually WORK.
>>
>> Thanks
>>
>> md
>>
>> On Mon, Jan 30, 2017 at 9:12 AM, Kai, Koehne <kai.koe...@qt.io> wrote:
>>>>  -Original Message-
>>>>  From: mark diener [mailto:rpzrpz...@gmail.com]
>>>>  Sent: Monday, January 30, 2017 3:05 PM
>>>>  To: Tor Arne, Vestbø <tor.arne.ves...@qt.io>
>>>>  Cc: Kai, Koehne <kai.koe...@qt.io>; interest@qt-project.org; Jake,
>>>>  Petroules <jake.petrou...@qt.io>
>>>>  Subject: Re: Qt Lite 5.8
>>>>
>>>>  Ok,
>>>>
>>>>  Maybe someone at Qt could direct us to the Qt Lite documention?
>>>
>>>  Qt Lite isn't a product, but an initiative (see also the original 
>>> announcement at 
>>> http://blog.qt.io/blog/2016/08/18/introducing-the-qt-lite-project-qt-for-any-platform-any-thing-any-size/
>>>  ). As such there's no 'Qt Lite documentation'.
>>>
>>>  Anyhow, the part of Qt Lite that you might refer to is the rework of the 
>>> Qt configuration system. Qt always had configure arguments for some 
>>> features, but they were hard-coded in the configure script, and mostly 
>>> limited to the libraries in qtbase. There was also a feature system based 
>>> on a qfeatures.txt file, which however was not getting much attention and 
>>> deteriorated over time.
>>>
>>>  We now have a modular system where every Qt module can declare its options 
>>> and features (including dependencies) in a declarative 'configure.json' 
>>> file. These features can then be switched on and off from the top-level 
>>> configure call. A lot of the Qt modules already make use of this to allow 
>>> developers to enable or disable

Re: [Interest] Qt Lite 5.8

2017-01-30 Thread mark diener
Kai:

Thank you for the response.

As a QT customer, I would hope that communications from Qt Staff would
yield something that I can USE.

Your response suggested that dependency build failures are an uncommon
occurrence. ("there might still be feature permutations that lead to
compilation errors")

I can assure you that 100% of my attempts to reduce the binary size of
Qt 5.8 have ended in failure.

Don't believe me?  Try this test config line:

/macdev/qt580/5.8/Src/configure -prefix /macdev/qt580/5.8/osxstat \
-verbose \
-opensource \
-release \
-strip \
-c++std c++11 \
-confirm-license \
-reduce-exports \
-nomake tests \
-nomake examples \
-qt-libjpeg \
-qt-libpng \
-opengl desktop \
-no-widgets


Results in build failure:

10.11.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/macdev/qt580/5.8/Src/qtbase/mkspecs/macx-clang
-F/macdev/qt580/5.8/build-osx/qtbase/lib -o .obj/qmacfunctions_mac.o
/macdev/qt580/5.8/Src/qtmacextras/src/macextras/qmacfunctions_mac.mm
In file included from
/macdev/qt580/5.8/Src/qtmacextras/src/macextras/qmacfunctions_mac.mm:50:
In file included from /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/QMenu:1:
In file included from /macdev/qt580/5.8/Src/qtbase/include/QtWidgets/qmenu.h:1:
In file included from
/macdev/qt580/5.8/Src/qtbase/include/QtWidgets/../../src/widgets/widgets/qmenu.h:43:
In file included from
/macdev/qt580/5.8/Src/qtbase/include/QtWidgets/qtwidgetsglobal.h:1:
/macdev/qt580/5.8/Src/qtbase/include/QtWidgets/../../src/widgets/kernel/qtwidgetsglobal.h:44:10:
fatal error: 'QtWidgets/qtwidgets-config.h' file not
  found
#include 
 ^
1 error generated.
make[3]: *** [.obj/qmacfunctions_mac.o] Error 1
make[2]: *** [sub-macextras-install_subtargets] Error 2
make[1]: *** [sub-src-install_subtargets] Error 2
make: *** [module-qtmacextras-install_subtargets] Error 2
Start:Mon Jan 30 11:40:59 CST 2017 End:Mon Jan 30 11:52:37 CST 2017
mds-Mac-mini:builds md$

So how do I get rid of widgets, since I am only using Qt Quick QML?

Maybe Qt can provide configuration command line examples of reduced
size builds that actually WORK.

Thanks

md




On Mon, Jan 30, 2017 at 9:12 AM, Kai, Koehne <kai.koe...@qt.io> wrote:
>> -Original Message-
>> From: mark diener [mailto:rpzrpz...@gmail.com]
>> Sent: Monday, January 30, 2017 3:05 PM
>> To: Tor Arne, Vestbø <tor.arne.ves...@qt.io>
>> Cc: Kai, Koehne <kai.koe...@qt.io>; interest@qt-project.org; Jake,
>> Petroules <jake.petrou...@qt.io>
>> Subject: Re: Qt Lite 5.8
>>
>> Ok,
>>
>> Maybe someone at Qt could direct us to the Qt Lite documention?
>
> Qt Lite isn't a product, but an initiative (see also the original 
> announcement at  
> http://blog.qt.io/blog/2016/08/18/introducing-the-qt-lite-project-qt-for-any-platform-any-thing-any-size/
>  ). As such there's no 'Qt Lite documentation'.
>
> Anyhow, the part of Qt Lite that you might refer to is the rework of the Qt 
> configuration system. Qt always had configure arguments for some features, 
> but they were hard-coded in the configure script, and mostly limited to the 
> libraries in qtbase. There was also a feature system based on a qfeatures.txt 
> file, which however was not getting much attention and deteriorated over time.
>
> We now have a modular system where every Qt module can declare its options 
> and features (including dependencies) in a declarative 'configure.json' file. 
> These features can then be switched on and off from the top-level configure 
> call. A lot of the Qt modules already make use of this to allow developers to 
> enable or disable features that weren't exposed before.
>
> There's also a graphical tool that shows the features (currently only for Qt 
> for Device creation): 
> http://doc.qt.io/QtForDeviceCreation/qt-configuration-tool.html . You can 
> also look up features through the configure.json files in the sources.
>
>> Or any information about it so that your customers can be successful.
>>
>> Right now, there is only dependency build failure hell.
>
> The new system doesn't guarantee that feature dependencies are always 
> correctly represented, and there might still be feature permutations that 
> lead to compilation errors. But the new setup should help us maintaining and 
> fixing the dependencies much more easily, as well as adding new ones.
>
> Regards
>
> Kai
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Lite 5.8

2017-01-30 Thread mark diener
Ok,

Maybe someone at Qt could direct us to the Qt Lite documention?

Or any information about it so that your customers can be successful.

Right now, there is only dependency build failure hell.

md







On Mon, Jan 30, 2017 at 7:24 AM, Tor Arne Vestbø <tor.arne.ves...@qt.io> wrote:
> Hi Marc,
>
> I did not say anything about Qt Lite, I replied to a comment about dynamic
> linking on iOS.
>
> tor arne
>
> On 30/01/2017 14:20, mark diener wrote:
>>
>> Tor:
>>
>> In the 5.8 release blog, on January 24, 2017 at 14:40,  you said:
>>
>> "Stay tuned for some more info on this in the coming week."
>>
>> The week has almost expired.
>>
>> Really want some configure examples to actually realize the benefits of Qt
>> Lite.
>>
>> After spending about 4 hours last Friday, I could not figure out how
>> to build a "Lite" anything.
>>
>> The only thing I could build is the full build rocking out at 30 MB on
>> OSX.
>>
>> But anytime I tried to "reduce" binary size, the build would fail with
>> some dependency vomiting errors.
>>
>> What I really want is to get IOS and Android build size down according
>> to Lars compelling build size graph from the blog.
>>
>> So we need those minimal samples and some way to navigate the
>> dependencies without this process
>> becoming another full time job for us.
>>
>> Thanks for any response,
>>
>> md
>>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt Lite 5.8

2017-01-30 Thread mark diener
Tor:

In the 5.8 release blog, on January 24, 2017 at 14:40,  you said:

"Stay tuned for some more info on this in the coming week."

The week has almost expired.

Really want some configure examples to actually realize the benefits of Qt Lite.

After spending about 4 hours last Friday, I could not figure out how
to build a "Lite" anything.

The only thing I could build is the full build rocking out at 30 MB on OSX.

But anytime I tried to "reduce" binary size, the build would fail with
some dependency vomiting errors.

What I really want is to get IOS and Android build size down according
to Lars compelling build size graph from the blog.

So we need those minimal samples and some way to navigate the
dependencies without this process
becoming another full time job for us.

Thanks for any response,

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


Re: [Interest] 5.8.0 QAbstractListModel

2017-01-16 Thread mark diener
Bill:

I thought I would do a brain dump on what I learned.

If your data is bound by the roleNames() mechanism, then the
dataChanged( ) function works greatl

If your data is retrieved by INVOKABLE functions, then you need to call
the following:

QModelIndex gi = QModelIndex() ;
beginInsertRows(gi,gnrow,gnrow);
endInsertRows();
beginRemoveRows(gi,gnrow,gnrow);
endRemoveRows();

This will force the listview to drop and re-create the component in
the delegate.

Thanks for your feedback.

Marco



On Mon, Jan 16, 2017 at 12:05 PM, Bill Crocker
 wrote:
>
>>>
>>> I do this all of the time and it works fine.
>>>
>>>  QModelIndex index = createIndex(row,col);
>>>  emit dataChanged(index,index);
>>>
>
>> Have you tried it under 5.8.0RC?
>> It was working under 5.7.1 and before.
>> What value for column are you using?
>> For AbstractListModel, I was using 0 (zero)
>
>
> I am at 5.7
> Yes, for a List model, col would always be 0.
> Per a previous post, are you adding or removing rows.
> If so, was that all reported (emitted) so the views know about it.
> Models are a pain in the butt in that if you do not
> use them correctly, they will silently misbehave
> and not necessarily right away.
>
> You should also use the "ModelTest" class to
> point out the mistakes that it can.
>
> Bill
>
> ___
> 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.8.0 QAbstractListModel

2017-01-15 Thread mark diener
Cannot use emit dataChanged(index(0),index(growcount-1)) to cause
re-display of changed
values in ListView.

Tried every combination:

emit dataChanged(index(grow),index(grow));
emit dataChanged(index(0),index(grows));
emit dataChanged(index(0),index(grows-1));

Only can repaint entire ListView with:

this->beginResetModel();
this->endResetModel();

But this is overkill,. I want to trigger the Model to update a single
row.

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


[Interest] Fonts Puking on Qt 5.7.1:

2017-01-07 Thread mark diener
Just run the following QML on iphone, android, and OSX and you will
see the great
QML Font Mystery.

All devices set to display English language.

On OSX 10.11.5 -> there are 2 different weights
On Ipad 2 running IOS 9.3.2-> there are 2 different font weights.
On Ipad Mini V1 running IOS 9.3.2-> there are 2 different font weights.
On Nexus 7 2013, Android 5.1.1-> there are 4 different font weights.
On Motorola G 2014 -> there are 4 different font weights

On Iphone 6, running 9.3.2, there is only 1 SINGLE font weight.  There
is no BOLD text available.

Maybe this link works for public users:
https://lh3.googleusercontent.com/-4yx3UemGN1k/WHGONxOlkrI/CgE/qALo4H7y3hwNlto0USUn2G__TRDULA-PQCL0B/h1152/2017-01-07.jpg

Who has other IOS devices that could test this?

Cheers,

md


Here is the sample QML:

import QtQuick 2.7
import QtQuick.Window 2.2
import QtQuick.Controls 1.5


Window {

visible: true
visibility: Qt.WindowFullScreen
color: "white"


Flickable
{

anchors.fill: parent
boundsBehavior: Flickable.StopAtBounds
contentHeight: gcol.childrenRect.height
contentWidth: gcol.childrenRect.width

Column
{
id: gcol
spacing: 2

Row
{
Text { text: "Thin" ; font.pointSize: 12; width: 300 }
Text { text: "ExtraLight" ; font.pointSize: 12; width: 300 }
Text { text: "Light" ; font.pointSize: 12; width: 300 }
Text { text: "Normal" ; font.pointSize: 12; width: 300 }
Text { text: "Medium" ; font.pointSize: 12; width: 300 }
Text { text: "Demi" ; font.pointSize: 12; width: 300 }
Text { text: "Bold" ; font.pointSize: 12; width: 300 }
Text { text: "ExtraBold" ; font.pointSize: 12; width: 300 }
}

Repeater
{
model: 100

Row
{
Text { id: gcont; text: ""+(index+1) ;
font.pointSize: (index+1); font.weight: Font.Thin ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.ExtraLight ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.Light ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.Normal ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.Medium ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.DemiBold ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.Bold ; width: 300 }
Text { text: ""+(index+1) ; font.pointSize:
(index+1); font.weight: Font.ExtraBold ; width: 300 }

Rectangle
{
color: "black"
width: 10
height: gcont.height
}
}
}
}
}
}
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QMAKE_ASSET_CATALOGS

2017-01-03 Thread mark diener
Anybody know how to make QMAKE_ASSET_CATALOGS actually work.

No working example on net.

Qt 5.7.1 OSX building for IOS
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] TextInput Vs TextEdit

2016-12-30 Thread mark diener
Using Qt 5.7.1 on OSX and building for Android,

import QtQuick 2.7
import QtQuick.Controls 1.5

For TextInput, I receive Key.OnPressed for standard keys like A->Z,1-9, etc.

But for TextEdit, No events at all except for control keys like enter,
escape, backspace.

When I run the same code on OSX, I get the key events.  Debugging for
IOS is another matter.

Anybody have an idea on why TextInput receives keys while TextEdit has
a reduced set.

Thanks for any input.

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


[Interest] [SOLVED] Re: Android androidBuildToolsVersion

2016-12-28 Thread mark diener
I was wrong, add the value to build.gradle under the android section.

That is all.

md

On Wed, Dec 28, 2016 at 9:48 PM, mark diener <rpzrpz...@gmail.com> wrote:
> Does anybody know how to set the androidBuildToolsVersion.
> within the Qt project and not have to manually edit the dynamically generated
> gradle.properties file in the buld directory.
>
> There is the build.gradle file that references the
> androidBuildToolsVersion with a note that is cryptic
> about changing them manually.
>
> Using Qt 5.7.1 on OSX 10.11.5
>
> Any responses,
>
> Thanks.
>
> md
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] [SOLVED] Re: Android androidBuildToolsVersion

2016-12-28 Thread mark diener
Add the value:

buildToolsVersion=25.0.2

to the gradle-wrapper.properties file



On Wed, Dec 28, 2016 at 9:48 PM, mark diener <rpzrpz...@gmail.com> wrote:
> Does anybody know how to set the androidBuildToolsVersion.
> within the Qt project and not have to manually edit the dynamically generated
> gradle.properties file in the buld directory.
>
> There is the build.gradle file that references the
> androidBuildToolsVersion with a note that is cryptic
> about changing them manually.
>
> Using Qt 5.7.1 on OSX 10.11.5
>
> Any responses,
>
> Thanks.
>
> md
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Android androidBuildToolsVersion

2016-12-28 Thread mark diener
Does anybody know how to set the androidBuildToolsVersion.
within the Qt project and not have to manually edit the dynamically generated
gradle.properties file in the buld directory.

There is the build.gradle file that references the
androidBuildToolsVersion with a note that is cryptic
about changing them manually.

Using Qt 5.7.1 on OSX 10.11.5

Any responses,

Thanks.

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


[Interest] Copy QSqlRecord to different database

2016-08-19 Thread Mark Gaiser
Hi,

Imagine this case:

You fetch data from one database (say MariaDB), you get a QSqlQuery filled
with QSqlRecords.
Now i want to copy all those records to another QSqlDatabase instance this
is an SQLite database.

The SQLite database has some fields with different names compared to the
MariaDB one, but that is easily fixable by changing the field name (using
setName on an individual QSqlField).

What i don't know is how to proceed from there on.
Would it be enough to call setDatabase on the original query by setting it
to the destination database? Then i'd probably have to change the query to
be an update or insert query?

Would that work?
Does anyone have any experience in copying data from one database to
another using Qt?

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


Re: [Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Mark Gaiser
On Thu, Aug 11, 2016 at 6:29 PM, Thiago Macieira <thiago.macie...@intel.com>
wrote:

> On quinta-feira, 11 de agosto de 2016 11:40:46 PDT Mark Gaiser wrote:
> > Is there any way that i can use a string with unicode code points within
> > tr(...) that works on MSVC 2010 (as that is my setup), but it would be
> > great if it also works under MSVC 2015 and MinGW.
>
> There's no way to make that work with MSVC 2010. If you want this to work,
> your options are:
>
>  a) upgrade to MSVC 2015 Update 3 and add the "-utf-8" option to
> QMAKE_CXXFLAGS.
>
>  b) upgrade to MSVC 2015 any version and write:
> tr(u8"Co\u00F6rdinaat")
>   note: it's very likely that lupdate does *not* understand this! if that's
>   the case, file a bug report and "hide" the u8 with a macro
> #define tr(x)   tr(u8 ## x)
>
> Or, your fallback option: stop using unicode literals.
>
> Hi Thiago,

Thank you for the clear options.
I was hoping for some magic compile flag to fix this on MSVC 2010, but
apparently i'm out of luck.

The only option i seem to have left for 2010 are apparently:
- Making sure the source files are UTF-8 formatted (most is ascii at the
moment)
- Using tr("Coördinaat"); as opposed to tr("Co\u00F6rdinaat");, that does
work, but is not preferred.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Mark Gaiser
Hi,

The following minimal code example demonstrates the issue (tested on Qt
5.6.1):

#include 
#include 
#include 

int main(int, char **)
{
  qDebug() << "tr:" << QObject::tr("Co\u00F6rdinaat");
  qDebug() << "QString:" << QString("Co\u00F6rdinaat");
  qDebug() << "(QDebug) std::string:" <<
QString::fromStdString(std::string("Co\u00F6rdinaat"));
  std::cout << "(cout) std::string: " << std::string("Co\u00F6rdinaat") <<
std::endl;

  return 0;
}

Here all the qDebug lines output "Co?rdinaat". The cout line outputs
"Coördinaat" as i would expect.
If i use visual studio (both 2010 and 2015) for the above example, only the
std::cout gives the output i'd expect (which is "Coördinaat").
If i use mingw the exact opposite is the result. All qDebug lines output
"Coördinaat", but the cout line outputs as "Coördinaat"

QStringLiteral("Co\u00F6rdinaat") works on MSVC (2010 and 2015) as well as
MinGW. But for my case that fix isn't working because the string must be
within tr(...) and that function doesn't accept a QStringLiteral.

Is there any way that i can use a string with unicode code points within
tr(...) that works on MSVC 2010 (as that is my setup), but it would be
great if it also works under MSVC 2015 and MinGW.

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


Re: [Interest] Qt 5.6.1(-1) release for Visual Studio 2010?

2016-07-28 Thread Mark Gaiser
On Thu, Jul 28, 2016 at 6:07 PM, Thiago Macieira <thiago.macie...@intel.com>
wrote:

> On quinta-feira, 28 de julho de 2016 17:00:01 PDT Mark Gaiser wrote:
> > Hi,
> >
> > Qt 5.6 should work just fine under Visual Studio 2010, but i can't find
> the
> > binary release [1]. It starts with Visual Studio 2013 in that folder.
> >
> > Is Qt not providing a 2010 build anymore?
>
> We're not. Feel free to build it yourself.
>
> Oke, thank you.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt 5.6.1(-1) release for Visual Studio 2010?

2016-07-28 Thread Mark Gaiser
Hi,

Qt 5.6 should work just fine under Visual Studio 2010, but i can't find the
binary release [1]. It starts with Visual Studio 2013 in that folder.

Is Qt not providing a 2010 build anymore?

Best regards,
Mark

[1] https://download.qt.io/official_releases/qt/5.6/5.6.1-1/
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-08 Thread Mark Gaiser
On Sat, May 7, 2016 at 6:43 PM, Elvis Stansvik <elvst...@gmail.com> wrote:

> 2016-05-07 16:56 GMT+02:00 Mark Gaiser <mark...@gmail.com>:
> > On Sat, May 7, 2016 at 3:44 PM, Elvis Stansvik <elvst...@gmail.com>
> wrote:
> >>
> >> 2016-05-07 15:27 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>:
> >> > Hi all,
> >> >
> >> > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this
> >> > works (pressing Ctrl+O prints "clicked"):
> >> >
> >> > test.cpp:
> >> >
> >> > #include 
> >> > #include 
> >> > #include 
> >> > #include 
> >> > #include 
> >> >
> >> > class MainWindow : public QMainWindow {
> >> > Q_OBJECT
> >> >
> >> > public:
> >> > MainWindow(QWidget *parent = 0) : QMainWindow(parent) {
> >> > QPushButton *button = new QPushButton("Click Me (Ctrl+O)");
> >> > button->setShortcut(QString("Ctrl+O"));
> >> > connect(button, SIGNAL(clicked()), this, SLOT(onClicked()));
> >> >
> >> > setCentralWidget(button);
> >> > }
> >> >
> >> > public slots:
> >> > void onClicked() {
> >> > qDebug() << "clicked";
> >> > }
> >> > };
> >> >
> >> > int main(int argc, char *argv[]) {
> >> > QApplication app(argc, argv);
> >> >
> >> > MainWindow window;
> >> > window.show();
> >> >
> >> > return app.exec();
> >> > }
> >> >
> >> > #include "moc_test.cpp"
> >> >
> >> > but on Qt 5.6.0 it does not (nothing printed on Ctrl+O).
> >>
> >> I just tested on a couple of other machines (Qt 5.2.1 and Qt 5.5.1),
> >> and it worked on both of them. So something broke in Qt 5.6.0? Or Arch
> >> somehow broke my Qt?
> >>
> >> If anyone else is under KDE on Arch and could give it a try, I would
> >> much appreciate it.
> >>
> > can you try to rule out plasma and it's default key bindings. There might
> > very well be a Ctrl+O global key binding in there.
> >
> > Install openbox on your system en logon (via sddm) in an openbox session.
> > Then try your app and see if it works.
> >
> > If that does work then plasma is probably taking that global shortcut.
> If it
> > doesn't then the issue is quite a bit deeper.
>
> Ah, good idea. I can confirm that it works under Openbox.
>
> So now the question is why Plasma (KWin?) seems to swallow a lot of
> shortcuts.
>
> Looking at System Settings -> Shortcuts I can confirm that Ctrl+O is
> bound to "Open..." under Standard Shortcuts. But I don't understand
> why something like that is done by Plasma, isn't that an application
> thing?
>
> I also can't get Qt::Key_F2 to work with the above example (it was
> actually the function keys I was mostly interested in), and that is
> not bound to anything under System Settings -> Shortcuts.
>
> Anyway, I guess it's not a Qt issue, so sorry for being off-topic. But
> if anyone knows what might be going on I'm idle ears.
>
>
Ah great, you found the real issue: Plasma :)
now you could try the same on plasma again only with kwin killed.

If that fixes your issue then you know for sure that kwin is doing
something you don't want and are probably best off by describing a minimal
case that kwin breaks and post that in the plasma development mailing list (
plasma-de...@kde.org) to further nail down the issue.



> Elvis
>
> >
> >
> >>
> >> Elvis
> >>
> >> >
> >> > test.pro for building:
> >> >
> >> > TEMPLATE = app
> >> > greaterThan(QT_MAJOR_VERSION, 4):QT += widgets
> >> > TARGET = test
> >> > INCLUDEPATH += .
> >> >
> >> > # Input
> >> > SOURCES += test.cpp
> >> > HEADERS += test.cpp
> >> >
> >> > Any ideas what may be going wrong? My window manager (KWin) is not
> >> > intercepting Ctrl+O (obviously). And besides, it doesn't seem to
> >> > matter which shortcut I use.
> >> >
> >> > Thanks in advance,
> >> > Elvis
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> http://lists.qt-project.org/mailman/listinfo/interest
> >
> >
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Mark Gaiser
On Sat, May 7, 2016 at 3:44 PM, Elvis Stansvik  wrote:

> 2016-05-07 15:27 GMT+02:00 Elvis Stansvik :
> > Hi all,
> >
> > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this
> > works (pressing Ctrl+O prints "clicked"):
> >
> > test.cpp:
> >
> > #include 
> > #include 
> > #include 
> > #include 
> > #include 
> >
> > class MainWindow : public QMainWindow {
> > Q_OBJECT
> >
> > public:
> > MainWindow(QWidget *parent = 0) : QMainWindow(parent) {
> > QPushButton *button = new QPushButton("Click Me (Ctrl+O)");
> > button->setShortcut(QString("Ctrl+O"));
> > connect(button, SIGNAL(clicked()), this, SLOT(onClicked()));
> >
> > setCentralWidget(button);
> > }
> >
> > public slots:
> > void onClicked() {
> > qDebug() << "clicked";
> > }
> > };
> >
> > int main(int argc, char *argv[]) {
> > QApplication app(argc, argv);
> >
> > MainWindow window;
> > window.show();
> >
> > return app.exec();
> > }
> >
> > #include "moc_test.cpp"
> >
> > but on Qt 5.6.0 it does not (nothing printed on Ctrl+O).
>
> I just tested on a couple of other machines (Qt 5.2.1 and Qt 5.5.1),
> and it worked on both of them. So something broke in Qt 5.6.0? Or Arch
> somehow broke my Qt?
>
> If anyone else is under KDE on Arch and could give it a try, I would
> much appreciate it.
>
> can you try to rule out plasma and it's default key bindings. There might
very well be a Ctrl+O global key binding in there.

Install openbox on your system en logon (via sddm) in an openbox session.
Then try your app and see if it works.

If that does work then plasma is probably taking that global shortcut. If
it doesn't then the issue is quite a bit deeper.



> Elvis
>
> >
> > test.pro for building:
> >
> > TEMPLATE = app
> > greaterThan(QT_MAJOR_VERSION, 4):QT += widgets
> > TARGET = test
> > INCLUDEPATH += .
> >
> > # Input
> > SOURCES += test.cpp
> > HEADERS += test.cpp
> >
> > Any ideas what may be going wrong? My window manager (KWin) is not
> > intercepting Ctrl+O (obviously). And besides, it doesn't seem to
> > matter which shortcut I use.
> >
> > Thanks in advance,
> > Elvis
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] PRO File defines

2016-04-24 Thread mark diener
Hello List:

Who can tell me how to detect whether a build is for IOS or IOS Simulator
in the project PRO file.

ios {
QMAKE_IOS_DEPLOYMENT_TARGET=8.0
QMAKE_IOS_TARGETED_DEVICE_FAMILY=1,2
}

But how to I differentiate between IOS builds and IOS-simulator builds?

Thanks,

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


[Interest] TextField Focus onReleased

2016-04-22 Thread mark diener
Hello:

Can anybody figure out a way for a TextField which contains its own MouseArea
to allow the TextField to gain focus when the onReleased event is
called, not the normal behavior of focus gained when the onPressed is
triggered.

Any response appreciated,

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


Re: [Interest] Exposing nested visual properties in FocusScope (alias -> alias problem)

2016-03-21 Thread Mark Tucker
Hello,

As long as your internal Text item has an id, then you can add the aliases in 
the FocusScope. This should work:

FocusScope {
property alias text: text.text
property alias textPixelSize: text.font.pixelSize

Rectangle {
id: button
focus: true

width: text.implicitWidth
height: text.implicitHeight

Text {
id: text
...
}
}
}

-Original Message-
From: Interest 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Elvis Stansvik
Sent: 21 March 2016 12:38
To: interest@qt-project.org Interest 
Subject: [Interest] Exposing nested visual properties in FocusScope (alias -> 
alias problem)

Hi all,

I'm trying to create a reusable component for a button. Right now I'm trying to 
figure out focus handling (the app is keyboard navigation only).

I currently have the following structure (Button.qml):

Rectangle {
id: button

property alias text: text.text
property alias textPixelSize: text.font.pixelSize

width: text.implicitWidth
height: text.implicitHeight

Text {
id: text
...
}
}

Where I'm exposing the text and pixelSize properties of the text by using 
property aliases, to be able to use it like:

Button {
text: "Foo bar"
textPixelSize: 42
}

This works fine. But now I'd like the component to be able to participate in 
focus handling, so I wrap it in a FocusScope, e.g:

FocusScope {
Rectangle {
id: button
focus: true

property alias text: text.text
property alias textPixelSize: text.font.pixelSize

width: text.implicitWidth
height: text.implicitHeight

Text {
id: text
...
}
}
}

Which should allow me to use it in other nested focus scopes at a higher level 
in the visual tree

The problem now is that I must expose the button.text and button.textPixelSize 
in the FocusScope, to be able to use the component as before. But I can't use 
property aliases again, since a property alias may not refer to another 
property alias.

Anyone know how I can get around this?

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


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

2016-02-24 Thread mark diener
Gianluca:

For simple QML layouts, I think your technique would work.

But I found that mousearea had issues when you had Loader objects in the chain.

Another approach is to use a Q_INVOKABLE function to register any QML
object that you want to have the keyboard hide whenever the touch
outside
of the registered QML Edit object.  I generally call this register
function for edit controls when they gain focus and use a common edit
control classname like "MyEdit"

Then in the overridden Application::eventproc(...), I look for
QEvent::TouchBegin or QEvent::MouseButtonPress event.

Then I use the incoming message's object metaObject() and parent() to
scan up the
parent chain to look for a object class name that matches my QML class
name "MyEdit"

Example: String(gobj->ClassName()).contains("MyEdit",Qt::CaseInsensitive")
== true

If I cannot find a match, I set the "focus" property of the registered
object "false".

You can also NOT hide the keyboard if the incoming mouse/touch message
is related to an object that is another "MyEdit" class.

I built this into a general library so now I don't even think about
it, I get fully functional soft keyboard hiding across all my apps and
it works.

Cheers,

md


On Wed, Feb 24, 2016 at 3:35 AM, Gian Maxera  wrote:
> Hello,
> I do in this way:
>  - add a MouseArea covering the entire screen that got a z level lower than 
> any other input area (like TextArea)
>  - on the onClicked I just call: Qt.inputMethod.hide() and the keyboard will 
> close is you click outside any other active elements.
>
> Ciao,
> Gianluca.
>
>
>> On 24 Feb 2016, at 09:32, 黄裔  wrote:
>>
>> I use TextArea as input in qml file. When clicking TextArea, keyboard pops 
>> up. But the keyboard could not hide while clicking outside of it. Whether 
>> there is a method or any API in qml can resolve this problem conveniently?
>>
>> thanks.
>> Yi
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [Development] [Announce] Qt 5.6.0 RC released

2016-02-23 Thread mark diener
Hello List:

Anybody running OSX El Capitan 10.11 with Qt 5.6.0 RC and IOS 9.2 and
Xcode 7.2 and able to successfully debug under IOS Simulator?

https://bugreports.qt.io/browse/QTCREATORBUG-15705

Any comments appreciated,

md

On Tue, Feb 23, 2016 at 11:41 PM, List for announcements regarding Qt
releases and development  wrote:
> Hi all,
>
>
>
> Qt 5.6.0 RC is now released, see
> http://blog.qt.io/blog/2016/02/23/qt-5-6-0-release-candidate-available/
>
>
>
> Big thanks to everyone involved!
>
>
> Best regards,
>
> Jani Heikkinen
>
> Release Manager | The Qt Company
>
>
>
> The Qt Company / Digia Finland Ltd, Elektroniikkatie 10, 90590 Oulu, Finland
>
> www.qt.io |Qt Blog: http://blog.qt.digia.com/ | Twitter: @QtbyDigia,
> @Qtproject Facebook: www.facebook.com/qt
>
>
>
>
>
> ___
> Announce mailing list
> annou...@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/announce
>
> ___
> Development mailing list
> developm...@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QML Keys Shock

2016-02-23 Thread mark diener
Hello List:

I went to deploy a test app on Android and IOS that would test processing
handling keys as they were entered into TextInput QML.

Shockingly, the Keys.onPressed is NOT called for normal letters on
either Android
or IOS.

Keys, like Back(delete) and Enter do trigger events, but forget about
implementing
PER keystroke logic on Android/IOS.

Some bug tracker dialogue between Eskil Abrahamsen Blomfeldt kind of
confirms this.

Maybe the documentation for QML Keys should be updated to let people
know that very FEW of the keys on the soft keyboard actually trigger
onPressed events.

Can someone tell me I am making a mistake and somehow ALL the keyboard
keys like letters and space are triggered on Android and IOS soft
keyboards  if I only make some manifest.xml or info.plist entry!

Cheers,

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


Re: [Interest] background uploads in iOS

2016-02-10 Thread mark diener
maybe?

https://github.com/colede/qt-app-delegate

md

On Wed, Feb 10, 2016 at 2:19 PM, Jason H  wrote:
> 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 mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [Development] 5.7 feature freeze

2016-01-27 Thread mark diener
Lars:

I am sure I am not the only newcomer to QT who would love to add code
to the 5.7 feature list,
but barely have time to contribute bugs to debug 5.6.0 beta let alone
look ahead to 5.7

Now we are faced with waiting until 5.8 to even think about a set of
key missing functions in Qt QML.

I am still firmly planted on the interest list and not on the development list.

One major problem lies with QQmlEngine design:

It has the following functions defined:

QQmlEngine->trimComponentCache()
QQmlEngine->clearComponentCache()  (https://bugreports.qt.io/browse/QTBUG-50500)

But it is absolutely missing:

QQmlEngine->addComponent("MyComponentLib",1,0,"MyComponentName",QQmlComponent&
gcomp) -> error code
QQmlEngine->removeComponent("MyComponentLib",1,0,"MyComponentName") ->
error code
QQmlEngine->isComponentLoaded("MyComponentLib",1,0,"MyComponentName") -> bool

Devs are stuck using a QMLDIR file based import pattern that has the
flexibility of an ice cube.

We really need qml files to be able to execute: import MyComponentLib
1.0 without using QMLDIR files!

The other major problem is that QQuickItem does not allow for
QSGTextRect, so updatePaintNode CANNOT have text rendering
in coordination with QSGGeometry.  The current recommendation is to
try to coordinate using signals between 2 different QQuickItems, 1
with text, the other
with graphical geometry.  This is a restriction that appears to have
occurred by chance.

This cripples custom controls capabilities and forces me to explain to
customers about Qt limitations.

So how can we get the header file for QQmlEngine changed for 5.7
feature freeze to add those 3 function declarations and un-sandbox
QSGTextRect
and still pass maintainer acceptance all by Monday?

Cheers,

md


On Wed, Jan 27, 2016 at 2:30 AM, Knoll Lars  wrote:
> Hi everybody,
>
> we’re slightly past the originally planned date for the feature freeze, for 
> various reasons (new stuff being open sourced, license change and being late 
> with 5.6). But I believe most things should be in place now to do the feature 
> freeze for 5.7 next Monday.
>
> There are currently three exceptions to the freeze:
>
> * ok to finish the printing support in web engine
> * ok for BTLE support for Linux in qtconnectivity (merge neard branch)
> * Modules that are flagged as TP can also have some more time
>
> If anybody else has a feature he believes absolutely has to make it to 5.7, 
> get it done until Monday or talk to me :)
>
> Cheers,
> Lars
>
>
> ___
> Development mailing list
> developm...@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] TextField QML auto keyboard hiding/lose focus on touch events

2016-01-26 Thread mark diener
Gian:

Ok, I wanted to share my solution since you kindly offered a
suggestion a day or two ago.

1) Create an C++ function: Q_INVOKABLE void gregister(QObject* goedit) ;

2) Store the QObject away some where for access ONLY on the GUI thread.

3) For controls that I want to LOSE focus when click anywhere OUTSIDE
of that control, I call the register with the ID.

For example) QML: onFocusChanged: if (gtextfield.focus == true)
Mysingleton.gregister(gtextfield) ;

4) Install an event filter:

 QGuiApplication->installEventFilter();

Inside the event filter, I do the following:

A) Ignore messages from Qobject* obj->isWindowType() -> return false;
B) Only look for  QEvent::MouseButtonPress and QEvent::TouchBegin events
C) Use Qmetaobject*->classname() to check if the name of the obj
pointer is a pointer to ANOTHER text input field using
QString.contains() == true
D) If find your classname in the parent tree, then just return false,
do nothing, since another input control is going to appear that needs
the virtual keyboard, no sense in hiding it.
E) Make sure you check the parent tree since your class name may appear higher
F) gtextfield->setProperty("focus",QVariant(false)) -> Removes focus
on your control and hides the Virtual keyboard.

This works beautifully and is a code pattern that scales without
regard to how big your QML object->parent tree is.

And the message filter is very efficient, does not add any real
overhead to the message stack tree.

Thanks,

Md





On Mon, Jan 25, 2016 at 12:48 PM, m...@rpzdesign.com <m...@rpzdesign.com> wrote:
> Gian:
>
> Thank you for the input.
>
> I tried it a little bit and found that mousearea onPressed would not trigger
> up past Loader, so as a universal pattern it will not work.
>
> In fact, many controls (Listview,etc) suck up the mouse events when those
> mouse/touch events SHOULD cause the keyboard to retract.
>
> I am going to put a registration into my custom controls that application
> wide will register themselves -> onFocusFocusChanged:
> C++Invokable(thisqmlobject,thisqmlobject.activefocus)
> and every time a specific control gains focus, it will register itself and
> then I will filter on events to compare the QMouseEvent/QTouchEvent with the
> registered QObject* (Qml Item) to see whether the keyboard should retract.
>
> This will separate my code from all the event snarfing components in the QML
> item stack.
>
> I think this is a PC legacy behavior not suited to touch.
>
> Thanks,
>
> md
>
> On 1/25/2016 11:20 AM, Gian Maxera wrote:
>>
>> Hello Mark,
>> I achieve that on mobile using a simple MouseArea that cover all the
>> screen and it’s under all other active elements.
>> When that MouseArea is touched, I call Qt.inputMethod.hide() … and that’s
>> it.
>> So, if the user touch outside any button, textfield, etc… then that touch
>> will reach the underlying MouseArea that will call the hide on keyboard.
>>
>> Ciao,
>> Gianluca.
>>
>>
>>> On 25 Jan 2016, at 17:16, mark diener <rpzrpz...@gmail.com> wrote:
>>>
>>> Hello List:
>>>
>>> Anybody have a tip or suggestion for IOS/Android Qt 5.5.1 -> Qt 5.6.0
>>> Beta
>>>
>>> I am using a TextField and the keyboard pops up whenever the input
>>> control
>>> receives focus.
>>>
>>> But I want the TextField to lose focus whenever you click/touch
>>> outside of the control.
>>>
>>> Not Just Tab & Enter that are VERY PC centric, not tablet/smartphone
>>> concepts.
>>>
>>> Right now, the blinking cursor remains on the field and the
>>> Android/IOS keyboard remains visible
>>> when you use your finger and touch some where outside of the TextField.
>>>
>>> Obviously, I want the keyboard to REMAIN if the user clicks on ANOTHER
>>> TextField.
>>>
>>> Is there a QML way to do this?
>>>
>>> I have some C++ and event filter ideas to make this happen, but those
>>> are brute force ideas and there might be something that I don't see in
>>> the QML TextField documentation.
>>>
>>> Thanks,
>>>
>>> md
>>> ___
>>> 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


[Interest] TextField QML auto keyboard hiding/lose focus on touch events

2016-01-25 Thread mark diener
Hello List:

Anybody have a tip or suggestion for IOS/Android Qt 5.5.1 -> Qt 5.6.0 Beta

I am using a TextField and the keyboard pops up whenever the input control
receives focus.

But I want the TextField to lose focus whenever you click/touch
outside of the control.

Not Just Tab & Enter that are VERY PC centric, not tablet/smartphone concepts.

Right now, the blinking cursor remains on the field and the
Android/IOS keyboard remains visible
when you use your finger and touch some where outside of the TextField.

Obviously, I want the keyboard to REMAIN if the user clicks on ANOTHER
TextField.

Is there a QML way to do this?

I have some C++ and event filter ideas to make this happen, but those
are brute force ideas and there might be something that I don't see in
the QML TextField documentation.

Thanks,

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


[Interest] Qt 5.5.1- 5.6beta - Android Gradle Packaging

2016-01-22 Thread mark diener
Bogdan & List:

In some of your Android Episodes (6&7), you addressed how to override
the base android activity
to include your own functionality in java code.

The next logical step is being able to change "Import Gradle Files" so
that custom packaging  are ALWAYS imported into projects.

Basically, I would like to have a new default activity that has all of
my entry points included by default and has my version of starter
files without having to watch the Android Episodes every time I want
to remember how to set up each individual project.

This of course requires some understanding of the tooling chain so
when you "Import Android Files", I can edit the script that executes
to build the file packaging.

Can you provide a little commentary about this.

(I hope this is an editable script and not hard coded into qt creator.)


Thanks,

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


Re: [Interest] How do i monitor DBus functions (not signals)

2016-01-14 Thread Mark Gaiser
On Thu, Jan 14, 2016 at 2:39 PM, Thiago Macieira <thiago.macie...@intel.com>
wrote:

> On Thursday 14 January 2016 10:05:35 Mark Gaiser wrote:
> > I want my app to get all notifications that are being passed through
> > org.freedesktop.Notifications without the app itself registering as
> > "org.freedesktop.Notifications" service.
> > I'm not sure about the best approach for that.. Do you happen to know
> what
> > might work?
>
> You're debugging. So use dbus-monitor. According to your email, you've
> already
> made it work, so that's enough.
>
> That will work for my test purpose, but ultimately i want to put each
notification in a QStandardItemModel where this won't work.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How do i monitor DBus functions (not signals)

2016-01-14 Thread Mark Gaiser
Op 13 jan. 2016 11:15 p.m. schreef "Thiago Macieira" <
thiago.macie...@intel.com>:
>
> On Wednesday 13 January 2016 21:19:33 Mark Gaiser wrote:
> > Hi,
> >
> > I'm trying to monitor "org.freedesktop.Notifications" for the
notifications
> > (see [1] for reference) that broadcasted from there. Every notification
> > ends up in a "Notify" method on that dbus interface.
>
> Hi Mark. "Monitoring" in D-Bus usually means running dbus-monitor and you
do
> that for debugging purposes. I don't think that's what you mean.
>
> Do you mean listening to signals? If you mean that, there's no "method"
> (a.k.a. a slot), only "signal".

Hi Thiago,

I want my app to get all notifications that are being passed through
org.freedesktop.Notifications without the app itself registering as
"org.freedesktop.Notifications" service.
I'm not sure about the best approach for that.. Do you happen to know what
might work?

>
> > I'm trying to monitor that, but kinda fail at it... I can monitor the
> > notifications with dbus-monitor
> >
"interface='org.freedesktop.Notifications',member='Notify',type='method_call
> > ',eavesdrop='true'", doing the same in code is not firing the slot i'd
like
> > it to call..
>
> Eavesdrop implies debugging. QtDBus will not do this, no matter how much
you
> try. Forget it.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> ___
> 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] QQuickTextNode not reachable from QQuickItem

2016-01-14 Thread mark diener
Hello List:

Well after pouring thru 5.5.1 source code, I find that QQuickTextNode
is really not intended to be used in QQuickItem derived classes.

There is not visible header file from projects.

Lots of various google references to similar challenge of text in QQuickItem.

At this point, my only C++ way for custom components with text is
QQuickPaintedItem.

Anyone have thoughts on how to output text into QuickItem stuff?

Thanks,

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


[Interest] How do i monitor DBus functions (not signals)

2016-01-13 Thread Mark Gaiser
Hi,

I'm trying to monitor "org.freedesktop.Notifications" for the notifications
(see [1] for reference) that broadcasted from there. Every notification
ends up in a "Notify" method on that dbus interface.

I'm trying to monitor that, but kinda fail at it... I can monitor the
notifications with dbus-monitor
"interface='org.freedesktop.Notifications',member='Notify',type='method_call',eavesdrop='true'",
doing the same in code is not firing the slot i'd like it to call..

The code:

...
QDBusConnection::sessionBus().connect("",
  "",
  "org.freedesktop.Notifications",
  "Notify",
  this,
  SLOT(notify(QDBusMessage)));

// This is the exact same match line as from the command.
QString matchString =
"interface='org.freedesktop.Notifications',member='Notify',type='method_call',eavesdrop='true'";
QDBusInterface busInterface("org.freedesktop.DBus",
"/org/freedesktop/DBus",
"org.freedesktop.DBus");
busInterface.call("AddMatch", matchString);
...

In the connect line the "this" object is a simple one function class
inheriting from QObject with a "notify(QDBusMessage message)" member as
public slot.

In the app i've set the env variable: QDBUS_DEBUG=1 (for debugging purpose).

If i run my app and send a notify message like so:
notify-send -a "Chrome" "aaa"

Then i am getting console output in my app like this:
QDBusConnectionPrivate(0x623760) got message (signal):
QDBusMessage(type=MethodCall, service=":1.522",
path="/org/freedesktop/Notifications",
interface="org.freedesktop.Notifications", member="Notify",
signature="susssasa{sv}i", contents=("Chrome", 0, "", "aaa", "", {},
[Argument: a{sv} {"urgency" = [Variant(uchar): 1]}], -1) )
QDBusConnectionPrivate(0x623760) sending message (no reply):
QDBusMessage(type=Error, service="", error
name="org.freedesktop.DBus.Error.UnknownObject", error message="No such
object path '/org/freedesktop/Notifications'", signature="", contents=() )

But the slot notify(QDBusMessage) is not being called...
What am i doing wrong?

I see the error: "No such object path '/org/freedesktop/Notifications", but
if i add this to my code:
QDBusConnection::sessionBus().registerObject("/org/freedesktop/Notifications",
"org.freedesktop.Notifications", this);

I get roughly the same dbus message, but with this error:
No such interface 'org.freedesktop.Notifications' at object path
'/org/freedesktop/Notifications'

And i'm not even sure if i need to look at that error at all...

I hope someone with dbus knowledge can point me in the right direction for
this?

Thank you,
Mark


[1] http://www.galago-project.org/specs/notification/0.9/
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Visual Studio 2015 32 bit debugger setting

2016-01-11 Thread mark diener
Hello List:

Anybody know how to manually setup Qt Creator debugger for Visual Studio 2015.

After installing both MSVC2015 and Qt560 beta, my debugger entries in
Build were blank.

I could not find cdb.exe or windbg.exe and nothing for downloading
Debug Tools for 2015 from Microsoft except a command line only set of
tools which will not install while full visual studio 2015 is
installed.

Also described in: https://bugreports.qt.io/browse/QTBUG-50399

But I am loooking for the manual entry of a debugger in Build & Run
setting in Qt creator.

Thanks,

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


[Interest] 5.5/5.6 QMLEngine management

2016-01-09 Thread mark diener
Hello List:

I have a couple of core QMLEngine questions:

Basic Code Snippet:

QQmlEngine geng ;

QQmlComponent gcomp()
gcomp.setData( ByteArrayofQML , QUrl() ) ;
gcomp.create() -> Show the QML in the QML Engine
if (gcomp.isError() == false) -> we have visible QML!

1) How does one cause all properties in the root context for QML
engine be triggered to re-evaluate their bindings again. For example
Text { text: gvariable }, it want text object to re-fetch its own
values instead of pushing values with Qobject->setProperty().  Generic
pull instead of specific push.

Can I cause a disturbance in the QmlContext and that would trigger and
"expensive" refetching of text values for example.

2) How does one clear out everything loaded in the root QmlEngine context?

What is the best way to clear the root context of qmlengine of
everything prior to calling
gcomp->setData() and  gcomp->create( ) to load brand new QML into the QmlEngine?

geng->clearComponentCache() ?  Does this really flush everything out
regardless of anything that is currently visible on-screen?

I do not want to build up a pile of QObjects in the engine, I want
them cleanly flushed out.

Thank you for any responses,

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


[Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread mark diener
Bogdan:

Thanks for your answers on the previous gradle issues.

During your work on QtActivity, did you ever try to create use a custom theme?

The native Splash screen for Qt is rooted in a java function, but that
function executes way AFTER java inflation.

So attaching the custom theme to the QtActivity should in theory cause
it to appear immediately, then Android will proceed to
deflate the classes.dex and all the other stuff while the use has
something nice to look at.

I was able to create a custom theme and attach it to the android
QtActivity in Manifest.xml.



But it seems the initial color of the surface for OpenGL is black, so
there is no getting around the initial shader color
when you initialize the OpenGL surface.

What are your thoughts?

Where does one look to find the script files used by QtCreator when a
kit is added?

I would like to change the default Manifest.xml to add a theme
whenever a new project is created.  yes, I can currently edit the
manifest.xml file directly.

Also, I would like to select which is the initial color of the OpenGL
surface during initialization.  Looks like I would have to rebuild QT
to get access to that.

Cheers,

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


Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread mark diener
Ben:

Thanks for the link.

I am finding that putting a white.png file for the
android.app.splash_screen_drawable in manifest works best.  That
allows for selection of the opengl initial surface.

The theme allows for pre-opengl display to the user.

This should be default behavior and adjustable in the Android Wizard,
but that is for another day.

Thanks,

Cheers,

md







On Tue, Jan 5, 2016 at 11:26 AM, Ben Lau <xben...@gmail.com> wrote:
> Hi Mark,
>
> Please check the step 3 in this article:.
>
> https://medium.com/@benlaud/complete-guide-to-make-a-splash-screen-for-your-qml-android-application-567ca3bc70af#.yatvhxgqp
>
>
>
> On 5 January 2016 at 21:57, mark diener <rpzrpz...@gmail.com> wrote:
>>
>> Bogdan:
>>
>> Thanks for your answers on the previous gradle issues.
>>
>> During your work on QtActivity, did you ever try to create use a custom
>> theme?
>>
>> The native Splash screen for Qt is rooted in a java function, but that
>> function executes way AFTER java inflation.
>>
>> So attaching the custom theme to the QtActivity should in theory cause
>> it to appear immediately, then Android will proceed to
>> deflate the classes.dex and all the other stuff while the use has
>> something nice to look at.
>>
>> I was able to create a custom theme and attach it to the android
>> QtActivity in Manifest.xml.
>>
>> 
>>
>> But it seems the initial color of the surface for OpenGL is black, so
>> there is no getting around the initial shader color
>> when you initialize the OpenGL surface.
>>
>> What are your thoughts?
>>
>> Where does one look to find the script files used by QtCreator when a
>> kit is added?
>>
>> I would like to change the default Manifest.xml to add a theme
>> whenever a new project is created.  yes, I can currently edit the
>> manifest.xml file directly.
>>
>> Also, I would like to select which is the initial color of the OpenGL
>> surface during initialization.  Looks like I would have to rebuild QT
>> to get access to that.
>>
>> Cheers,
>>
>> md
>> ___
>> 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 1.5.1 with Qt 5.5.1 OSX

2016-01-04 Thread mark diener
Bogdan:

While I cannot reproduce it reliably, sometimes the Qt "Copy Files to
Gradle" will not create a gradle.properties file.

That file contains:

## This file is automatically generated by QtCreator.
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.

androidBuildToolsVersion=23.0.2
androidCompileSdkVersion=21
buildDir=.build
qt5AndroidDir=/macdev/qt55/5.5/android_armv7/src/android/java


Sometimes, you get this error:

/macdev/qdev/legacy/testsplash/android/build.gradle
Error:(37, 1) A problem occurred evaluating root project 'android'.
> Could not find property 'androidCompileSdkVersion' on 
> com.android.build.gradle.AppExtension_Decorated@4d128d7e.

I will submit a bug on Qt Bug Tracker as you have requested.

Cheers,

md

On Mon, Jan 4, 2016 at 6:41 AM, BogDan <bog_dan...@yahoo.com> wrote:
> Hi,
>
> QtCreator should replace "distributionUrl" for you. Please use
> https://bugreports.qt.io to open a bug report.
>
> Cheers,
> BogDan.
>
>
> On Monday, January 4, 2016 2:30 PM, mark diener <rpzrpz...@gmail.com> wrote:
>
>
> After getting more problems like the one below:
>
> Failed to sync Gradle project 'android'
> Error:Unable to load class
> 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
> Possible causes for this unexpected error include:Gradle's
> dependency cache may be corrupt (this sometimes occurs after a network
> connection timeout.)
> Re-download dependencies and sync project
> (requires network)The state of a Gradle build process
> (daemon) may be corrupt. Stopping all Gradle daemons may solve this
> problem.
> Stop Gradle build processes (requires
> restart)Your project may be using a third-party plugin
> which is not compatible with the other plugins in the project or the
> version of Gradle requested by the project.In the case of
> corrupt Gradle processes, you can also try closing the IDE and then
> killing all Java processes.
>
> I created another fresh project, verified it ran on Android Table.
>
> Then added line to gradle-wrapper.properties:
>
> distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
>
> And commented out the 1.12 line.
>
> I focused entirely on clearing out old gradle stuff from my entire
> machine (OSX El Capitan, Qt 5.5.1)
>
> Android Studio is now working with Qt 5.5.1 again.
>
> So the lesson of the day is that as Android Studio updates from 1.4.1
> -> 1.5.1, etc, you really need to go back and remove all legacy Gradle
> stuff from your entire machine since Gradle gets confused.  And there
> seem to be several places that leave Android Studio and Gradle garbage
> on OSX.
>
> When you first create QT projects, it may be with older gradle, then
> upgrading Android studio may cause new gradle to download, but Qt and
> Android studio both need entirely fresh gradle stuff or you start to
> get hours of the above problems.
>
> Hope that helps anyone.
>
>
> Cheers,
>
> md
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Android Studio 1.5.1 with Qt 5.5.1 OSX

2016-01-04 Thread mark diener
After getting more problems like the one below:

Failed to sync Gradle project 'android'
Error:Unable to load class
'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
Possible causes for this unexpected error include:Gradle's
dependency cache may be corrupt (this sometimes occurs after a network
connection timeout.)
Re-download dependencies and sync project
(requires network)The state of a Gradle build process
(daemon) may be corrupt. Stopping all Gradle daemons may solve this
problem.
Stop Gradle build processes (requires
restart)Your project may be using a third-party plugin
which is not compatible with the other plugins in the project or the
version of Gradle requested by the project.In the case of
corrupt Gradle processes, you can also try closing the IDE and then
killing all Java processes.

I created another fresh project, verified it ran on Android Table.

Then added line to gradle-wrapper.properties:

distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip

And commented out the 1.12 line.

I focused entirely on clearing out old gradle stuff from my entire
machine (OSX El Capitan, Qt 5.5.1)

Android Studio is now working with Qt 5.5.1 again.

So the lesson of the day is that as Android Studio updates from 1.4.1
-> 1.5.1, etc, you really need to go back and remove all legacy Gradle
stuff from your entire machine since Gradle gets confused.  And there
seem to be several places that leave Android Studio and Gradle garbage
on OSX.

When you first create QT projects, it may be with older gradle, then
upgrading Android studio may cause new gradle to download, but Qt and
Android studio both need entirely fresh gradle stuff or you start to
get hours of the above problems.

Hope that helps anyone.

Cheers,

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


[Interest] Android Studio 1.5.1 with Qt 5.5.1 OSX

2016-01-03 Thread mark diener
Hello List:

Anybody run into problems with gradle
from qt 5.5.1 projects?  qt5.6 beta projects:

Lots of problems importing Gradle.

Error:(37, 0) Could not find property 'androidCompileSdkVersion' on
com.android.build.gradle.AppExtension_Decorated@4f513134.
Open
File

I am trying various combinations of Android Studio to see which one
will work with Qt 5.5.1 or Qt 5.6 beta on OSX.

So far, no dice.

Rand Android Studio 1.4.1 and 1.5.1

Which version of Android Studio was used for the following episode of
Star Wars: Episode 6?

http://www.kdab.com/qt-android-episode-6/

What version of Android Studio/ Gradle will work with Qt 5.5.1 and Qt 5.6.

(I am using in gradle wrapper.properties:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip,
though 1.12 is default)

Thanks,

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


[Interest] Android Studio 1.5.1 with Qt 5.5.1 OSX

2016-01-03 Thread mark diener
Hello List:

Anybody run into problems with gradle
from qt 5.5.1 projects?  qt5.6 beta projects:

Lots of problems with Gradle not knowing which way is up by opening
gradle.build.

Error:(37, 0) Could not find property 'androidCompileSdkVersion' on
com.android.build.gradle.AppExtension_Decorated@4f513134.
Open
File

I am trying various combinations of Android Studio to see which one
will work with Qt 5.5.1 or Qt 5.6 beta on OSX.

Tried Android Studio 1.4.1 and 1.5.1.

http://www.kdab.com/qt-android-episode-6/

Which version of Qt vs Android Studio vs Android SDK 4.4.4 or 5.1.1?

Cheers,

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


Re: [Interest] Dragging rectangle between multiple QQuickView instances?

2016-01-01 Thread Mark Gaiser
On Thu, Dec 24, 2015 at 2:15 PM, Mark Gaiser <mark...@gmail.com> wrote:

> Hi,
>
> I want to move a rectangle between two different "windows", but how can i
> do that?
>
> The only possible way i can think of (but i do'n't know if that would even
> work) is:
> - Have N QQuickView classes (lets say 2, for the sake of this argument)
> - All QQuickView instances share the same QQmlEngine object
> - Listen to an equivalent of dragEnterEvent/dragLeaveEvent. An equivalent
> since those exist in QWidget, not in QQuickView or any of the classes it
> inherits from.
> - if an enter event is received on a respective QQuickView, figure out
> which QML Component caused the event and change it's position to be in the
> view of the QQuickView that received the event.
>
> That's how i think it "could" work.. But it probably won't be that "easy"
> ;)
> So before i start to fiddle with this, is there any way already to drag a
> rectangle between multiple QQuickView instances? If not, is the way i
> described above even possible? Or could there be a simpler way to
> accomplish the same thing?
>
> Best regards,
> Mark
>

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


[Interest] OSX / IOS Xcode/El capitan

2015-12-29 Thread mark diener
FYI:

XCode 7.2 Works with Qt 5.5.1 on OSX El Capitan 10.11 for IOS and OSX targets.

Both on simulator and real devices.

For IOS, need:

 QMAKE_IOS_DEPLOYMENT_TARGET=6.0 (or higher) to get past compiler/linker issues.

For OSX, need:

QMAKE_MAC_SDK = macosx10.11

Cheers all.

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


[Interest] Dragging rectangle between multiple QQuickView instances?

2015-12-24 Thread Mark Gaiser
Hi,

I want to move a rectangle between two different "windows", but how can i
do that?

The only possible way i can think of (but i do'n't know if that would even
work) is:
- Have N QQuickView classes (lets say 2, for the sake of this argument)
- All QQuickView instances share the same QQmlEngine object
- Listen to an equivalent of dragEnterEvent/dragLeaveEvent. An equivalent
since those exist in QWidget, not in QQuickView or any of the classes it
inherits from.
- if an enter event is received on a respective QQuickView, figure out
which QML Component caused the event and change it's position to be in the
view of the QQuickView that received the event.

That's how i think it "could" work.. But it probably won't be that "easy" ;)
So before i start to fiddle with this, is there any way already to drag a
rectangle between multiple QQuickView instances? If not, is the way i
described above even possible? Or could there be a simpler way to
accomplish the same thing?

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


[Interest] Qt 5.5.x Android Arm Vs Intel

2015-11-11 Thread mark diener
Hello List:

I just ran a test where I ran an ARM compiled test program on an Intel CPU
tablet and it worked
very well.

Should we just expect to build our Android versions in ARM and the Intel
CPU will emulate the program correctly?

Anybody run more tests on Android Intel devices running ARM compiled QT
programs?

Thanks

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


Re: [Interest] Commercial license for embedded project

2015-11-01 Thread mark diener
Peter:

You can contact directly by phone any office of Qt worldwide and they have
sales people that will answer your questions about pricing.

md


On Sat, Oct 31, 2015 at 5:05 PM, Peter Kümmel  wrote:

> Does anybody know the price of a commercial Qt license for an embedded
> project?
> I tried to get an answer via the qt.io web-formular multiple times but
> got no answer.
>
> We wanna link Qt statically to reduce the binary size. When using
> link-time-optimization
> we could shrink the binary size to nearly a half. Does anyone have more
> experience on this?
>
> Many thanks,
> Peter
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] OSX El Capitan & Qt

2015-10-12 Thread mark diener
Does Qt or anybody have some guidance on what combination of
Xcode & Qt we should consider the latest stable group?

El Capitan + Xcode 7.0.1 + Qt 5.5.0?

(I found a lot of errors here)

El Capitan + Xcode 6.4 + Qt 5.5.0?
(Lots of warnings)

Iphone simulator errors:

Session could not be started: Installation Failed

Unable to remove simlink at
`/Users/md/Library/Developer/CoreSimulator/Devices/5E8715C6-8FA8-464D-BCDF-2F64C2C312C4/data/var/folders/10/v0ggbkp15l7_01knbcw6cynmgn/T/ios-sim-stderr-pipe-1444671566'

Unable to remove simlink at
`/Users/md/Library/Developer/CoreSimulator/Devices/5E8715C6-8FA8-464D-BCDF-2F64C2C312C4/data/var/folders/10/v0ggbkp15l7_01knbcw6cynmgn/T/ios-sim-stdout-pipe-1444671566'Run
ended.Debugging has failed

Since I read somewhere that Xcode 7 is not yet in the CI builds, then we
should stay away from it,
but when will Xcode 7 be added to CI?

El Capitan + Xcode 6.3.2 + Qt 5.5.0?


Thanks,

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


[Interest] Compile OpenSSL & NetworkAccessManager

2015-10-10 Thread mark diener
Hello List:

Referring to the following:  http://doc.qt.io/qt-5/opensslsupport.html

Quote-> "Open your Qt project using Qt Creator and update the "Build
Android APK" settings to add *libcrypto* and *libssl* as additional
libraries for your project."

Does this mean I can add both static/shared libraries and
NetworkAccessManager will use the included library instead of the Android
factory supplied openssl version?

For compatibility with Android-9, should I compile openssl with Android-9 ?

Or should I build the openssl code with Android-18 and it will work
backwards with Android-9?

(Incredible-> Qt 5.5.0 runs on Original Kindle Fire Android 2.3
Gingerbread!)

Can I simplly link the Intel x86 compiled version when using an Intel Kit
and Arm version when using an Arm kit?

How do we tell QT Creator to link IOS/OSX self compiled OpenSSL libraries
so that NetworkAccessManager will use them instead of apple supplied
openssl libraries?
(Both libssl.a/dylib and libcrypto.a/dylib)
(LIBS += /sslpath/libssl.a /sslpath/libcrypto.a?)

Thanks for any response,

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


[Interest] Windows 10 Intel Atom + Android Atom Intel

2015-10-07 Thread mark diener
Has anybody has success with Qt Creator to Create Android for Intel Atom
CPU under 5.5.0?

Has anybody gotten Windows 10

How does Windows 10 tablets work with Qt 5.5.x?

For IOS and Android ARM, the USB or IOS Lightning connector running Qt
5.5.0 on Mac OSX works like a champ.

I would imagine that I can execute Android Intel from this environment
without a problem, just create a KIT for that CPU and it should work.

Then I need to boot into Windows 10 with MSVC 2015 and 5.5.0 and debug a
Windows 10 tablet.

How does this work?

Do I need to run a remote debugger process on the tablet to allow for
Compile, Deploy, Debug from a Host Windows 10 PC to a Windows 10 Tablet.  I
cannot imagine running MSVC2015 on the tablet just to Compile, Deploy,
Debug.

Anybody have a comment?

Cheers,

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


Re: [Interest] Strategies to create dialog boxes dynamically in Qml

2015-09-29 Thread Mark Tucker
Hello Nuno,

In finishUIDDialogCreation() (after your check for it being null) you can 
connect the signals you're emitting from your dialog to another function of 
your choice, for instance if you had a function named "handleOKClicked" then 
you can do this:

dialog.okClicked.connect(handleOKClicked)

Then in that function you can disconnect your function from the signal like so:

dialog.okClicked.disconnect(handleOKClicked)

(since you're destroying your dialog object, this part may not be required, but 
I like to make sure)

You can then from your function do whatever you like, including destroying your 
dialog object.

Mark

From: interest-bounces+mark.tucker=airborne.a...@qt-project.org 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Nuno Santos
Sent: 29 September 2015 12:11
To: interest <interest@qt-project.org>
Subject: [Interest] Strategies to create dialog boxes dynamically in Qml

Hi,

I’m trying to implement a custom dialog box on qml using dynamic object 
creation methods. I’m using the javascript approach to create the component and 
then the object. The object appears on the scene and it has two buttons. The 
question is. What are the strategies available to receive the user input and 
react according? I want to be able to receive the answer and then destroy the 
dialog.

My small test:

// main.qml
import QtQuick 2.4
import QtQuick.Window 2.2

import "ObjectManagement.js" as ObjectManagement

Window {
id: window
visible: true
width: 1024
height: 768

MouseArea {
anchors.fill: parent
onClicked: ObjectManagement.createUIDialog(window)
}
}

// ObjectManagement.js

var parent
var component;
var dialog;

function createUIDialog(p)
{
parent = p
component = Qt.createComponent("UIDialog.qml");

if (component.status==Component.Ready)
finishUIDialogCreation();
else
component.statusChanged.connect(finishUIDialogCreation);
}

function finishUIDialogCreation()
{
if (component.status==Component.Ready)
{
dialog = component.createObject(parent, {"x": 100, "y": 100});

if (dialog==null)
console.log("Error creating object");
}
else if (component.status==Component.Error)
console.log("Error loading component:", component.errorString());
}

// UIDialog.qml

import QtQuick 2.0

Rectangle {
id: root
color: "yellow"
width: 300
height: 100

signal okClicked
signal cancelClicked

Row {
Rectangle {
width: 100
height: 50
color: "green"

MouseArea {
anchors.fill: parent
onClicked: root.okClicked()
}
}

Rectangle {
width: 100
height: 50
color: "red"

MouseArea {
anchors.fill: parent
onClicked: root.cancelClicked()
}
}
}
}

Thanks

Regards,

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


Re: [Interest] Lovely Arabic/Persian layout challenges

2015-09-18 Thread mark diener
Hello List:

There seems to be a better option, sometimes just staring at me in the
face, right in the docs.

http://doc.qt.io/qt-5/qml-qtquick-layoutmirroring.html#details

More news on its effectiveness.

Cheers.

md

On Tue, Sep 15, 2015 at 6:55 AM, mark diener <rpzrpz...@gmail.com> wrote:

> Hello List:
>
> Has anybody come across how to control right to left languages with
> respect to alignment application wide.
>
> http://doc.qt.io/qt-5/qguiapplication.html#layoutDirection-prop
>
> In my case, I need to project arabic along with english.
>
> But the shifting of left to right layout and right to left
> is not just individual component level, but application wide
> and dynamic based on language toggling.
> QApplication->setLayoutDirection() seems to have little effect
> on QML Text
>
> For example:
>
> النقاط MMX:
>
> When displayed in QML app mixes up the stored string
> and re-arranges it:
>
> :MMX النقاط
>
> Now, that means we actually need the Text QML objects themselves to mirror
> to follow along with layout.
>
> What would be wonderful is application wide layout mirroring where if we
> have a left to right language installed, the entire QML inventory could be
> virtually swapped to support it and thus not require a Left to Right and
> Right to Left layout for all the nicely positioned QML components that were
> designed with left to right to start with.
>
> If you have 50 QML layouts, that is a lot of work to get it looking good
> with Arabic AND English unless you dedicate a separate set of QML inventory
> to support Right to Left.
>
> Any body have some reflections and/or tips on this?
>
> Especially anybody from Arabic part of the community.
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] ImageProvider Threading

2015-09-17 Thread mark diener
Hello List:

When dealing with multi-threading, the docs say that QQuickImageProvider
will load
images in a separate low priority thread.

As it reads in the docs:

http://doc.qt.io/qt-5/qquickimageprovider.html#details

"When this is enabled, the image request to the provider is run in a low
priority thread, allowing image loading to be executed in the background,
and reducing the performance impact on the user interface."

Does anybody know if the requests are queued in a single low priority
thread or the requests are made in parallel low priority threads?

For queued, this means if we take a long time to return from requestPixMap(
) that all the other images will block waiting for each queued
requestPixmap( ) call to complete.

Who knows, parallel or serial requestPixmap( ) calls?

Thanks,

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


[Interest] Lovely Arabic/Persian layout challenges

2015-09-15 Thread mark diener
Hello List:

Has anybody come across how to control right to left languages with respect
to alignment application wide.

http://doc.qt.io/qt-5/qguiapplication.html#layoutDirection-prop

In my case, I need to project arabic along with english.

But the shifting of left to right layout and right to left
is not just individual component level, but application wide
and dynamic based on language toggling.
QApplication->setLayoutDirection() seems to have little effect
on QML Text

For example:

النقاط MMX:

When displayed in QML app mixes up the stored string
and re-arranges it:

:MMX النقاط

Now, that means we actually need the Text QML objects themselves to mirror
to follow along with layout.

What would be wonderful is application wide layout mirroring where if we
have a left to right language installed, the entire QML inventory could be
virtually swapped to support it and thus not require a Left to Right and
Right to Left layout for all the nicely positioned QML components that were
designed with left to right to start with.

If you have 50 QML layouts, that is a lot of work to get it looking good
with Arabic AND English unless you dedicate a separate set of QML inventory
to support Right to Left.

Any body have some reflections and/or tips on this?

Especially anybody from Arabic part of the community.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...

2015-08-28 Thread mark diener
I just tried to use windeployqt on my freshly built qt 5.5.0 compiled with
MSVC2015 and the latest Qt Creator 3.50 on Windows 10

The tool defaults to deploying the debug version, even though I pointed it
to the release executable.

It succeeds building the debug version of things. It fails to build release
version.

One failure is the inability to find the platform plugin.

Just like you guys were talking about.

Anybody got a clue why windeployqt fails on release builds?

Cheers,

md

Here are the deploy commands:

DEBUG:
C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --debug --force
C:\macdev\qbld\windyn\testwin1\Debug\debug

RELEASE:
C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --release --force --core
C:\macdev\qbld\windyn\testwin1\Release\release

Here is the Release console output:

c:\macdev\qdevtest\testwin1C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --release --force --core
C:\macdev\qbld\windyn\testwin1\Release\release
C:\macdev\qbld\windyn\testwin1\Release\release\testwin1.exe 32 bit, release
executable [QML]
Scanning C:\macdev\qdevtest\testwin1:
QML imports:
  'QtQuick' C:\macdev\qt550\msvc2015x86\qml\QtQuick.2
  'QtQuick.Window' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Window.2
  'QtQuick.Controls' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls
  'QtQuick.Layouts' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Layouts
  'QtQuick.Controls.Private'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Private
  'QtQuick.Controls.Styles'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Styles
  'QtGraphicalEffects' C:\macdev\qt550\msvc2015x86\qml\QtGraphicalEffects
  'QtQuick.Extras' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Extras
  'QtQml.Models' C:\macdev\qt550\msvc2015x86\qml\QtQml\Models.2
Direct dependencies: Qt5Core Qt5Gui Qt5Qml
All dependencies   : Qt5Core Qt5Gui Qt5Network Qt5Qml
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml
Unable to find the platform plugin.

c:\macdev\qdevtest\testwin1

Here is the Debug console output:

c:\macdev\qdevtest\testwin1C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --debug --force
C:\macdev\qbld\windyn\testwin1\Debug\debug
C:\macdev\qbld\windyn\testwin1\Debug\debug\testwin1.exe 32 bit, debug
executable [QML]
Scanning C:\macdev\qdevtest\testwin1:
QML imports:
  'QtQuick' C:\macdev\qt550\msvc2015x86\qml\QtQuick.2
  'QtQuick.Window' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Window.2
  'QtQuick.Controls' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls
  'QtQuick.Layouts' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Layouts
  'QtQuick.Controls.Private'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Private
  'QtQuick.Controls.Styles'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Styles
  'QtGraphicalEffects' C:\macdev\qt550\msvc2015x86\qml\QtGraphicalEffects
  'QtQuick.Extras' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Extras
  'QtQml.Models' C:\macdev\qt550\msvc2015x86\qml\QtQml\Models.2
Adding Qt5Svg for qsvgicond.dll
Direct dependencies: Qt5Core Qt5Gui Qt5Qml
All dependencies   : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Widgets
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Svg
Qt5Widgets
Updating Qt5Cored.dll.
Updating Qt5Guid.dll.
Updating Qt5Networkd.dll.
Updating Qt5Qmld.dll.
Updating Qt5Quickd.dll.
Updating Qt5Svgd.dll.
Updating Qt5Widgetsd.dll.
Updating libGLESV2d.dll.
Updating libEGLd.dll.
Updating d3dcompiler_47.dll.
Updating vcredist_x86.exe.
Updating qgenericbearerd.dll.
Updating qnativewifibearerd.dll.
Updating qsvgicond.dll.
Updating qddsd.dll.
Updating qgifd.dll.
Updating qicnsd.dll.
Updating qicod.dll.
Updating qjp2d.dll.
Updating qjpegd.dll.
Updating qmngd.dll.
Updating qsvgd.dll.
Updating qtgad.dll.
Updating qtiffd.dll.
Updating qwbmpd.dll.
Updating qwebpd.dll.
Updating qwindowsd.dll.
Updating qmldbg_qtquick2d.dll.
Updating qmldbg_tcpd.dll.
Updating qtquick2plugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Updating windowplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Updating qtquickcontrolsplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Private.
Updating qmldir.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base/images.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Desktop.
Updating qmldir.
Updating qtquickextrasflatplugind.dll.
Updating qmldir.
Updating qquicklayoutsplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Private.
Updating qmldir.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base/images.
Creating

Re: [Interest] Qt 5.5.1 MSVC 2015

2015-08-27 Thread mark diener
Oops,

I forgot the latest build errors, this time in the java engine (Yarr
parser?)

Each day, one less build blocker.

Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x6600
/INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.5 /MANIFEST:embed
/OUT:..\..\lib\Qt5Qml.dll @C:\Users\md\AppData\Local\Temp\nmB431.tmp
   Creating library ..\..\lib\Qt5Qml.lib and object ..\..\lib\Qt5Qml.exp
YarrInterpreter.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)
(?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function
public: __thiscall JSC::Yarr::BytecodePattern::BytecodePattern(class
PassOwnPtrclass JSC::Yarr::ByteDisjunction,class WTF::Vectorstruct
OwnPtrclass JSC::Yarr::ByteDisjunction,1,0 ,struct
JSC::Yarr::YarrPattern ,class WTF::BumpPointerAllocator *)
(??0BytecodePattern@Yarr@JSC@@QAE@V?$PassOwnPtr@VByteDisjunction@Yarr@JSC
AAV?$Vector@U?$OwnPtr@VByteDisjunction@Yarr@JSC$00$0A@@WTF@
@AAUYarrPattern@12@PAVBumpPointerAllocator@5@@Z)
YarrJIT.obj : error LNK2001: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)
(?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
YarrPattern.obj : error LNK2001: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)
(?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
YarrInterpreter.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)
(?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in
function public: __thiscall
JSC::Yarr::BytecodePattern::BytecodePattern(class PassOwnPtrclass
JSC::Yarr::ByteDisjunction,class WTF::Vectorstruct OwnPtrclass
JSC::Yarr::ByteDisjunction,1,0 ,struct JSC::Yarr::YarrPattern ,class
WTF::BumpPointerAllocator *) (??0BytecodePattern@Yarr@JSC@@QAE@V
?$PassOwnPtr@VByteDisjunction@Yarr@JSCAAV?$Vector@U
?$OwnPtr@VByteDisjunction@Yarr@JSC$00$0A@@WTF@@AAUYarrPattern@12
@PAVBumpPointerAllocator@5@@Z)
YarrJIT.obj : error LNK2001: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)
(?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
YarrPattern.obj : error LNK2001: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)
(?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::digitsCreate(void)
(?digitsCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function
public: struct JSC::Yarr::CharacterClass * __thiscall
JSC::Yarr::YarrPattern::digitsCharacterClass(void)
(?digitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::spacesCreate(void)
(?spacesCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function
public: struct JSC::Yarr::CharacterClass * __thiscall
JSC::Yarr::YarrPattern::spacesCharacterClass(void)
(?spacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nondigitsCreate(void)
(?nondigitsCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in
function public: struct JSC::Yarr::CharacterClass * __thiscall
JSC::Yarr::YarrPattern::nondigitsCharacterClass(void)
(?nondigitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nonspacesCreate(void)
(?nonspacesCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in
function public: struct JSC::Yarr::CharacterClass * __thiscall
JSC::Yarr::YarrPattern::nonspacesCharacterClass(void)
(?nonspacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol struct
JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nonwordcharCreate(void)
(?nonwordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in
function public: struct JSC::Yarr::CharacterClass * __thiscall
JSC::Yarr::YarrPattern::nonwordcharCharacterClass(void)
(?nonwordcharCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23
@XZ)
..\..\lib\Qt5Qml.dll : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\link.EXE' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


On Thu, Aug 27, 2015 at 12:01 PM, mark diener rpzrpz...@gmail.com

Re: [Interest] Qt 5.5.1 MSVC 2015

2015-08-27 Thread mark diener
I can say that shadow building method definitely has a problem.

When I built with same configure/nmake from the source directory, it built
all the way until I got an unresolved externals.

But my earlier information was solved by NOT Shadow building on Windows 10
with MSVC2015.

Only build from the source root directory itself.

More news soon.

md




On Thu, Aug 27, 2015 at 8:11 AM, mark diener rpzrpz...@gmail.com wrote:

 Thiago:

 Ok, the first error is the most important.

 I made sure I added your -I and -L suggestion
 and tried to capture errors to a log file.

 There is a required space between -I C:\, it does not seem to allow
 -IC:\

 Seems like the build process is ignoring the:  -IC:\macdev\openssl\include
 directive

 Attached are files:
 A) builderrors.txt is the output generated by nmake /x
 B) buildoutput.txt is the last bit of console output
 C) configure.txt is the console output of the configure command
 D) rpzbuild.bat.txt is the shadow build batch file (txt added to pass
 google email filter, its a batch file)

 Seems like every thing is in place from the configure output.

 I downloaded the source from:


 http://download.qt.io/official_releases/qt/5.5/5.5.0/single/qt-everywhere-opensource-src-5.5.0.zip

 510 mb zip file.

 Running on Windows 10 with MSVC 2015 community edition.

 What do you think?
 Download source from different place?
 Where are you getting yours from, GIT clone?
 Should I actually get openssl sources and build them too?

 Cheers,

 md



 On Mon, Aug 24, 2015 at 3:09 PM, Thiago Macieira 
 thiago.macie...@intel.com wrote:

 On Monday 24 August 2015 11:36:36 mark diener wrote:
  On Mon, Aug 24, 2015 at 9:39 AM, Thiago Macieira 
 thiago.macie...@intel.com
  wrote:
   Compile from sources, for now.
 
  Thanks Thiago.
 
  Has anybody built qt5.5.0 from sources with MSVC2015?

 Yes. I have been doing just that since last November.

  There are people on the list that will want to build qt5.5.0 and
 qt5.5.1 if
  we must wait until qt5.6 to get a MSVC2015 binary build
  using Windows 10.
 
  So I would like to document a HOWTO for people in the community to
 repeat
  step-by-step to build Qt5.5.0 from sources.

 configure -platform win32-msvc2015 [your other configure options]
 nmake

  I did try to compile from qt.5.5.0 sources and ran into openssl path
  errors.  Once I solve the openssl problems, I will likely run into
 others.

 Unrelated to MSVC 2015.

  Building from sources
  is trivial when everything goes right.
 
  Since openssl is needed and it does not come standard on a Windows
 machine,
  and since there is no yum install openssl on Windows 10, I found
  a MSVC2015 compiled developer ready package for the latest library and
  header files from the following link:
 
 
 http://p-nand-q.com/programming/windows/openssl-1.0.2d-32bit-release-dll-vs2
  015.7z
 
  Unzipped an put into: C:\macdev\openssl  directory

 Then add to configure:
 -IC:\macdev\poenssl\include -LC:\macdev\openssl\lib -openssl

 [I see you have in your script]

  MANY SSL ERRORS ABOVE - But the net result:
  c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(185): error
  C2061: syntax error: identifier 'QSslCertificate'

 The most important error is the first.

 --
 Thiago Macieira - thiago.macieira (AT) intel.com
   Software Architect - Intel Open Source Technology Center

 ___
 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 5.5.1 MSVC 2015

2015-08-24 Thread mark diener
On Mon, Aug 24, 2015 at 9:39 AM, Thiago Macieira thiago.macie...@intel.com
wrote:

 Compile from sources, for now.



Thanks Thiago.

Has anybody built qt5.5.0 from sources with MSVC2015?

There are people on the list that will want to build qt5.5.0 and qt5.5.1 if
we must wait until qt5.6 to get a MSVC2015 binary build
using Windows 10.

So I would like to document a HOWTO for people in the community to repeat
step-by-step to build Qt5.5.0 from sources.

I did try to compile from qt.5.5.0 sources and ran into openssl path
errors.  Once I solve the openssl problems, I will likely run into others.
Building from sources
is trivial when everything goes right.

Since openssl is needed and it does not come standard on a Windows machine,
and since there is no yum install openssl on Windows 10, I found
a MSVC2015 compiled developer ready package for the latest library and
header files from the following link:

http://p-nand-q.com/programming/windows/openssl-1.0.2d-32bit-release-dll-vs2015.7z

Unzipped an put into: C:\macdev\openssl  directory

For those who want more security, build your openssl from sources.  But
that is not the goal here, we want to compile qt5.5.0 from sources using
MSVC2015 Community edition.

Using the git configure as a guide, I tried to do emulate as close as
possible the binary package build:

http://code.qt.io/cgit/qtsdk/qtsdk.git/tree/packaging-tools/releases/release-55?h=v5.5.0-packaging

The closest config I could find was:

-opensource -confirm-license -debug-and-release -release -nomake tests
-nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic
-plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -plugin-sql-odbc
-openssl -target xp -dbus

So I removed the -target xp and removed some database stuff since I don't
need it)
Added in a platform option to point to the correct mkspec.

Here is my shadow build batch file:
***
mybuild.bat
REM A script file to build
mkdir C:\macdev\qt550\2015build
cd C:\macdev\qt550\2015build

REM Make sure you go grab a beer at Moe's with Homer before checking if the
build is finished

REM just clean things up before building again
nmake clean

REM OPENSSLBUILD - Here is my openssl version (this fails with openssl.h
path errors (copied below))
REM C:\macdev\qt550\src\configure -opensource -confirm-license -prefix
C:\macdev\qt550\msvc2015x86 -opensource -debug-and-release -release -nomake
tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic
-dbus REM -platform win32-msvc2015 -openssl -I C:\macdev\openssl\ -I
C:\macdev\openssl\include\ -I C:\macdev\openssl\include -L
C:\macdev\openssl -L C:\macdev\openssl\bin -L C:\macdev\openssl\lib

REM NOOPENSSLBUILD - If it will not build with openssl, how will it work
without openssl as a test?  (Try below)
C:\macdev\qt550\src\configure -opensource -confirm-license -prefix
C:\macdev\qt550\msvc2015x86 -opensource -debug-and-release -release -nomake
tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic
-dbus -platform win32-msvc2015 -no-openssl -no-ssl
http://p-nand-q.com/programming/windows/openssl-1.0.2d-32bit-release-dll-vs2015.7z

REM Now Compile
jom

MANY SSL ERRORS ABOVE - But the net result:
c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(185): error
C2061: syntax error: identifier 'QSslCertificate'
c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error
C3646: 'sessionCipher': unknown override specifier
c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error
C2059: syntax error: ')'
c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error
C2238: unexpected token(s) preceding ';'
c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_openssl_p.h(75):
fatal error C1083: Cannot open include file: 'openssl/asn1.h': No such file
or directory

What?

My -no-openssl and -no-ssl should beg the question why Qt build process
wants openssl.

Cheers all,

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


[Interest] Qt 5.5.0 Compile Time Hash Example

2015-08-23 Thread mark diener
Hello List:

Have you ever wanted an efficient switch statement on QString values?

There are many references to the subject with various algorithms, but they
all have some major flaw in the implementation.

For those looking for a way to have compile and run time hash on their
strings, I spent a little while doing some research on the subject and
wanted to share back to Qt community:

The tests ran successfully with the C++11 example for OSX/IOS Xcode 6.3.2
and Android NDK 10 r10e,

I went ahead and tested the function on MSVC 2013 with CTP November and it
failed.  MSVC 2015 worked, but I could not build the QT 5.5.0 source code
successfully, so I just built a console app in MSVC2015 and the C++11
function worked.

The C++14 example did not work on OSX or Android, but it did work on IOS.
With 2 out of 3 failures, I did not feel motivated to test for MSVC 2015 on
Windows 10.

So for those wanting to verify and make use of it, here are the required
code snippets:

First, in your .PRO file:

#CONFIG += c++14

CONFIG += c++11


Now for a source sample:


//main.cpp ##//VALID C++14 Constant Expression
Function (Compiles for IOS on Qt5.5.0 and XCode 6.3.2, but does not
Compile for OSX Desktop with Clang)/*constexpr unsigned int
fnhash(const char *gpstr){unsigned int hash = 0;size_t gidx =
0 ;while (gpstr[gidx]  0){hash = 65599 * hash +
gpstr[gidx];if (gidx  15) break ;gidx++ ;}
return hash ^ (hash  16);}*/// ##//C++11
Constant Expression Function
//Forward declarationconstexpr unsigned int fnhashrec(unsigned int
hash, const char* str) ;
constexpr unsigned int fnhash(const char* str){   return ( !str ? 0 :
fnhashrec(5381, str) );}
constexpr unsigned int fnhashrec(unsigned int hash, const char* str){
 return ( !*str ? hash : fnhashrec(((hash  5) + hash) + *str, str +
1));}// ##
int main(int argc, char *argv[]){QGuiApplication gapp(argc, argv);
   QQmlApplicationEngine geng;
QString gval = JOKER ;

//NOW look at the run time eval from QString - char*

switch (fnhash(gval.toUtf8().data())){case fnhash(PETE):
 //Compile time optimizedqDebug()  POOR PETE IS NOT A
JOKER  endl ;break ;case fnhash(JOKER): //Compile
time optimizedqDebug()  BLOODY JOKER WORKED - SUCCESS 
endl ;break ;}
geng.load(QUrl(QStringLiteral(qrc:/main.qml)));return gapp.exec();}

Cheers,

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


[Interest] Accessing QML Loader from C++

2015-08-22 Thread mark diener
Hello List:

Does anybody have an idea on how to retrieve the QObject* from C++
with a QML Loader::item property?


Is it possible to pass a item to Q_INVOCABLE and get a valid QObject*
inside the called
invoked function (from QML-C++)

Is there a risk of blowing memory if I setContextProperty( ) on the
QQmlContext of the Loader QML element?

There does not seem to be a QQmlContext::removeContextProperty( ) function
call,
but the API does accept setContextProperty(myobj,NULL).

What is the way to manage memory usage used by setContextProperty( ) call.

Thanks,

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


[Interest] Qt 5.5.0 Import Paths Missing

2015-08-21 Thread mark diener
Ran into a project where the Qt 5.5.0 package builder is confused
and the application cannot find the modules.

This is being run inside Qt Creator 3.5.0 and the
QQmlApplication::importPathList()
does not provide the testgui.app/qt_qml path, it is missing a path, so the
Qml engine
cannot find it.

This problem is discussed earlier here:

https://bugreports.qt.io/browse/QTBUG-355602

This is not a macdeployqt question, I am still running the app inside Qt
Creator in development.
So it is NOT user error as was referenced in the bug report which finally
closed the bug report.

So how does one COMPLETELY reset and clean a project on IOS so that the
package builder
feels compelled to rebuild everything to include the testgui.app/qt_qml
path in the import path list?

Have a great day,

md

Here is Qt Creator application output:

Starting remote process.

QML debugging is enabled. Only use this in a safe environment.



(C++ Code: qDebug()  Import paths:  geng.importPathList()  endl ;)


Import paths:
(/Users/md/Library/Developer/CoreSimulator/Devices/1F460FB0-6CA4-4ED4-A320-2C68B1BB4258/data/Containers/Bundle/Application/6006577A-06E8-4B96-8E24-95A5A062F4D3/testgui.app)



QQmlComponent: Component is not ready

Screen error: (Unknown File:1:1: module QtQuick is not installed,
Unknown File:2:2: module QtQuick.Window is not installed, Unknown
File:1:1: module QtQuick is not installed, Unknown File:2:2: module
QtQuick.Window is not installed)


Run ended.

The Import Paths List should be as follows:

Import paths:
(/Users/md/Library/Developer/CoreSimulator/Devices/1F460FB0-6CA4-4ED4-A320-2C68B1BB4258/data/Containers/Bundle/Application/6006577A-06E8-4B96-8E24-95A5A062F4D3/testgui.app,
/Users/md/Library/Developer/CoreSimulator/Devices/1F460FB0-6CA4-4ED4-A320-2C68B1BB4258/data/Containers/Bundle/Application/6006577A-06E8-4B96-8E24-95A5A062F4D3/testgui.app/qt_qml)
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt 5.5.0 OSX Simulator fail

2015-07-30 Thread mark diener
Hello List:

Yosemite 10.10.2 - Xcode 6.1.1  (also on Xcode 6.2) - Qt 5.5.0

Trying to run on the IOS simulator and get a big fail.  The simulator
starts up but then the applicaiton output gets
the following message on a basic project.

Anybody come across this?

Debugging starts

Session could not be started: Unable to run app in Simulator

Unable to remove simlink at
`/Users/md/Library/Developer/CoreSimulator/Devices/68424D04-B842-4C71-AE77-6F141822D7E3/data/var/folders/9s/l_fngwkx5rz_fjy85dns7rjwgn/T/ios-sim-stderr-pipe-1438292236'

Unable to remove simlink at
`/Users/md/Library/Developer/CoreSimulator/Devices/68424D04-B842-4C71-AE77-6F141822D7E3/data/var/folders/9s/l_fngwkx5rz_fjy85dns7rjwgn/T/ios-sim-stdout-pipe-1438292236'Run
ended.Debugging has failed

Debugging has finished

Thanks,

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


Re: [Interest] Qt 5.5.0 OSX Simulator fail

2015-07-30 Thread mark diener
Hello List  IOS Maintainer Tor Arne:  (tor.arne.ves...@theqtcompany.com)

I would like to suggest some hard lessons learned today.

I upgraded to 5.5.0 and was primarily getting my code running on OSX to
make sure it basically worked.  I could then deploy to IOS Simulator/IOS
and android to validate the code worked there.

I tried using Qt 5.5.0 on Yosemite 10.10.2 and Xcode 6.1.1 / 6.2 but that
turned out to be a disaster.

When I moved back to Qt 5.4.2, I gained IMMEDIATE relief.  All of the
strange xcodebuild errors went away.

The basic project I tried for HOURS to get running on IOS and IOS simulator
under Qt 5.5.0/Xcode 6.1.1 immediately WORKED on Qt 5.4.2 on Xcode 6.1.1

So I went to start looking at the CI system with an eye for knowing what
combinations of OSX, Qt 5.x.x, and Xcode 6.x are safe combinations
and which are explosive.

https://wiki.qt.io/CI_Configurations
http://testresults.qt.io/qtmetrics/metricspageci.php

What I found was that the CI system is only running OSX Mavericks and I was
not able to determine what sort of simulator or IOS device tests were being
run.

Maybe the IOS maintainer and the Continuous Integrator CI maintainer might
allow me to make sense of which combinations of Xcode/OSX/Qt/IOS are best
kept together.

I know the upcoming patch of Qt 5.5.1 for Windows 10 support is a good
pairing, but what is a good XCode to pair with Qt 5.5.1?

Cheers,

md



On Thu, Jul 30, 2015 at 2:45 PM, mark diener rpzrpz...@gmail.com wrote:

 Hello List:

 Yosemite 10.10.2 - Xcode 6.1.1  (also on Xcode 6.2) - Qt 5.5.0

 Trying to run on the IOS simulator and get a big fail.  The simulator
 starts up but then the applicaiton output gets
 the following message on a basic project.

 Anybody come across this?

 Debugging starts

 Session could not be started: Unable to run app in Simulator

 Unable to remove simlink at
 `/Users/md/Library/Developer/CoreSimulator/Devices/68424D04-B842-4C71-AE77-6F141822D7E3/data/var/folders/9s/l_fngwkx5rz_fjy85dns7rjwgn/T/ios-sim-stderr-pipe-1438292236'

 Unable to remove simlink at
 `/Users/md/Library/Developer/CoreSimulator/Devices/68424D04-B842-4C71-AE77-6F141822D7E3/data/var/folders/9s/l_fngwkx5rz_fjy85dns7rjwgn/T/ios-sim-stdout-pipe-1438292236'Run
 ended.Debugging has failed

 Debugging has finished

 Thanks,

 md

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


  1   2   3   4   >