Re: [SailfishDevel] setContextProperty

2015-09-16 Thread tw_bolek
> Hello, > > https://lists.sailfishos.org/pipermail/devel/2013-December/001717.html Works like a charm, THANK YOU!! ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Can't use QDeviceInfo

2015-09-16 Thread tw_bolek
> > >add sailfishapp also to the PKGCONFIG Before you answered, I tried removing CONFIG += link_pkgconfig and only kept PKGCONFIG += Qt5SystemInfo and it builds and works just fine! Thank you guys! ___ SailfishOS.org Devel mailing list To unsubscri

[SailfishDevel] setContextProperty

2015-09-16 Thread tw_bolek
Please excuse me guys for being such a newbie. Coming from BB10 where many details are different, I have a lot of problems with even the most basic stuff on Sailfish :( I have a Q_INVOKABLE - let's say something like: QInt DoSomeMath() { // does some calulation return result; } and I need t

[SailfishDevel] Can't use QDeviceInfo

2015-09-16 Thread tw_bolek
> do you have such in your .pro > CONFIG += link_pkgconfig > PKGCONFIG += Qt5SystemInfo Just added: CONFIG += sailfishapp \ link_pkgconfig PKGCONFIG += Qt5SystemInfo Now I get: undefined reference to `SailfishApp::main(int&, char**)' ___ Sailf

[SailfishDevel] Can't use QDeviceInfo

2015-09-16 Thread tw_bolek
Guys, PLEASE, help me, or soon I'll go nuts. For days I've been struggling to use QtSystemInfo/QDeviceInfo to get IMEI. I need to do it in C++, not in QML. It is properly imported (e.g. #include ), QtCreator recognizes it, but every time I try to build the project I end up with "undefined refe

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-24 Thread tw_bolek
Thomas Perl wrote: > Why do you want to use Qt Resources instead of deploying the files to > the filesystem? To hide SOME code from those who like to just copy&paste rather than ask for permission or credit the source. Not from everyone, just from those "copy&pasters". Some time ago I had m

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-24 Thread tw_bolek
Thomas Perl wrote: > Why do you want to use Qt Resources instead of deploying the files to > the filesystem? To "hide" some of QML code away from prying eyes. Of course, I know that it's a very poor protection as it is just compression so everything can be easily extracted, but that's actua

Re: [SailfishDevel] rcc -threshold option doesn't work?

2014-04-24 Thread tw_bolek
> I believe the problem may be that the Makefile is recreated every time > you press build because of limitations in the qt creator / virtual > machine integration. You could try adding QMAKE_RESOURCE_FLAGS to your > "spec" file in a suitable place. > > QMAKE_RESOURCE_FLAGS += -threshold 0 -com

[SailfishDevel] Is support for commercial apps a TABOO subject?

2014-04-24 Thread tw_bolek
On April 4 Duncan Waugh wrote: " [...] support commercial applications. Is there any news on when this is planned for integration?" No answer. On April 17 Marcin M. wrote: "Is there any estimated time when paid apps will be allowed to Harbour?" No answer. There are also a number of such topi

[SailfishDevel] rcc -threshold option doesn't work?

2014-04-23 Thread tw_bolek
Hello guys, Has anyone managed to get the -threshold option of rcc (resource compiler) to work? By default the threshold is quite high and leaves many files uncompressed in the resource, so I usually change it to much lower threshold. It used to work fine on Symbian and Harmattan, it does wo

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
> I usually do this by renaming the qml folder, create a new qml folder, > and create en empty qml file in the folder (otherwise the deploy fails). > > This changes the path to files included in the resource, so they have to > be added again. Good idea... Anyway, let's hope that this gets corre

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
tor.xml. Bolek W dniu 2014-04-23 21:18:04 użytkownik Andrey Kozhevnikov napisał: > did you made "clean" and removed build folder content? > > 24.04.2014 01:16, tw_bolek пишет: > > > > Doesn't work, either :(( The qml folder is still added to rpm. &

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
Yes, I did "clean", deleted the whole build folder, then did "clean" again. That FREAKING folder still gets added > did you made "clean" and removed build folder content? > > 24.04.2014 01:16, tw_bolek пишет: > > > > Doesn't work, e

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
try this: > desktop.files = $${TARGET}.desktop > desktop.path = /usr/share/applications > icon.files = $${TARGET}.png > icon.path = /usr/share/icons/hicolor/86x86/apps > INSTALLS = desktop icon W dniu 2014-04-23 20:39:30 użytkownik tw_bolek napisał: > Doesn't work :(

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
> show your full pro file Hey Andrey, here you are. Nothing special in there. # The name of your app. # NOTICE: name defined in TARGET has a corresponding QML filename. # If name defined in TARGET is changed, following needs to be # done to match new name: # - corre

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
Doesn't work :( INSTALLS -= qml doesn't seem to do anything, and renaming the qml folder results in an RPM build error - files not found Anything else, please? Gosh, it was so easy and obvious in Qt4.8 Thank you, Bolek > you can try to add INSTALLS -= qml somewhere after > sailfishapp

Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
>to a file in data directory (see sailfishapp.h for some documentation). >Can you get on with using QUrl("qrc:/main.qml") ? > On Wednesday 23 of April 2014 09:23:29 tw_bolek wrote: > > Hi guys, > > > > I've put all my qml files into a resour

[SailfishDevel] Path to main qml in resource file - not found whatever I try

2014-04-23 Thread tw_bolek
Hi guys, I've put all my qml files into a resource file and I did NOT include the qml folder in the rpm. PROBLEM: what path should I use in the main.cpp file to point to the main qml file in the resource? SailfishApp::pathTo("qml/main.qml") returns /usr/share/myapp/qml/main.qml - not found

Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread tw_bolek
Hi Aaron, > You are not doing anything wrong. As you discovered items are only visible > when the map zoom level is greater than 3. Between zoom levels 2 and 3 the > opacity is ramped down linearly and is 0 below a zoom level of 2. See > https://bugreports.qt-project.org/browse/QTBUG-25393 for

[SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread tw_bolek
Hi guys, In my application I use a map (QtLocation 5.0, Map, OSM or Nokia plugin) and I need to show certain overlay objects on it. The map itself works fine (both with OSM and Nokia plugin), the problem is that objects over it are shown only if zoomLevel is 3 or more. No matter if I use an I

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-20 Thread tw_bolek
> @Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site

[SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-20 Thread tw_bolek
Hi Aaron, > The Qt Location and Qt Positioning packages are reported > as version 5.1.0 but they include something very close > to what will be in 5.2 upstream. There was no Qt Positioning > library prior to Qt 5.2. I have all the packages you listed installed (5.1.0 versions). I can successful

[SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-19 Thread tw_bolek
P.S. I've just tried to update with zypper, but it shows that QtPositioning 5.1.0 is installed and it is the highest available version, no update is available Does it mean that I cannot use the Coordinate element in a Sailfish OS application for now? Thanks, Bolek

[SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-19 Thread tw_bolek
Chris, Thank you! What a mess... It looks that it must have been moved from QtLocation to QtPositioning only recently. It seems to be only in QtPositioning 5.2. That's why it wasn't recognized despite importing both QtLocation 5.0 and QtPositioning 5.0 Where and how can I install QtP

[SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-19 Thread tw_bolek
Dear all, Before I spend another couple of days on trying to solve this, maybe you can help I'm working on a mappining application. I imported QtLocation 5.0 (had to also install the missing module - installed qt5-qtlocation and qt5-qtdeclarative-import-location) and everything works fine

[SailfishDevel] Problems with the Emulator (possible bugs?)

2013-11-04 Thread tw_bolek
Hello guys, While porting my applications to Sailfish OS, I encountered the following problems with the Emulator. I tried it numerous times and I always end up with the same result: 1) I cannot make onDoubleClick signal work. I have a Rectangle with a MouseArea filling it, and it has an onDou

[SailfishDevel] How to get GPS Location in QML (after installing QtPositioning packages to targets and emulator)

2013-10-30 Thread tw_bolek
Success, at last. Installing qtpositioning packages to both targets (using SDK Control Center), to the SDK (using zypper) and to the emulator (using zypper) finally did the job. It finally works and application can be deployed to the emulator "by copying binaries" and without any modifications

[SailfishDevel] How to get GPS Location in QML (after installing QtPositioning packages to targets and emulator)

2013-10-29 Thread tw_bolek
OK, so I did the following: - Using SDK Control Center I installed to both targets: qt5-qtpositioning, qt5-qtpositioning-devel, qt5-qtdeclarative-import-positioning - using zypper I installed to the Emulator the following: qt5-qtpositioning, qt5-qtdeclarative-import-positioning Did the sync, r

[SailfishDevel] How to get GPS Location in QML

2013-10-29 Thread tw_bolek
Chris, First of all, thank you very much for your help. However is there any valid reason why it is so complicated? Positioning is probably one of the most frequently used functions in smartphone applications. I'd understand that some 3rd party or less important modules are not included by

[SailfishDevel] How to get GPS Location in QML

2013-10-29 Thread tw_bolek
Hi Chris, >> So the import we need is Import QtPositioning 5.0 Unfortunately, "QtPositioning 5.0" gives "QML module not found" and it is underlined in red in QtCreator... Adding QT += positioning to the .pro file does not change anything.There is no trace of "QtPositioning" in sailfishos

[SailfishDevel] How to get GPS Location in QML

2013-10-27 Thread tw_bolek
Hello list,   I am porting my Harmattan QML applications to Sailfish OS.  I simply need to get GPS Location.  In Qt4.8 / QtQuick1.1 it only took importing QtMobility.location and then using PositionSource.    In the latest SailfishOS SDK I tried importing QtLocation 5.0 but it is not found.  Pos