Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Thiago Macieira
On Thursday 26 March 2015 06:49:50 Wilhelm wrote: > Am 26.03.2015 um 06:15 schrieb Thiago Macieira: > > On Thursday 26 March 2015 06:07:24 Wilhelm wrote: > >> That looks strange to me: if I define several kits (with different > >> compilers like g++ and clang++ or ms vs) in qtcreator I would expect

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Wilhelm
Am 26.03.2015 um 06:15 schrieb Thiago Macieira: > On Thursday 26 March 2015 06:07:24 Wilhelm wrote: >> That looks strange to me: if I define several kits (with different >> compilers like g++ and clang++ or ms vs) in qtcreator I would expect >> that the CONFIG+=c++14 variable would be translated to

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Thiago Macieira
On Thursday 26 March 2015 06:07:24 Wilhelm wrote: > That looks strange to me: if I define several kits (with different > compilers like g++ and clang++ or ms vs) in qtcreator I would expect > that the CONFIG+=c++14 variable would be translated to the correct > compiler flag. That's not how it work

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Wilhelm
Am 26.03.2015 um 03:42 schrieb Thiago Macieira: > On Wednesday 25 March 2015 18:08:12 Tim O'Neil wrote: >> Qmake with clang is possble, but its not easy; ths is a possble solution: >> https://forum.qt.io/topic/19067/solved-using-qtcreator-qmake-with-clang-libc > > It's not difficult at all. But in

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Thiago Macieira
On Wednesday 25 March 2015 18:08:12 Tim O'Neil wrote: > Qmake with clang is possble, but its not easy; ths is a possble solution: > https://forum.qt.io/topic/19067/solved-using-qtcreator-qmake-with-clang-libc It's not difficult at all. But in order to enable C++14, you need to have compiled Qt wi

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Tim O'Neil
Qmake with clang is possble, but its not easy; ths is a possble solution: https://forum.qt.io/topic/19067/solved-using-qtcreator-qmake-with-clang-libclangtooling On Mar 25, 2015 9:58 AM, "Thiago Macieira" wrote: > On Wednesday 25 March 2015 14:46:52 Wilhelm wrote: > > As you can see running qmake

Re: [Interest] QML ListModels and JSON

2015-03-25 Thread Daniel França
I used the JSONListModel for a project, the code is available under MIT license here: https://github.com/kromain/qml-utils Em qua, 25 de mar de 2015 às 20:58, Jason H escreveu: > I get back from a Ajax a JSON object with a 'table' from a web query: > [ > {id: 1, "category":"1", value:"1"}, > {id

[Interest] QML ListModels and JSON

2015-03-25 Thread Jason H
I get back from a Ajax a JSON object with a 'table' from a web query: [ {id: 1, "category":"1", value:"1"}, {id: 2, "category":"1", value:"2"}, {id: 3, "category":"2", value:"3"}, ... ] What is the easiest way to convert the array to ListElements? Up to this point, I was copying data using ListMo

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Thiago Macieira
On Wednesday 25 March 2015 14:46:52 Wilhelm wrote: > As you can see running qmake with linux-clang doesn't work: > > ⌁68% [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/SS2015/vl01] $ > qmake -spec linux-clang That will not work because you configured with GCC. qmake only knows the GCC vers

Re: [Interest] Restart Qt/Android application

2015-03-25 Thread rpzrpz...@gmail.com
http://stackoverflow.com/questions/6609414/howto-programatically-restart-android-app Look at the answers.. md On 3/25/2015 3:23 AM, Luís Filipe Salé Borlido wrote: > ​​Hi, > > Is there any way to restart a Qt/Android application? > I already tried the methods described in the following pages: >

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread John Weeks
It looks to me like at present (Qt 5.4) the various devicePixelRatio() functions on Windows only return 1.0 or 2.0. But Windows systems can be at fractional ratios- will 5.5 address that? It also appears that drawing a QPixmap or QImage with a fractional ratio actually works, but we can't disco

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Wilhelm
Am 25.03.2015 um 12:03 schrieb Allan Sandfeld Jensen: > On Wednesday 25 March 2015, Wilhelm wrote: >> Hi all, >> >> the qmake documentation says that is is possible to set >> >> CONFIG+= c++14 >> >> But if I do so, the generated makefile still contains the flag >> >> -std=c++11 >> >> So, whats wron

[Interest] [ANNOUNCE] QxOrm 1.3.2 and QxEntityEditor 1.1.8 released, support C++11 types

2015-03-25 Thread QxOrm contact
Hello, *QxOrm 1.3.2* (C++/Qt ORM Object Relational Mapping database library) and *QxEntityEditor 1.1.8* (the graphic editor) just released (http://www.qxorm.com/) ! Changes in version *QxOrm 1.3.2*: *- Support C++11 types (need to set compilation options in QxOrm.pri config file to enable thes

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 17:01, Till Oliver Knoll > wrote: > > But since the QGraphicsPixmapItem is doing the drawing for me, I probably > really need to get informed about resolution changes, and replace the pixmaps > in the QGraphicsViewItem myself as needed (unless I am overseeing some other,

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 15:05, Till Oliver Knoll > wrote: > > > [self setWantsBestResolutionOpenGLSurface:YES]; > > If you don't opt in, the system magnifies the rendered results." Note that Qt opts in for you and calls the above API. Disabling it will most likely work around the “rendering t

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 14:26, Till Oliver Knoll > wrote: > > > Am 19.03.2015 um 14:17 schrieb Sorvig Morten : > >> Hi, >> >> ... >> >> In case there issues that I’ve missed I would be interested in hearing about >> it. I can’t promise that everything will be fixed, but it will be at least >

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Allan Sandfeld Jensen
On Wednesday 25 March 2015, Wilhelm wrote: > Hi all, > > the qmake documentation says that is is possible to set > > CONFIG+= c++14 > > But if I do so, the generated makefile still contains the flag > > -std=c++11 > > So, whats wrong here? You can check mkspecs/features/c++14.prf for the cond

Re: [Interest] QVariantMap: constEnd() not equal to end()?

2015-03-25 Thread Jan Kundrát
On Tuesday, 24 March 2015 11:28:16 CET, Jan Kundrát wrote: > end() returns an interator, not a const_iterator. Obtaining an interator > (not a const_iterator) from a Qt container calls detach(), which means that > your QHash gets copied. And one important correction because I wasn't very clear a

[Interest] Restart Qt/Android application

2015-03-25 Thread Luís Filipe Salé Borlido
​​Hi, Is there any way to restart a Qt/Android application? I already tried the methods described in the following pages: - http://wiki.qt.io/ApplicationRestart - https://forum.qt.io/topic/6155/solved-restart-a-qt-application/2 but none of them works for an Android application, only for de

Re: [Interest] qmake and CONFIG += c++14

2015-03-25 Thread Wilhelm
Am 25.03.2015 um 07:52 schrieb Thiago Macieira: > On Wednesday 25 March 2015 07:24:10 Wilhelm wrote: >>> Your compiler is too old or the version was not detected. >> >> Don't think so... > > What's in mkspecs/qconfig.pri? I have here: > > QT_GCC_MAJOR_VERSION = 4 > QT_GCC_MINOR_VERSION = 9 > QT_G