[Interest] QtCreator on kubuntu says: "No qmlscene installed"
I just installed Qt Creator 4.5.2 from kubuntu apt sources. It installed qmlscene + qt development files at the same time. I can see clearly there is a qmlscene executable right next to qmake in the same directory: /usr/lib/qt5/bin How do I get rid of the "no qmlscene installed" warning? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] qtLocation and mbtiles
> > > Thanks Ola for your reply and advise. I gave it a try and it is working > nicely (the server is in a thread of the main application as you > suggested). I used the osm plugin instead of mapbox-gl, is there any reason > why mapbox-gl would be more advantageous? > > I'm using a mix of vector and raster tiles, so I needed mapbox-gl. If you only use raster tiles then osm should be just fine! I guess it should be much easier to use as a starting point for your own plugin too. Cheers, Ola ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] clazy - why signals shouldn't be const?
On 2018-07-09 11:43, Tomasz Siekierda wrote: Hi, perhaps not the best list to ask, but hopefully somebody more familiar with clazy will comment. Why does clazy complain about const signals? It's not wrong to use const signals. That check is for developers that don't like changing state from const methods (and a signal implies state was changed). If it doesn't bother you then you can disable the check. But I'll remove it from the default group, make it opt-in and update the readme. As you're not the first one to ask. Regards, -- Sérgio Martins | sergio.mart...@kdab.com | Senior Software Engineer Klarälvdalens Datakonsult AB, a KDAB Group company Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - The Qt, C++ and OpenGL Experts ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] clazy - why signals shouldn't be const?
On Mon, 9 Jul 2018 at 13:17, Sérgio Martins wrote: > On 2018-07-09 11:43, Tomasz Siekierda wrote: > > Hi, > > > > perhaps not the best list to ask, but hopefully somebody more familiar > > with > > clazy will comment. > > > > Why does clazy complain about const signals? > > It's not wrong to use const signals. > That check is for developers that don't like changing state from const > methods (and a signal implies state was changed). > If it doesn't bother you then you can disable the check. > > But I'll remove it from the default group, make it opt-in and update the > readme. As you're not the first one to ask. > Thank you for replying and the explanation :-) > > > > Regards, > -- > Sérgio Martins | sergio.mart...@kdab.com | Senior Software Engineer > Klarälvdalens Datakonsult AB, a KDAB Group company > Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) > KDAB - The Qt, C++ and OpenGL Experts > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] clazy - why signals shouldn't be const?
Hi, perhaps not the best list to ask, but hopefully somebody more familiar with clazy will comment. Why does clazy complain about const signals? While I agree marking signals as const is not terribly important, I've had a few situations in code where I was emitting from const method - and then it only works when the signal is const, too. Besides, marking a signal as const does not result in any loss of performance etc. Is there any strong reason not to mark signals as const? For reference: https://github.com/KDE/clazy/blob/master/docs/checks/README-const-signal-or-slot.md "For signals, it's just pointless to mark them as const." ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] qtLocation and mbtiles
Hi Thanks Ola for your reply and advise. I gave it a try and it is working nicely (the server is in a thread of the main application as you suggested). I used the osm plugin instead of mapbox-gl, is there any reason why mapbox-gl would be more advantageous? I might anyway go for the full subclassing method, because I also have security issues (some of the mbtiles contain encrypted tiles and that way it is too easy to catch them once decrypted). I should also find a way to avoid caching, etc. Thanks again Philippe Le 07-07-2018 20:31, Ola Røer Thorsen a écrit : >> I need to create a plugin for qtLocation that would use a local mbtile sql >> database instead of an online provider or a directory. The mbtiles >> management part is not an issue, I have already a class responding to tiles >> queries that I use in another widget-based application. >> >> So far my understanding is that I need to subclass >> QGeoServiceProviderFactoryV2 and all other relevant classes. Is it the >> correct approach or is there something more simple? I couldn't find any >> sample on internet, and I find the documentation very limited. >> >> Any clue welcomed to help getting me started. > > If you write a small http mbtiles server then you can use one of the > existing plugins that are bundled with Qt. I've done this using the > mapboxgl-plugin. You can run the "server" from a thread in your > application if you want. > > This might be the easiest solution for you, sounds like you have most > of it already. > > For the mapbox-gl plugin, pass it an additional style to use, then > serve this style from your server. You must also serve a "tilejson" > file. Check out tileserver-gl on github for inspiration > (node.js-based). > > Cheers, > Ola > > ___ > 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