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

2014-04-23 Thread Thomas Perl
On 2014-04-24 00:36, Kim Foder wrote: On Wed, 2014-04-23 at 22:53 +0200, tw_bolek wrote: - manually edit Makefile and remove qml_install and qml_uninstall - in .specs file remove /usr/share/myappand %{_datadir}/%{name}/qml lines I usually do this by renaming the qml folder, create a n

Re: [SailfishDevel] System clipboard and QApplication

2014-04-23 Thread Andrey Kozhevnikov
use QGuiApplication or QCoreApplication. QApplication itself is deprecated. There is also dark side hack for using QML clipboard: TextEdit { id: clipboard visible: false function setClipboard(value) { text = value selectAll() copy()

[SailfishDevel] System clipboard and QApplication

2014-04-23 Thread Samuli Silvius
Hi, I use system clipboard in QML app with small C++ adapter #ifndef QMLCLIPBOARDADAPTER_H #define QMLCLIPBOARDADAPTER_H #include #include #include class QmlClipboardAdapter : public QObject { Q_OBJECT public: explicit QmlClipboardAdapter(QObject *parent = 0) : QObject(paren

[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 Kim Foder
On Wed, 2014-04-23 at 22:53 +0200, tw_bolek wrote: > - manually edit Makefile and remove qml_install and qml_uninstall > - in .specs file remove /usr/share/myappand %{_datadir}/%{name}/qml > lines I usually do this by renaming the qml folder, create a new qml folder, and create en empty

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

2014-04-23 Thread tw_bolek
I've just managed to build rpm without the freakin' qml folder, but in order to do that I additionally needed: - manually edit Makefile and remove qml_install and qml_uninstall - in .specs file remove /usr/share/myappand %{_datadir}/%{name}/qml lines Don't mean to be rude or something

Re: [SailfishDevel] Qt Kits broken on Windows?

2014-04-23 Thread Gabriel Böhme
Oh what I forgot: some additional information, if you want a shortcut on the Windows 8 App Menu with the changed command line option, just create a shortcut on your normal desktop, add the command line option and name the shortcut to your prefered name. Now right click and select the "show at s

Re: [SailfishDevel] Qt Kits broken on Windows?

2014-04-23 Thread Gabriel Böhme
Hi Juha, great news - it's working perfectly. Also all Kit, Compiler paths are set correctly by default. :) And now - as you said - SailfishOS project is also shown in the settings. Thank you very much for this great hint! Gabriel. Am 23.04.2014 10:16, schrieb Juha Kallioinen: On 22.04.201

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, either :(( The qml folder is still added to rpm. > > And

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

2014-04-23 Thread Andrey Kozhevnikov
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. And while building the rpm I get messages about "overriding commands for target 'install_desktop'", "ignoring old commands for target 'insta

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

2014-04-23 Thread tw_bolek
Doesn't work, either :(( The qml folder is still added to rpm. And while building the rpm I get messages about "overriding commands for target 'install_desktop'", "ignoring old commands for target 'install_icon'", etc. > okay, then try this: > desktop.files = $${TARGET}.desktop > deskt

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

2014-04-23 Thread Andrey Kozhevnikov
okay, then 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 24.04.2014 00:56, tw_bolek пишет: show your full pro file Hey Andrey, here you are. Nothing speci

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 Andrey Kozhevnikov
show your full pro file 24.04.2014 00:39, 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 ca

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] Qt Kits broken on Windows?

2014-04-23 Thread Gabriel Böhme
Hi Juha, thanks again, I'll give it a try asap (just at work) and let you know the result. Thanks, Gabriel. 2014-04-23 10:16 GMT+02:00 Juha Kallioinen : > On 22.04.2014 16:55, Gabriel Böhme wrote: > >> Hi Juha, >> >> first of all - thanks for your fast answer! Secondary: it's not a big >> prob

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

2014-04-23 Thread Andrey Kozhevnikov
you can try to add INSTALLS -= qml somewhere after sailfishapp config line, or just rename folder name 23.04.2014 14:19, tw_bolek пишет: Thank you!!! Yes, QUrl("qrc:/myapp/main.qml") does the job!! Now, *PLEASE*, one more help request: what is the best way to EXCLUDE the qml folder from bein

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

2014-04-23 Thread tw_bolek
Thank you!!! Yes, QUrl("qrc:/myapp/main.qml") does the job!! Now, *PLEASE*, one more help request: what is the best way to EXCLUDE the qml folder from being added to the rpm file? Thank you, B. > I don't think you should use SailfishApp::pathTo since it points >to a file in data director

Re: [SailfishDevel] Qt Kits broken on Windows?

2014-04-23 Thread Juha Kallioinen
On 22.04.2014 16:55, Gabriel Böhme wrote: Hi Juha, first of all - thanks for your fast answer! Secondary: it's not a big problem in my case, cause my main system is Linux and there is everything working fine. Also creating another user in Windows, may not be perfect, but also not too much effort

Re: [SailfishDevel] SDK 1404 and translations

2014-04-23 Thread Luca Donaggio
Thanks a lot Juha, I'll give the latest .prf a try! On Tue, Apr 22, 2014 at 4:10 PM, Juha Kallioinen wrote: > On 22.04.2014 16:47, Luca Donaggio wrote: > > Did I hit a bug with the newly added translations support? > > This two lines in .pro (I just changed the lang code in standard .pro > fil

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

2014-04-23 Thread kim
> PROBLEM: what path should I use in the main.cpp file to point to the main qml > file in the resource? > SailfishApp::pathTo("qrc:/qml/main.qml") returns > /usr/share/myapp/qrc/qml/main.qml - not found To load the QML file from resource, you should not use SailfishApp::pathTo, instead use QU

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

2014-04-23 Thread Bartek Taczała
On Wednesday 23 of April 2014 09:23:29 tw_bolek wrote: > 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::pat

[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