Re: [SailfishDevel] QtTouch for Sailfish?

2014-11-21 Thread Wim de Vries
Thanks a lot.
It works fine now!
r
wim
On Friday, November 21, 2014 06:12:59 PM Jonni Rainisto wrote:
 Ah, sorry, I've used non-IDE mb script to build those projects.
 
 I added a build fix in yaml-file and pushed it into repo, and now the raw
 QTouchEvents example should also compile in sailfish IDE, so git pull.
 
 re, Jonni
 
 
 From: devel-boun...@lists.sailfishos.org
 [devel-boun...@lists.sailfishos.org] on behalf of wsvries
 [wsvr...@xs4all.nl] Sent: Friday, November 21, 2014 6:22 PM
 To: Sailfish OS Developers
 Subject: Re: [SailfishDevel] QtTouch for Sailfish?
 
 Thanks,
 
 Jonni Rainisto schreef op 2014-11-21 10:17:
  Here's couple of example projects that I did a while ago (just tested
  that they still work).
  
  Example of raw QTouchEvents events in QML:
  https://gitorious.org/sailfishtouchexample/sailfishtouchexample/
 
 I tried this one but it causes qmake errors and seems to be from Qt4.x
 period I thought it was outdated.
 
  Example of MultiPointTouchArea:
  https://gitorious.org/sailfishtouchexample/multipointtoucharea/
 
 This one seems to be working!
 
  re, Jonni
  
  From: devel-boun...@lists.sailfishos.org
  [devel-boun...@lists.sailfishos.org] on behalf of wsvries
  [wsvr...@xs4all.nl]
  Sent: Friday, November 21, 2014 10:49 AM
  To: devel@lists.sailfishos.org
  Subject: [SailfishDevel] QtTouch for Sailfish?
  
  Hi,
  Until now I have used the standard Silica GUI items with only onClick
  as
  user interaction.
  I now need to support drag, pinch etc.
  My assumption is to use QTouchEvent, but the sailfishtouchexample
  
does not work (and it is quite 'old' as well).
  
  DuckDuckgoing and searching through this list didn't help me further.
  Should I use QTouchEvent, and if so, are their special setting
  requirements, because I am not able to catch any events with
  QTouchEvent.
  Thanks.
  r
  wim
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
 
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] QSystemInfo: No such file or directory

2014-11-12 Thread Wim de Vries
Hi,
I am am trying to build a simple test app using QtMobility 1.2.2. 
(http://doc.qt.digia.com/qtmobility-1.2/quickstart.html)

Building gives:
fatal error: QSystemInfo: No such file or directory


Following Qt instructions I have:
.pro:
CONFIG += mobility
 MOBILITY += systeminfo

C++:
#include QSystemInfo //(1)
QTM_USE_NAMESPACE //(2)

MerSDK has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed.

SailfishOS-i486 has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed.

(btw I cannot find any libs on the target or MerSDK that point to sth like 
mobility)

I am overlooking sth.
Thanks
r
wim


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] QSystemInfo: No such file or directory

2014-11-12 Thread Wim de Vries
Thanks Jonni!
So, I need to look at Mobile APIs 
(http://qt-project.org/doc/qt-5/mobiledevelopment.html), I presume.

r
wim

On Wednesday, November 12, 2014 09:25:21 AM Jonni Rainisto wrote:
 QtMobility is for Qt4 only, so its not avail for Qt5/SailfishOS.
 
 Some of old mobility api's have been ported to Qt5 as Add-on modules:
 https://sailfishos.org/wiki/Porting/Harmattan
 
 re, Jonni
 
 From: devel-boun...@lists.sailfishos.org
 [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries
 [wsvr...@xs4all.nl] Sent: Wednesday, November 12, 2014 11:15 AM
 To: Sailfish OS Developers
 Subject: [SailfishDevel] QSystemInfo: No such file or directory
 
 Hi,
 I am am trying to build a simple test app using QtMobility 1.2.2.
 (http://doc.qt.digia.com/qtmobility-1.2/quickstart.html)
 
 Building gives:
 fatal error: QSystemInfo: No such file or directory
 
 
 Following Qt instructions I have:
 .pro:
 CONFIG += mobility
  MOBILITY += systeminfo
 
 C++:
 #include QSystemInfo //(1)
 QTM_USE_NAMESPACE //(2)
 
 MerSDK has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed.
 
 SailfishOS-i486 has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed.
 
 (btw I cannot find any libs on the target or MerSDK that point to sth like
 mobility)
 
 I am overlooking sth.
 Thanks
 r
 wim
 
 
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] read/write to contacts and calendar

2014-11-12 Thread Wim de Vries
Hi,
I have been searching a lot, went through this mailing list, etc, 
but is still unclear to me how I can 
read/write contacts and calendar in Qt5.
QMobility is obsolete (Qt4.7).
Should I use dbus. If so, is there documentation about it Sailfish services 
etc.?
Thanks.

wim
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Adding other sensors

2014-04-29 Thread Wim de Vries

On 04/28/2014 03:10 AM, Neel wrote:

Hi,

What do you people think about adding sensors like temperature, 
humidity, pressure etc.? I heard that iOS is doing so already with the 
next version of the mobile devices.


I joined the group just a couple of days back so don't know if this 
was something already discussed.


-Neel


Hi Neel,
No USB OTG support.
See discussion No QSerialPort.
I am also stuck with precisely those sensors.

r
wim
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No QSerialPort

2014-03-28 Thread Wim de Vries

On 03/27/2014 03:24 PM, Mikael Hermansson wrote:


Actually support for QtSerialPort could be valid on non Jolla devices. 
For example if we get sailfishos going on BeagleBoard Black? or 
Android devices with USB OTG support...



Certainly a valid point you make!

Like the Nexus 7 does have OTG. And they showed it with Sailfish running 
on it...



But I can understand if Jolla does not prioritize this right now, but 
it should atleast be available as extra repo or in mer-core or 
something?


Regards

Mikael

On Tuesday 25 March 2014 09.09.15 Jonni Rainisto wrote:

 Hi,



 I hope that you are aware that USB OTG is not supported, so you cannot

 attach USB serial devices to Jolla? Or are you building yourself a 
custom


 TOH with USB host support and plan to use i2c serial ports? In that case

 you can just compile QtSerialPort code yourself (I've tested that it

 compiles just fine inside the SDK) and bundle that inside your 
application.


 You might want to consider BT devices and using RFCOMM over that as that

 would be much simpler approach.



 br, Jonni

 

 From: devel-boun...@lists.sailfishos.org

 [devel-boun...@lists.sailfishos.org] on behalf of wsvries

 [wsvr...@xs4all.nl] Sent: Tuesday, March 25, 2014 10:46 AM

 To: devel@lists.sailfishos.org

 Subject: Re: [SailfishDevel] No QSerialPort



 Thanks,



 Alejandro Exojo schreef op 2014-03-24 21:53:

  El Sunday 23 March 2014, Wim de Vries escribió:

  So, it should be available in Sailfish.

 

  No, is available inside Qt, not necessarily provided for Sailfish.



 I thought Sailfish would include all modules of Qt



  Have to recheck the errors, but it looked like the libs and headers

  were

  not there (QtSerialPort/QtSerialPort no such file).

 

  I already told you that you might consider copying the module to your

  application and bundle it. Or see if Qt Serial port is packaged for

  mer, and

  ask for inclusion (or package if is not). Any Qt addon is a safe bet

  since qt-

  project has some serious commitment to ABI/API stability.



 I did this on the notebook Qt5.1 versions of my app. (even a

 boost-serial version before QSerial)

 But doing this with Sailfish is far more complex:

 it has to be available on the Mer VM and the Sailfish VM (and later

 Sailfish device).

 I am not experienced with VMs. The nice thing about using Qt is not

 having to worry about the implementation (and updates) of the modules.

 (The Sailfish (Target) manager is also not able to find the serialport

 module).

 I need all the time for porting to Sailfish, esp. C++GUI2Qml ;-(

 So, support for this module is a must for my app.



  Or just explain what serial port you want to use and for what reason,

  so

  Sailors see the need to do the work themselves... and satisfy my

  curiosity.

  ;-)



 aircraft navigation+more app:

 USB/serial device1:

 -external GPS

 USB/serial device2:

 -air press sensor (altitude)

 -humidity sensor

 -temp sensor

 No rocket science, works flawless on ubuntu notebook.



 r

 wim

 ___

 SailfishOS.org Devel mailing list

 ___

 SailfishOS.org Devel mailing list

--

Skickat från Lenovo Thinkpad X230 running Kubuntu desktop



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No QSerialPort

2014-03-27 Thread Wim de Vries

Thanks Chris and others,
Indeed I need to use an external USB GPS and some other USB sensors.

All communicate via serial ports.
I gave the dmesg output txt as it is on other linux/MeeGo devices to 
show that I am not talking rocket science (simply plug in and use 
ttyUSB0 for (qt)serial communication).

Never heard about OTG, and never had to use it for my app.
Don't know why is there a difference between Sailfisch and MeeGo.

My questions are now:

Can I enable power on the USB port? (escape would be a battery powered 
USB hub)
Will Sailfish automatically set a up a /dev/ttyUSBsomething when the 
device (like an external GPS) is plugged in?


I will rephrase my question about adding the Qtserialport as a more 
general question on howto add Qt modules (also in the final package).



Thanks.
r
wim






On 03/27/2014 07:06 AM, christopher.l...@thurweb.ch wrote:

Hi Philippe

From this and other threads going back to the very early days of this 
mailing list it is very clear that Wim wants to connect an external 
GPS unit to his Jolla via cable (usb / serial) for use in the cockpit 
of a glider.


HtH

Chris


Zitat von Philippe De Swert philippe.desw...@jolla.com:


Hi,

As this is getting very confused and we are mixing connecting devices 
to the Jolla and connecting the Jolla to the pc.


So which one is it?

On 26/03/14 22:11, Wim de Vries wrote:

Thank you guys.
Indeed devel-su works.
I have attached the devices, but the first problem is that the
connection does not supply power (the devices stay dead).


So you connected some device to your Jolla?

As far as I know, a usb connection should always have power, but it 
is a

bit beyond my kowledge. Do I need another plug?


This is not true. All depends on context, what you plug into what etc...

In general if you plug in a device into a USB host (like your average 
USB port on your pc/laptop) you should be able to expect power from it.


In the case of a phone this is usually a USB device, so it expects 
power.


And in the OTG case it gets complicated. Here the device is able to 
switch between host and device mode. And will supply power if it is 
playing host.



On other linux/MeeGo systems there was always power...
and dmesg would give:

[   31.959468] usb 3-2.1.4: new full-speed USB device number 7 using
xhci_hcd
[   31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4,
idProduct=ea60
[   31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge 
Controller

[   31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs
[   31.977450] usb 3-2.1.4: SerialNumber: 0001
[   31.992330] usbcore: registered new interface driver usbserial
[   31.992343] usbcore: registered new interface driver 
usbserial_generic

[   31.992355] USB Serial support registered for generic
[   31.992361] usbserial: USB Serial Driver core
[   31.992942] usbcore: registered new interface driver cp210x
[   31.992955] USB Serial support registered for cp210x
[   31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected
[   32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using
xhci_hcd
[   32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called
with disabled ep 8801debc38c0
[   32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called
with disabled ep 8801debc3880
[   32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0

Use Qserialport on ttyUSB0 and ready you are.


This looks like plugging in a serial device into a PC. Do you want 
your Jolla to expose a serial port? That is definitely possible and 
easy.


Do you want your Jolla to read data from some serial port with a 
serial to USB adapter then you're getting in a very complicated world.


Unless you can explain what you actually want there is little we can 
do to help.


Regards,

Philippe


___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No QSerialPort

2014-03-26 Thread Wim de Vries

On 03/26/2014 07:34 AM, Radek Polak wrote:


On Tuesday, March 25, 2014 12:32:34 PM wsvries wrote:

 Don know about OTG, but my Linux systems always attach a Generic Serial

 Driver to the devices.

 Why is Sailfish acting differently?

No idea how this is in jolla but in openmoko there were options while 
configuring linux kernel how the device will act when connected to PC 
. IIRC it was somewhere in USB/gadget menu. You could choose the 
device to act as USB mass storage, USB ethernet or the USB serial devices.




I just tried it connecting and run dmesg in the terminal.
Need root permission I guess ...
But there is no sudo
Any hints?
Thanks.


So it's probably matter of how the kernel is configured.

Regards

Radek



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No QSerialPort

2014-03-26 Thread Wim de Vries

Thank you guys.
Indeed devel-su works.
I have attached the devices, but the first problem is that the 
connection does not supply power (the devices stay dead).
As far as I know, a usb connection should always have power, but it is a 
bit beyond my kowledge. Do I need another plug?


On other linux/MeeGo systems there was always power...
and dmesg would give:

[   31.959468] usb 3-2.1.4: new full-speed USB device number 7 using xhci_hcd
[   31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4, idProduct=ea60
[   31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[   31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller
[   31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs
[   31.977450] usb 3-2.1.4: SerialNumber: 0001
[   31.992330] usbcore: registered new interface driver usbserial
[   31.992343] usbcore: registered new interface driver usbserial_generic
[   31.992355] USB Serial support registered for generic
[   31.992361] usbserial: USB Serial Driver core
[   31.992942] usbcore: registered new interface driver cp210x
[   31.992955] USB Serial support registered for cp210x
[   31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected
[   32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using xhci_hcd
[   32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with 
disabled ep 8801debc38c0
[   32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with 
disabled ep 8801debc3880
[   32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0

Use Qserialport on ttyUSB0 and ready you are.

Nothing of this the dmesg of Jolla, though :-(

r
wim


On 03/26/2014 12:34 PM, Jozef Mlich wrote:

On Wed, 2014-03-26 at 12:07 +0100, Wim de Vries wrote:

On 03/26/2014 07:34 AM, Radek Polak wrote:


On Tuesday, March 25, 2014 12:32:34 PM wsvries wrote:

  


Don know about OTG, but my Linux systems always attach a Generic

Serial


Driver to the devices.
Why is Sailfish acting differently?
  


No idea how this is in jolla but in openmoko there were options
while configuring linux kernel how the device will act when
connected to PC . IIRC it was somewhere in USB/gadget menu. You
could choose the device to act as USB mass storage, USB ethernet or
the USB serial devices.


I just tried it connecting and run dmesg in the terminal.
Need root permission I guess ...
But there is no sudo
Any hints?
Thanks.

As far a I know, mer/jolla have devel-su command which gives you root
permissions.




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No QSerialPort

2014-03-24 Thread Wim de Vries

The error in (qmake):
:-1: error: Unknown module(s) in QT: serialport
So, my guess is that there is no qserial lib.
Any Sailfish person that can confirm/reject?
Thanks.


pro:
QT += serialport
.h:
#include QtSerialPort/QtSerialPort




On 03/23/2014 10:35 PM, Wim de Vries wrote:

Thanks,
I thought it came in with 5.2.
So, it should be available in Sailfish.
Have to recheck the errors, but it looked like the libs and headers 
were not there (QtSerialPort/QtSerialPort no such file).


On 03/19/2014 09:39 PM, Alejandro Exojo wrote:

El Wednesday 19 March 2014, Wim de Vries escribió:

My app cannot work without Q(t)SerialPort.
Is there a plan to upgrade to Qt5.2, or a way to add the Qt5.1 (beta)
QtSerial libs and headers?

I use QtSerialPort daily, so this mail puzzles me a bit:

On your Jolla?


- Why 5.2 is involved? QtSerialPort is in 5.1 too. And why beta?? 
The 5.1

branch is on 5.1.2, and 5.2 in 5.2.1.
- Why do you want QtSerialPort? Want to plug a CP2102 or similar? 
Only serial

that I see on a quick check seems to be /dev/ttyHSL*, and some searching
reveals is some Qualcomm UART. Is this for the-other-half? That seems 
to speak

I2C according to the docs, so no serial port, isn't it?

There is more to live than Jolla sensors: external sensors!
- QtSerialPort is quite small (just two classes, IIRC). Is the 
classic example
where copying it to your project might be the best approach. 
Specially if its

license is open source.


r
wim
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No QSerialPort

2014-03-23 Thread Wim de Vries

Thanks,
I thought it came in with 5.2.
So, it should be available in Sailfish.
Have to recheck the errors, but it looked like the libs and headers were 
not there (QtSerialPort/QtSerialPort no such file).


On 03/19/2014 09:39 PM, Alejandro Exojo wrote:

El Wednesday 19 March 2014, Wim de Vries escribió:

My app cannot work without Q(t)SerialPort.
Is there a plan to upgrade to Qt5.2, or a way to add the Qt5.1 (beta)
QtSerial libs and headers?

I use QtSerialPort daily, so this mail puzzles me a bit:

On your Jolla?


- Why 5.2 is involved? QtSerialPort is in 5.1 too. And why beta?? The 5.1
branch is on 5.1.2, and 5.2 in 5.2.1.
- Why do you want QtSerialPort? Want to plug a CP2102 or similar? Only serial
that I see on a quick check seems to be /dev/ttyHSL*, and some searching
reveals is some Qualcomm UART. Is this for the-other-half? That seems to speak
I2C according to the docs, so no serial port, isn't it?

There is more to live than Jolla sensors: external sensors!

- QtSerialPort is quite small (just two classes, IIRC). Is the classic example
where copying it to your project might be the best approach. Specially if its
license is open source.


r
wim
___
SailfishOS.org Devel mailing list


[SailfishDevel] No QSerialPort

2014-03-19 Thread Wim de Vries

Hi all,
My app cannot work without Q(t)SerialPort.
Is there a plan to upgrade to Qt5.2, or a way to add the Qt5.1 (beta) 
QtSerial libs and headers?

Thanks.



___
SailfishOS.org Devel mailing list


[SailfishDevel] (USB) access to sdcard?

2014-01-25 Thread Wim de Vries

Hi,
Currently the SDCARD is mounted at /run/usr/10/media/sdcard.
Can I hard-code this into my app, or will it change in future?

Also, I want my users to be able to put data (aviation maps+more) on the 
SD card via a USB connection.

Currently there is no access via USB (just the home is available).

thanks.
r
wim

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (USB) access to sdcard?

2014-01-25 Thread Wim de Vries

Thanks.

On 01/25/2014 06:18 PM, Chris Walker wrote:

On Sat, 25 Jan 2014 14:35:30 +0100
Wim de Vries wsvr...@xs4all.nl wrote:


Hi,
Currently the SDCARD is mounted at /run/usr/10/media/sdcard.

I think you mean /run/user/.. as /run/usr doesn't exist and I don't
think you'd want to be writing to /usr even if it did ;-)

Yes, you are right (usr is so common typing)
Can't have my app/user do root stuff.
I can do create a softlink to the sdcard (a la ln -s 
/run/usr/10/media/sdcard/maps sdcardmaps).

Still not sure if that would create problems for the overall system...

r
wim





Can I hard-code this into my app, or will it change in future?

Also, I want my users to be able to put data (aviation maps+more) on
the SD card via a USB connection.

Can't you (as root) unmount the sdcard from the above location, as user
create a folder /home/nemo/sdcard and then mount /dev/mmcblk1p1 to
there?

How about an entry in fstab to fix that mount permanently?

Run blkid to give you the UUID of the sdcard so that even if it's
swapped out, it will still remount in the same place.

This is what I get when I run that command (I have a 16GB SD card in my
phone which came straight from my N900)
/dev/mmcblk1p1: UUID=B7C1-AD43 TYPE=vfat

I can't help you with the USB stuff.
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] OpenGL Under Selica QML

2014-01-24 Thread Wim de Vries

Hi David,
The example that I use is also QQuickItem derived.
Indeed I'll take your method for placement and resizing.
Also necessary for landscape/portrait changes.
thanks.

r
wim




On 01/23/2014 10:38 AM, David Greaves wrote:

On 23/01/14 09:28, Wim de Vries wrote:

On 01/22/2014 05:34 PM, David Greaves wrote:

Fantastic - I just verified that it works here too.

How are you getting the GL into the QML scene?

 From one of the GL examples (Squircle in c++):
glViewport() determining the position (not yet QML) in Page.

main c++:
qmlRegisterTypeSquircle(OpenGLUnderQML, 1, 0, Squircle);

QML:
import OpenGLUnderQML 1.0
Squircle {
 SequentialAnimation on t {
 NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
 NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }
 loops: Animation.Infinite
 running: true
 }

Yep - I started there too :)


I created a GLItem which allows property connections and sizing so I know where
to draw in the window. I then inherit from this item and render into the
viewport it sets up.

I will have a look at to.

This is how I map the viewport to the Item location:

class GLItem : public QQuickItem, protected QOpenGLFunctions
...
void GLItem::paint()
{
 if (!m_program) {
 m_program = new QOpenGLShaderProgram();
 connect(window()-openglContext(), SIGNAL(aboutToBeDestroyed()),
 this, SLOT(cleanup()), Qt::DirectConnection);
 initializeOpenGLFunctions();
 this-prep(); // Do any one-off setup that needs the glcontext to be
setup (eg the shader loading)
 }
 QRectF vpr = mapRectToScene(QRectF(0.0,0.0,width(),height()));
 glViewport( vpr.x(), (window()-height() -( vpr.y() + vpr.height())),
 vpr.width(), vpr.height());

...

David




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] OpenGL Under Selica QML

2014-01-23 Thread Wim de Vries

On 01/22/2014 05:34 PM, David Greaves wrote:

Fantastic - I just verified that it works here too.

How are you getting the GL into the QML scene?

From one of the GL examples (Squircle in c++):
glViewport() determining the position (not yet QML) in Page.

main c++:
qmlRegisterTypeSquircle(OpenGLUnderQML, 1, 0, Squircle);

QML:
import OpenGLUnderQML 1.0
Squircle {
SequentialAnimation on t {
NumberAnimation { to: 1; duration: 2500; easing.type: 
Easing.InQuad }
NumberAnimation { to: 0; duration: 2500; easing.type: 
Easing.OutQuad }

loops: Animation.Infinite
running: true
}




I created a GLItem which allows property connections and sizing so I know where
to draw in the window. I then inherit from this item and render into the
viewport it sets up.

I will have a look at to.

Thanks.
r
wim


David

On 22/01/14 14:30, wsvries wrote:

I got it working!

ApplicationWindow
{
_backgroundVisible : false

...
}

This way the ApplicationWindow (background) doesn't  overpaint the OpenGL.

Silica items now nicely and transparantly overlap the OpenGL.

r
wim


wsvries schreef op 2014-01-22 14:50:

Thanks,
I'll stick to standard QML then.
r
wim

David Greaves schreef op 2014-01-22 12:04:

On 22/01/14 10:59, David Greaves wrote:

The other option is to render to an FBO and then assign that to a QML item

http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html#mixing-scene-graph-and-opengl


AFAIUI it's slightly lower performance but it does give you total control over
layering your GLES window into your QML.

and

http://qt-project.org/doc/qt-5/qtquick-scenegraph-textureinthread-example.html
___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


[SailfishDevel] OpenGL Under Selica QML

2014-01-22 Thread Wim de Vries

Hi,
Some time ago Thomas Perl was so kind to supply us with an example 
'OpenGL Over QML'.

It uses the afterRendering() signal.
I am trying to use the beforeRendering() signal (including 
setClearBeforeRendering(false)), but I get no OpenGL output.

It works with standard (non-Selica) QML.
I have the strong feeling that this is impossible because the 
ApplicationWindow, Page or other Silica items do paint the whole screen, 
overwriting the OpenGL area.

Am I right?
If yes, is there a way to get around it?
Basically I want the (Silica) QML painted (partly transparent) over the 
OpenGL.

Thanks.

r
wim
___
SailfishOS.org Devel mailing list


[SailfishDevel] harbour rejects user files in a Documents subfolder?

2014-01-22 Thread Wim de Vries

Hi,
My checklists app got rejected by harbour again because of user data 
files :-( .
My app creates a checklistdata folder under Documents (one 
default/example data file is copied there after first start up).

Harbour doesn't want that:

File creation in /home/nemo/Documents/ is not allowed, if these are 
not user documents. Files should be stored in $XDG_DATA_HOME.


$XDG_DATA_HOME is silly for users:
my users must be able to copy there PC created checklist files (plain 
text) via USB to their Jolla device.
$XDG_DATA_HOME is hidden, and even if it wasn't, it is very contra 
intuitive place for normal user to find.

All users know the Documents folder.
Any harbour people, having suggestions (a $XDG_ folder would render the 
app completely useless)?

Thanks
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] xdg folder stuff: howto? more info

2014-01-09 Thread Wim de Vries

I am not sure, but maybe I caused the misunderstanding.
My app (code) uses QStandardPaths, but was rejected.
Harbour stated that I should use the XDG- based rules.
So, I thought: what is wrong with QStandardPaths?
Now -thanks to the comments up here- I understand that harbour was 
talking about the .yaml/rpm stuff, not the directory references in the 
app itself.


r
wim

On 01/09/2014 03:14 AM, Robin Burchell wrote:

On 09 Jan 2014, at 00:37, Thomas Tanghus tho...@tanghus.net wrote:


On Wednesday 08 January 2014 09:22 Jonni Rainisto wrote:

IMHO applications that use QStandardPaths should be always accepted, there
must be something wrong with the process or rules if that is the cause for
rejection. If QStandardPaths points to wrong directory then its a bug which
should be fixed.

Can we consider this as a (semi-)official answer? I would also say that harbour
applications should not be rejected because of a (seemingly) Qt-bug that should
be easily patchable i.e. that QStandardPaths.data doesn't reflect XDG-* 
standards.

I’m not sure I understand what bug you’re talking about. See the source:
https://qt.gitorious.org/qt/qtbase/source/f0f6c1d0edd8c71530b8e47b61d70aa55a0c6a0c:src/corelib/io/qstandardpaths_unix.cpp

Can you please provide a demonstration?

BR,
Robin
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Wim de Vries

Thanks.
On 01/09/2014 09:36 AM, Luciano Montanaro wrote:

Maybe make the application download the map on the first run?

mm..
I cannot afford time/money for a server + support.
Only support for the app.
On the long term, users themselves may set up sth to share maps.


But you must be able to provide the maps on a server in this case.

The additional benefit is that the user can skip downloading the data
if he knows it will not use it.

Never the case in first use. Only after some time of usage.


Luciano

On Thu, Jan 9, 2014 at 9:05 AM, Wim de Vries wsvr...@xs4all.nl wrote:

Hi,
I am converting my aircraft navigation app to Sailfish.
It comes (default) with OpenStreet based maps + 3D data files of Western
Europe (in RPM).
Most users will use this map, but some users may use their home made maps
(generated by a PC application).
In the latter case, the users will delete this W-Europe map (it takes up
quite some disk space).
So far so good, but the installation/RPM is a problem:

Harbour says that I should install the app data (very much bytes for the
W-Eu map) in /usr/share/$NAME and in the first run of the app, copy them to
$XDG_CONFIG_HOME/$NAME.
But  now I am stuck with an enormous amount of (useless) data in
/usr/share/$NAME that cannot be removed.

Any suggestions?
Thanks.
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Wim de Vries

Thanks.
On 01/09/2014 09:40 AM, Jonni Rainisto wrote:

IMHO (Only my personal view, not official answer).

I would not copy readonly data to $XDG_CONFIG_HOME/$NAME, I would only copy the 
readwrite parts off from usr/share/appname.
And I would define the map data chmod 666 in spec so I could programitically 
remove the data.

I like your idea.
Hardly any experience with RPM though. I'll have to dive into that.

Sailfish people: please confirm if this is an allowed option.
Thanks.

R
wim




From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Wim de Vries [wsvr...@xs4all.nl]
Sent: Thursday, January 09, 2014 10:05 AM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] How to install user (controlled) data files for my 
app avoiding /usr/share

Hi,
I am converting my aircraft navigation app to Sailfish.
It comes (default) with OpenStreet based maps + 3D data files of Western
Europe (in RPM).
Most users will use this map, but some users may use their home made
maps (generated by a PC application).
In the latter case, the users will delete this W-Europe map (it takes up
quite some disk space).
So far so good, but the installation/RPM is a problem:

Harbour says that I should install the app data (very much bytes for the
W-Eu map) in /usr/share/$NAME and in the first run of the app, copy them
to $XDG_CONFIG_HOME/$NAME.
But  now I am stuck with an enormous amount of (useless) data in
/usr/share/$NAME that cannot be removed.

Any suggestions?
Thanks.
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Listing of to use macros in .yaml?

2014-01-09 Thread Wim de Vries

OK.Thanks.
On 01/09/2014 12:05 PM, Ruslan Nigmatullin wrote:

Hello!

SailfishOS is mostly like Fedora, so their rpm specs have compatible macroses: 
https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s07.html

09.01.2014, 01:16, Wim de Vries wsvr...@xs4all.nl:

Hi,
The documentation insists on using macros when you refer to paths (eg
%{_bindir} instead of /usr/bin).
Still, I cannot find a listing of those macros (they seem to differ
linux distro).
Thanks.

___
SailfishOS.org Devel mailing list

--
Ruslan Nigmatullin
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Wim de Vries

Thanks.
Maybe that's the solution.
The default map would then be in rpm (in usr/share/).
Deleting would require a rpm uninstall, while removing user maps (in 
home/) would be done from within the app. Might be a bit confusing, 
but it is the only solution.

r
wim

On 01/09/2014 01:17 PM, winfried.do...@xmsnet.nl wrote:

For other Linux distributions, the normal solution would be to package the
maps in a separate rpm file. Then if the user installs his/her own maps,
he can remove the standard maps package. Maybe you can do this as well?

Winfried


Thanks.
On 01/09/2014 09:40 AM, Jonni Rainisto wrote:

IMHO (Only my personal view, not official answer).

I would not copy readonly data to $XDG_CONFIG_HOME/$NAME, I would only
copy the readwrite parts off from usr/share/appname.
And I would define the map data chmod 666 in spec so I could
programitically remove the data.

I like your idea.
Hardly any experience with RPM though. I'll have to dive into that.

Sailfish people: please confirm if this is an allowed option.
Thanks.

R
wim



From: devel-boun...@lists.sailfishos.org
[devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries
[wsvr...@xs4all.nl]
Sent: Thursday, January 09, 2014 10:05 AM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] How to install user (controlled) data files for
my app avoiding /usr/share

Hi,
I am converting my aircraft navigation app to Sailfish.
It comes (default) with OpenStreet based maps + 3D data files of Western
Europe (in RPM).
Most users will use this map, but some users may use their home made
maps (generated by a PC application).
In the latter case, the users will delete this W-Europe map (it takes up
quite some disk space).
So far so good, but the installation/RPM is a problem:

Harbour says that I should install the app data (very much bytes for the
W-Eu map) in /usr/share/$NAME and in the first run of the app, copy them
to $XDG_CONFIG_HOME/$NAME.
But  now I am stuck with an enormous amount of (useless) data in
/usr/share/$NAME that cannot be removed.

Any suggestions?
Thanks.
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Wim de Vries

Thanks Thomas for the explanation.
Indeed, I think I will stick to a minimal persistent data set  to enable 
the user to play with.

For the open/free data I will have a look at SF.
The maps created by the user (with an accompanying  desktop application) 
will have to be copied to sailfish via USB to a dir in $XDG_DATA_HOME.
The good thing is that I am not in a hurry, don't expect many pilots 
with a Jolla for now :-)

And, in the long term ... A pilot Other Half!

r
wim

On 01/09/2014 01:50 PM, Thomas Perl wrote:

Hi,

On 09 Jan 2014, at 09:05, Wim de Vries wsvr...@xs4all.nl wrote:

I am converting my aircraft navigation app to Sailfish.
It comes (default) with OpenStreet based maps + 3D data files of Western Europe 
(in RPM).
Most users will use this map, but some users may use their home made maps 
(generated by a PC application).
In the latter case, the users will delete this W-Europe map (it takes up quite 
some disk space).
So far so good, but the installation/RPM is a problem:

Harbour says that I should install the app data (very much bytes for the W-Eu 
map) in /usr/share/$NAME and in the first run of the app, copy them to 
$XDG_CONFIG_HOME/$NAME.
But  now I am stuck with an enormous amount of (useless) data in 
/usr/share/$NAME that cannot be removed.

Any suggestions?

The “copy stuff to the home directory of the user” is only relevant if you want 
to e.g. ship default config files and install them to the config directory on 
first start (the suggestion was put in place when somebody wanted to install 
files to /home/nemo/.config/ in the RPM file, something that will also lead to 
unhappy people in case of package upgrades, and that was suggested as best 
practice if the code can’t deal with missing config files - which it ideally 
should ;)). For big files, obviously it doesn’t make sense to copy them to 
$XDG_CONFIG_HOME/$NAME. Instead, what you could do is install them to 
/usr/share/$NAME, and then just have a flag in $XDG_CONFIG_HOME/$NAME if the 
user wants to disable the system-wide data (of course, this doesn’t free the 
data, but in case hiding/not loading the data will improve e.g. the startup 
time or user experience, it could still make sense).

For data that the package manager installs, only the package manager should 
modify/remove the data. Making /usr/share/$NAME world-writable is not allowed 
per harbour rules, and for good reason - if the user would e.g. delete the 
pre-installed maps there, they would re-appear every time the app is upgraded, 
or if the user modifies the data there (or the app), these changes would be 
overwritten by a package upgrade.

Also, another thing: Having big pre-installed data in the app packaged (=inside 
the RPM) is bad, as it will require this data to be re-downloaded every time 
the package is installed, and (during installation time) will take up the space 
for the - temporarily downloaded - RPM and the extracted data (you will need ~ 
400 MB free to extract a 200 MB RPM file with 200 MB of data inside, not taking 
into account compression and stuff).

So, you have an app plus some big data that probably doesn’t change as often as 
the code does (either it changes more often or it doesn’t change as often - the 
data doesn’t usually have anything to do with code updates to your app except 
if you happen to do some data format changes).

There are basically two options:
  1. Don’t ship any data with your application
 - Small download and upgrade size, no wasted space
 - For the “pre-packaged” maps, you could download them in the app on first 
start
  2. Ship data with your application, and don’t let the user delete it
 - No need to host any data packages
 - Package upgrades and first download will be unnecessarily large

I’d suggest you do variant 1: Users who have a good connection might not 
want/need to download much data upfront, they might just want to try out your 
app (=easier when it’s a smaller download) and only after they’ve tried and 
liked your app, they might go into the in-app menu and select something like 
“download pre-packaged maps”. As your data seems to be open in some sense, you 
might be able to either download it directly from the OSM servers, or you 
package it up and put it up on some hosting service (e.g. sourceforge.net works 
well for hosting such data downloads, including mirroring - but any other 
service or your own web server would work just as well).

If you really do want to ship the data with your package, it should not be 
possible to delete it, only possibly hide it from the UI of the application via 
a setting that is stored in $XDG_CONFIG_HOME/$NAME. By the way, all the data 
that you download should go into $XDG_DATA_HOME, not $XDG_CONFIG_HOME (as the 
name suggests — this will allow backup and cleanup applications in the future 
to e.g. backup / clean only the data directory (keeping the config in place) or 
only deleting only the data). For data that you basically cache from a web

Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Wim de Vries

On 01/09/2014 11:56 PM, Martin Kolman wrote:

9.1.2014 23:27, Wim de Vries:

Thanks Thomas for the explanation.
Indeed, I think I will stick to a minimal persistent data set to 
enable the user to play with.

For the open/free data I will have a look at SF.
The maps created by the user (with an accompanying  desktop 
application) will have to be copied to sailfish via USB to a dir in 
$XDG_DATA_HOME.
The good thing is that I am not in a hurry, don't expect many pilots 
with a Jolla for now :-)

And, in the long term ... A pilot Other Half!
Well, a TOH with barometer  a variometer application might be a nice 
combo for glider pilots. :)

Could be possible, but my current sensor is to big.





r
wim

On 01/09/2014 01:50 PM, Thomas Perl wrote:

Hi,

On 09 Jan 2014, at 09:05, Wim de Vries wsvr...@xs4all.nl wrote:

I am converting my aircraft navigation app to Sailfish.
It comes (default) with OpenStreet based maps + 3D data files of 
Western Europe (in RPM).
Most users will use this map, but some users may use their home 
made maps (generated by a PC application).
In the latter case, the users will delete this W-Europe map (it 
takes up quite some disk space).

So far so good, but the installation/RPM is a problem:

Harbour says that I should install the app data (very much bytes 
for the W-Eu map) in /usr/share/$NAME and in the first run of the 
app, copy them to $XDG_CONFIG_HOME/$NAME.
But  now I am stuck with an enormous amount of (useless) data in 
/usr/share/$NAME that cannot be removed.


Any suggestions?
The “copy stuff to the home directory of the user” is only relevant 
if you want to e.g. ship default config files and install them to 
the config directory on first start (the suggestion was put in place 
when somebody wanted to install files to /home/nemo/.config/ in the 
RPM file, something that will also lead to unhappy people in case of 
package upgrades, and that was suggested as best practice if the 
code can’t deal with missing config files - which it ideally should 
;)). For big files, obviously it doesn’t make sense to copy them to 
$XDG_CONFIG_HOME/$NAME. Instead, what you could do is install them 
to /usr/share/$NAME, and then just have a flag in 
$XDG_CONFIG_HOME/$NAME if the user wants to disable the system-wide 
data (of course, this doesn’t free the data, but in case hiding/not 
loading the data will improve e.g. the startup time or user 
experience, it could still make sense).


For data that the package manager installs, only the package manager 
should modify/remove the data. Making /usr/share/$NAME 
world-writable is not allowed per harbour rules, and for good reason 
- if the user would e.g. delete the pre-installed maps there, they 
would re-appear every time the app is upgraded, or if the user 
modifies the data there (or the app), these changes would be 
overwritten by a package upgrade.


Also, another thing: Having big pre-installed data in the app 
packaged (=inside the RPM) is bad, as it will require this data to 
be re-downloaded every time the package is installed, and (during 
installation time) will take up the space for the - temporarily 
downloaded - RPM and the extracted data (you will need ~ 400 MB free 
to extract a 200 MB RPM file with 200 MB of data inside, not taking 
into account compression and stuff).


So, you have an app plus some big data that probably doesn’t change 
as often as the code does (either it changes more often or it 
doesn’t change as often - the data doesn’t usually have anything to 
do with code updates to your app except if you happen to do some 
data format changes).


There are basically two options:
  1. Don’t ship any data with your application
 - Small download and upgrade size, no wasted space
 - For the “pre-packaged” maps, you could download them in the 
app on first start

  2. Ship data with your application, and don’t let the user delete it
 - No need to host any data packages
 - Package upgrades and first download will be unnecessarily large

I’d suggest you do variant 1: Users who have a good connection might 
not want/need to download much data upfront, they might just want to 
try out your app (=easier when it’s a smaller download) and only 
after they’ve tried and liked your app, they might go into the 
in-app menu and select something like “download pre-packaged maps”. 
As your data seems to be open in some sense, you might be able to 
either download it directly from the OSM servers, or you package it 
up and put it up on some hosting service (e.g. sourceforge.net works 
well for hosting such data downloads, including mirroring - but any 
other service or your own web server would work just as well).


If you really do want to ship the data with your package, it should 
not be possible to delete it, only possibly hide it from the UI of 
the application via a setting that is stored in 
$XDG_CONFIG_HOME/$NAME. By the way, all the data that you download 
should go into $XDG_DATA_HOME, not $XDG_CONFIG_HOME

Re: [SailfishDevel] Qt Creator Yaml file editor loses new entries

2014-01-08 Thread Wim de Vries

Indeed, as a novice with rpm I always open .yaml it in kate.


On 01/08/2014 06:06 PM, christopher.l...@thurweb.ch wrote:
seconded: So far I have not seen the benefit of a dedicated editor: It 
does not make it any easier for the novice to understand what the 
entries are for, so why this dedicated Editor?


mfg

Chris

Zitat von Luciano Montanaro mikel...@gmail.com:


But anyway, it changes it in a way that fails the validator I
would prefer if it left it alone after creation.

Also, I find the custom form editor is an anti-feature...
 * it gets in the way as soon as the .yaml file gets complex
 * it has fixed-size text box, and to undo the changes one has to
remove lines one by one

I would prefer a .yaml syntax highlighter, with the possibility to
highlight syntax errors.
But even without highlighting, I would rather use the normal text
editor component... as it is, if I have to modify it I have to open
the yaml file with vim (I have added a few variables to feed the
VERSION to the qmake command line to my project).

Regards,
Luciano



On Tue, Jan 7, 2014 at 9:41 PM, Artem Marchenko
artem.marche...@gmail.com wrote:
Technically I think it's a feature, QtC plugin just doesn't expect 
.yaml to

be changed in a way you changed it :)

Anyway, someone from Jolla team already told they were going to 
disable the
.yaml autoupdate or at least make it optional. Meanwhile version 
control is
your friend. Or as I also do it, I keep .yaml open in the text 
editor, so I

can Undo changes there.

/Artem


On Mon, Jan 6, 2014 at 9:39 PM, Sven Putze 
sailfish...@hardcodes.de wrote:


Oh, it's a bug?!


https://together.jolla.com/question/10996/bug-qt-creator-reorders-yaml-file-for-no-apparent-reason/ 



BR.
Sven
On 06.01.2014, at 00:39, Thomas Tanghus tho...@tanghus.net wrote:

 On Sunday 05 January 2014 14:12 Putze Sven wrote:
 IMHO the .yaml file is (partly) rewritten if something changes 
in your

 .pro
 file,

 Which is good to start with, but f* annoying in the long run,
 firstly
 because it's writing full paths as in /usr/share instead of 
%{_datadir}

 and
 insists in making those corrections every time you touch the .pro,
 secondly
 because it makes any kind of Continuous Integration close to 
impossible

 if you
 have the IDE open when it's is running.
 Causes a loop between SDK IDE noticing .pro has been **touched**, 
not

 edited,
 and then updating the .yaml, ending up in git conflicts.
 *Sigh* - I spend the better part of last night trying to figure out
 where my
 very simple scripts went wrong, until I found out it was the 
freaking

 SDK that
 was messing with me :D

 Sorry, kinda OT but otherwise SDK related ;)

 --
 Med venlig hilsen / Best Regards

 Thomas Tanghus
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list





--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem

___
SailfishOS.org Devel mailing list




--
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


[SailfishDevel] xdg folder stuff: howto?

2014-01-07 Thread Wim de Vries

Hi,
Can someone please explain how the XDG folders work.
These env vars seem not be set when I try to read the values with 
QProcessEnvironment.

So how can I read/write to those folders (C++)?
And how to access them from QML?
The documention/FAQ only gives a very general spec.
I must be missing sth.
Thanks.

___
SailfishOS.org Devel mailing list


[SailfishDevel] Where does my locally installed app go?

2013-12-22 Thread Wim de Vries

Hi,
On Jolla phone.
I did a local install (pkcon install-local checklists-1.0.1-1.i586.rpm).
No errors. But I cannot find any trace of app anywhere.
Terminal log:
[nemo@localhost ~]$ pkcon install-local checklists-1.0.1-1.i586.rpm
Installing files [=]
Waiting in queue [=]
Starting [=]
Resolving dependencies [=]
Installing packages [=]
Installing files [=]
Waiting in queue [=]
Waiting for authentication [=]
Waiting in queue [=]
Starting [=]
Resolving dependencies [=]
Installing packages   [=]

Thanks.
r
wim

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Where does my locally installed app go?

2013-12-22 Thread Wim de Vries

thx, but
qpm is not on Jolla:

-bash: qpm: No such file or directory

and find does not find my app files either

BTW: same for deployment via SDK (via WLAN)

thanks
r
wim

On 12/22/2013 03:03 PM, David Greaves wrote:

On 22/12/13 13:43, Wim de Vries wrote:

Hi,
On Jolla phone.
I did a local install (pkcon install-local checklists-1.0.1-1.i586.rpm).
No errors. But I cannot find any trace of app anywhere.

Any rpm installs to standard locations

  qpm -ql checklists

will tell you more

David

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Where does my locally installed app go?

2013-12-22 Thread Wim de Vries

rpm says it is not installed.
verbose output during install:

[nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.i586.rpm
15:49:45PackageKit  Verbose debugging enabled (on console 1)
15:49:45PackageKit  notify::connected
15:49:45PackageKit  filter=(null), filters=0
15:49:45PackageKit  adding state 0x403fdc00
15:49:45PackageKit  doing install files
15:49:45PackageKit  role now install-files
Installing files [=]
Waiting in queue  [ ] (0%)  
15:49:45PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies [=]
Installing packages   [  == ] 15:49:46
PackageKit  role now install-files

[=]
Installing files  [ ] (0%)  
15:49:46PackageKit  emit transaction-list-changed
  [   == ] 15:49:46
PackageKit  skipping as the same

[=]
Waiting in queue [=]
Waiting for authentication [=]
Waiting in queue  [== ] 15:49:46
PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies [=]
Installing packages   [   == ] 15:49:46
PackageKit  remove state 0x403fdc00

  [=]












On 12/22/2013 03:03 PM, David Greaves wrote:

On 22/12/13 13:43, Wim de Vries wrote:

Hi,
On Jolla phone.
I did a local install (pkcon install-local checklists-1.0.1-1.i586.rpm).
No errors. But I cannot find any trace of app anywhere.

Any rpm installs to standard locations

  qpm -ql checklists

will tell you more

David

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list

[SailfishDevel] missing libc.so.6 on Jolla (again)

2013-12-22 Thread Wim de Vries

Hi,
After local install I get:

[nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.armv7hl.rpm
17:23:20PackageKit  Verbose debugging enabled (on console 1)
17:23:20PackageKit  notify::connected
17:23:20PackageKit  notify::connected
17:23:20PackageKit  filter=(null), filters=0
17:23:20PackageKit  adding state 0x41c93400
17:23:20PackageKit  doing install files
17:23:20PackageKit  role now install-files
Installing files [=]
Waiting in queue  [ ] (0%) 
17:23:20PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies[  == ] 17:23:21
PackageKit  remove state 0x41c93400

[=]
Fatal error: nothing provides libc.so.6(GLIBC_2.0) needed by 
checklists-1.0.1-1.armv7hl


All '#include's are Qt header files, no other.
Seems to be a topic before, but I cannot see how it was solved.
Thanks.

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Wim de Vries
Not sure if correct, but I use view-close() (through a QML2C++ call) 
and all ends.

In your case possibly:

QObject::connect(view, SIGNAL(destroyed()), view,

SLOT(close()));



On 12/22/2013 05:45 PM, Mikael Hermansson wrote:


Changed to:

QObject::connect(app,SIGNAL(lastWindowClosed()),app,SLOT(quit()));

still it does not leave mainloop

On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:

 use lastWindowClosed signal instead of destroyed

 and

 int retval = app-exec();

 delete x;

 delete y;

 return retval;



 On 22.12.2013 21:22, Mikael Hermansson wrote:

  Cant figure out what I am doing wrong but it seems mainloop does not

  shutdown when using QQuickView like below.

 

  And I can't figure out what signal I should conect to? Or more 
exact what


  signal is sent from sailfish when app is closed?

 

  AFAIK SailfishApp is just a subclass of QQuickView but there is no 
public


  API what signals it implements/overrides?

 

  [code]

 

  QGuiApplication *app = SailfishApp::application(argc, argv);

 

  UDPManager *udp = new UDPManager();

  QQuickView *view = SailfishApp::createView();

 

  /* FIXME: THIS DOES NOT WORK */

 

  QObject::connect(view, SIGNAL(destroyed()), view,

  SLOT(QGuiApplication::quit()));

 

  view-rootContext()-setContextProperty(version, QString(VERSION));

  view-rootContext()-setContextProperty(udp, udp);

  view-setSource(QString(/usr/share/harbour-push2sail/qml/push2sail.q

  ml));

  view-showFullScreen();

  app-exec();

  delete app;

  delete udp;

 

  [/code]

 

 

 

 

 

  ___

  SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Wim de Vries

On 12/22/2013 06:03 PM, Wim de Vries wrote:
Not sure if correct, but I use view-close() (through a QML2C++ call) 
and all ends.

In your case possibly:

QObject::connect(view, SIGNAL(destroyed()), view,

SLOT(close()));


Just found out: the above works on the emulator; not on Jolla.



On 12/22/2013 05:45 PM, Mikael Hermansson wrote:


Changed to:

QObject::connect(app,SIGNAL(lastWindowClosed()),app,SLOT(quit()));

still it does not leave mainloop

On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:

 use lastWindowClosed signal instead of destroyed

 and

 int retval = app-exec();

 delete x;

 delete y;

 return retval;



 On 22.12.2013 21:22, Mikael Hermansson wrote:

  Cant figure out what I am doing wrong but it seems mainloop does not

  shutdown when using QQuickView like below.

 

  And I can't figure out what signal I should conect to? Or more 
exact what


  signal is sent from sailfish when app is closed?

 

  AFAIK SailfishApp is just a subclass of QQuickView but there is 
no public


  API what signals it implements/overrides?

 

  [code]

 

  QGuiApplication *app = SailfishApp::application(argc, argv);

 

  UDPManager *udp = new UDPManager();

  QQuickView *view = SailfishApp::createView();

 

  /* FIXME: THIS DOES NOT WORK */

 

  QObject::connect(view, SIGNAL(destroyed()), view,

  SLOT(QGuiApplication::quit()));

 

  view-rootContext()-setContextProperty(version, QString(VERSION));

  view-rootContext()-setContextProperty(udp, udp);

  view-setSource(QString(/usr/share/harbour-push2sail/qml/push2sail.q

  ml));

  view-showFullScreen();

  app-exec();

  delete app;

  delete udp;

 

  [/code]

 

 

 

 

 

  ___

  SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] cannot hide() contextmenu

2013-12-18 Thread Wim de Vries

Thx. That works.
Maybe sth for in the documentation in the future?

On 12/18/2013 02:24 AM, Bea Lam wrote:

Hello,

On 17 Dec 2013, at 11:17 pm, Wim de Vries wsvr...@xs4all.nl wrote:

Hi,
I am trying a contextmenu. I can show() it, but not hide it.
Clicking on the lower rectangle does not hide it:

Just remove the “anchors.fill: parent” from your ContextMenu declaration. The 
ContextMenu type internally adjusts its ‘height’ property in order to make its 
contents appear and disappear when you call show() and hide(), so if you fix 
the menu’s dimensions using anchors.fill, it will not be able to internally 
control its height, as anchors take precedence over width/height values.

In any case, you wouldn’t want to explicitly control the height of a 
ContextMenu because it automatically adjusts its height according to the number 
of items in the menu.

cheers,
Bea
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


[SailfishDevel] cannot hide() contextmenu

2013-12-17 Thread Wim de Vries

Hi,
I am trying a contextmenu. I can show() it, but not hide it.
Clicking on the lower rectangle does not hide it:

import QtQuick 2.0
import Sailfish.Silica 1.0

Page {
id: pageT

Rectangle
 {
id : timerWindow
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height : 400
color : #00FF00
 MouseArea
  {
  anchors.fill : parent
  onClicked:
   {
   contextMenu.show(timerWindow)
   }
  }
 }

Rectangle
 {
id : timerWindow2
anchors.top: timerWindow.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
color : #FF
 MouseArea
  {
  anchors.fill : parent
  onClicked:
   {
   console.log(hiding)
  contextMenu.hide()
   }
  }
 }

ContextMenu
 {
   anchors.fill: parent
   property bool menuShown : false
   id: contextMenu
MenuItem {
text: Option 1
}
MenuItem {
text: Option 2
}


 }
}
___
SailfishOS.org Devel mailing list

[SailfishDevel] (silica)listview without model?

2013-12-15 Thread Wim de Vries

Hi,
Working on the GUI port from QWidgets to QML.
I am trying the ContextMenu example in the documentation.
It does not work: I did see that the SilicaListView has no model (in the 
QML documentation there is always a model).

Same goes for the ListItem example.
Is Sailfish different from QML here?
Thanks.
r
wim
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qmlscene error handling

2013-12-15 Thread Wim de Vries
I don't  know about Python, but QML is giving no feedback at all (even 
console.log does not work) since the SDK update.

See  no output from console.log topic above. Possibly related.
r
wim

On 12/15/2013 05:19 PM, Osmo Salomaa wrote:

Hello,

I'm writing an application using QML and PyOtherSide. I'm new to Qt, 
QML, PyOtherSide and all the rest apart from Python.


I ssh into the emulator and use 'qmlscene main.qml' to run my 
application. I'm wondering about qmlscene's error handling. I create 
QML objects dynamically based on data sent from the Python side. If I 
have an error in my QML code, qmlscene seems to just silently stop 
executing code at the offending point. I'd expect an error message, 
maybe even a crash. Why don't I get that?


Two examples of these ignored errors: (1) I was referring to an object 
by its id apparently out of scope, solved by moving the Python block 
from under ApplicationWindow to under Page and (2) I mistyped a method 
call, 'addItem' instead of 'addMapItem'.




___
SailfishOS.org Devel mailing list


[SailfishDevel] no output from console.log

2013-12-14 Thread Wim de Vries

Hi,
Since 1312 I do not get any of the console.log output in the 
application output window.

Am I overseeing sth.
thanks.
r
wim
___
SailfishOS.org Devel mailing list


[SailfishDevel] best way to set QML properties from within C++ in Sailfish?

2013-12-12 Thread Wim de Vries

Hi,
I need to set many properties in QML elements from within C++.
QT documentation:

QQmlEngine  http://qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html  engine;
QQmlComponent  http://qt-project.org/doc/qt-5.0/qtqml/qqmlcomponent.html  
component(engine,  MyItem.qml);
QObject  http://qt-project.org/doc/qt-5.0/qtcore/qobject.html  *object=  
component.create();
qDebug  http://qt-project.org/doc/qt-5.0/qtcore/qtglobal.html#qDebug()  Property value:  
  QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::read(object,  
someNumber).toInt();
QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::write(object,  
someNumber,  5000)


Still in Sailfish we only have a QQuickView*, no QQmlEngine/QQmlComponent.
How do I get their from QQuickView?

Also,
Can I get to all Pages (even if not active) and their nested childs via 
the above mentioned QObject*  ?


Thanks.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] best way to set QML properties from within C++ in Sailfish?

2013-12-12 Thread Wim de Vries

Thanks.

On 12/12/2013 01:44 PM, Robin Burchell wrote:
On 12 Dec 2013, at 13:42, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:

I need to set many properties in QML elements from within C++.


You may find it easier to expose these properties *from* C++ to QML, 
using a singleton type (for example)


http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-definetypes.html#registering-singleton-objects-with-a-singleton-type


Yes, I have to control many property values.

QT documentation:
QQmlEngine  http://qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html  engine;
QQmlComponent  http://qt-project.org/doc/qt-5.0/qtqml/qqmlcomponent.html  
component(engine,  MyItem.qml);
QObject  http://qt-project.org/doc/qt-5.0/qtcore/qobject.html  *object=  
component.create();
qDebug  http://qt-project.org/doc/qt-5.0/qtcore/qtglobal.html#qDebug()  Property value:  
  QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::read(object,  
someNumber).toInt();
QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::write(object,  
someNumber,  5000)

Still in Sailfish we only have a QQuickView*, no 
QQmlEngine/QQmlComponent.

How do I get their from QQuickView?


http://qt-project.org/doc/qt-5.1/qtquick/qquickview.html#engine

I'll try this one indeed.




Also,
Can I get to all Pages (even if not active) and their nested childs 
via the above mentioned QObject*  ?


Not easily, AFAIK.


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] C++ and QML Integration: SetContextProperty with the latest SailfishOS Templates

2013-12-12 Thread Wim de Vries

Hi Cristopher,
I got this answer some time ago:

QGuiApplication *app = SailfishApp::application(argc, argv);
QQuickView *view = SailfishApp::createView();
view-rootContext()-setContextProperty(cppproperty, view);
view-setSource(SailfishApp::pathTo(qml/main.qml));
view-showFullScreen();
app-exec();

r
wim

On 12/12/2013 02:16 PM, christopher.l...@thurweb.ch wrote:

Hi All

what is now the recommended way to SetContextProperty in the main 
function using the latest Sailfish application templates (from thp)?


The default main now looks like:

#include sailfishapp.h

int main(int argc, char *argv[])
{

return SailfishApp::main(argc, argv);
}

In the days of the old template and sailfishapplication I used to do 
it this way:


#include sailfishapplication.h

Q_DECL_EXPORT int main(int argc, char *argv[])
{
QScopedPointerQGuiApplication 
app(Sailfish::createApplication(argc, argv));


//New Sailfish Alpha 2 /Qt 5 way
//requires patch to sailfishapplication.cpp from Lucien Xu
QScopedPointerQQuickView view(Sailfish::createView());
view-rootContext()-setContextProperty(cppproperty, Hello 
world);

Sailfish::setView(view.data(), main.qml);

Sailfish::showView(view.data());
return app-exec();
}

Thanks

Chris



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] best way to set QML properties from within C++ in Sailfish?

2013-12-12 Thread Wim de Vries

On 12/12/2013 02:28 PM, Wim de Vries wrote:

Thanks.

On 12/12/2013 01:44 PM, Robin Burchell wrote:
On 12 Dec 2013, at 13:42, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:

I need to set many properties in QML elements from within C++.


You may find it easier to expose these properties *from* C++ to QML, 
using a singleton type (for example)


http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-definetypes.html#registering-singleton-objects-with-a-singleton-type


Yes, I have to control many property values.

QT documentation:
QQmlEngine  http://qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html  engine;
QQmlComponent  http://qt-project.org/doc/qt-5.0/qtqml/qqmlcomponent.html  
component(engine,  MyItem.qml);
QObject  http://qt-project.org/doc/qt-5.0/qtcore/qobject.html  *object=  
component.create();
qDebug  http://qt-project.org/doc/qt-5.0/qtcore/qtglobal.html#qDebug()  Property value:  
  QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::read(object,  
someNumber).toInt();
QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::write(object,  
someNumber,  5000)

Still in Sailfish we only have a QQuickView*, no 
QQmlEngine/QQmlComponent.

How do I get their from QQuickView?


http://qt-project.org/doc/qt-5.1/qtquick/qquickview.html#engine

I'll try this one indeed.
That doesn't work. I need the object (whatever type of object that may 
be) returned by component.create.





Also,
Can I get to all Pages (even if not active) and their nested childs 
via the above mentioned QObject*  ?


Not easily, AFAIK.


___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] best way to set QML properties from within C++ in Sailfish?

2013-12-12 Thread Wim de Vries

On 12/12/2013 02:39 PM, Robin Burchell wrote:
On 12 Dec 2013, at 14:28, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:

I need to set many properties in QML elements from within C++.


You may find it easier to expose these properties *from* C++ to QML, 
using a singleton type (for example)


http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-definetypes.html#registering-singleton-objects-with-a-singleton-type


Yes, I have to control many property values.


I'm not sure how that matters.. see: 
http://qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html#qmlRegisterSingletonType-2


You can register your object instance as a singleton, exposing as many 
properties/methods as you like - there's no limitations and it's 
fairly easily done


Theme properties in Silica are exposed through a singleton, for example.

Why is the Qt preferred way deprecated in Sailfish?

QQmlProperty  http://qt-project.org/doc/qt-5.0/qtqml/qqmlproperty.html::write(object,  
someNumber,  5000)


So much simpler and understandable.






___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] QWindow in main?

2013-12-06 Thread Wim de Vries

Hi,
I am trying to get sth working after the c++/openGL discussion.
Some of you mentioned using QWindow.

For now I am just trying to get a QWindow working together with some QML.
Problem starts with main. It is only about QQuickView.
Where to got with my QWindow?
Thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] where did the template sailfishapplication.cpp/h go?

2013-12-06 Thread Wim de Vries

On 12/06/2013 12:34 PM, Robin Burchell wrote:

Hi,

They were moved into libsailfishapp so that we are easier able to roll out 
improvements to all applications if there’s a need. For instance, we ran into a 
bug with QtWayland that we had to temporarily work around in there a while ago.

I would recommend *not* subclassing QQuickView (since then you won’t get some of 
the performance enhancements on startup that libsailfishapp provides when you use 
createView and so on), but if you absolutely *must* subclass QQuickView, then just 
don’t use createView, and subclass QQuickView directly ( new it yourself).
Well, that means moving all C++ callback functions out of my inherited 
QQuickview ;-(

Just to be sure, will
SailfishApp::createView()
return a QQuickView pointer ?
I need to set
returnedQQuickViewPointer-rootContext()-setContextProperty(myNewCPP, 
myNewCPPclass );

Thanks.



BR,
Robin

On 06 Dec 2013, at 11:58, Wim de Vries wsvr...@xs4all.nl wrote:


Hi,
Just looking at the template and documentation of the latest SDK and found out 
that sailfishapplication.cpp and sailfishapplication.h were removed from the 
sources.
I used to redefine them (using MyQQuickview etc.).
Am I overlooking sth?
thanks.
wim

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


[SailfishDevel] qml and opengl/c++

2013-12-06 Thread Wim de Vries

Hi,
Some of you referred to the 'OpenGL Under QML' 
(http://qt-project.org/doc/qt-5.1/qtquick/scenegraph-openglunderqml.html) example.

I got the example working in Sailfish.
Only one problem.
It doesn't show up within 'ApplicationWindow'. I have to comment 
ApplicationWindow{} out and use the Item as root element.

Same problem to get it in 'Page'.
Possibly there is already a Sailfish 'OpenGL Under QML'?
Thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] opengl again..

2013-12-05 Thread Wim de Vries

Thanks.
1) using QML writing C++ items to integrate into the scene graph (see 
http://qt-project.org/doc/qt-5.0/qtquick/qquickitem.html for the base 
class) - this also means you'll be able to use Silica in your application
2) using C++, instantiating a QWindow, and doing all your rendering by 
yourself (ideally using OpenGL ES) - something like 
http://qt-project.org/doc/qt-5.0/qtgui/openglwindow.html


Does this example run on Sailfish (it's now all QQuickView as mainwin in 
SF)?

Very, very important, how do create a second GUI (QML) Window?


3) other, as-yet-to-be-finalised routes like doing *everything* 
yourself, using SDL, etc.


So it seems that only QML apps are supported, but I have no clue how 
to add a QWindow in a QML app. There's an example in QtCreator Scene 
Graph - OpenGL under QML but they use QQuickItem,

for OpenGL, so I still don't have a clue how to use OpenGL in a QML app.


Your QML application has a C++ entry point (though if you're using 
something like qmlscene... you'll need to create such an entry point 
yourself) with your 'main' function. You can create a QWindow in 
there, and show it. You can hook into QML using Q_INVOKABLE methods to 
show it based on a clicked action on a Silica button, etc, etc, etc.


I'd need more information to be able to really provide useful help here :)


Regards
João de Deus


BR,
Robin


___
SailfishOS.org Devel mailing list

regards
wim
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Serious request: please let us use C++!

2013-12-05 Thread Wim de Vries

Hi Thomas,
Thanks.
I'll just boil down to your last important remark

On 12/05/2013 09:56 AM, Thomas Perl wrote:
Are we missing code examples of how to integrate C++-based OpenGL 
rendering like QGLWidget (initializeGL, resizeGL and paintGL) with 
Sailfish Silica QML UIs? Would it help you if such examples were 
available (a simple hello world with Silica buttons and a rectangular 
area where things are rendered with OpenGL)?

Yes, please!
In my case -and also others on the list-:  C++ driven/controlled and a 
combination of an openGL window and and a GUI window in one screen.
This combination is sometimes necessary when you want to see the GUI 
interaction result immediately on the openGL window (e.g. [aircraft 
navigation] input of longitude/latitude values for way points should be 
visible on the openGL map directly).

I know this is not the Sailfish way, but -by exception- it is necessary.

Also:
I have been struggling over the C++-QML-Sailfish GUI sometime.
But I managed to get an app working.
It is an example of a C++ controlled app, using 'standard' QML lists, 
and a 'main' Sailfish GUI, with quite some C++QML communication 
implemented.

This might also be useful as an example.
see https://github.com/sailfishapps/checklists

regards,
wim
___
SailfishOS.org Devel mailing list


[SailfishDevel] opengl again..

2013-12-04 Thread Wim de Vries

Hi,
I am developing on a ubuntu 12.10 notebook host.
I have a simple app with a standard Qt C++ GUI that runs fine on the 
host as well as the emulator.
I have added a QGLWiget (with shaders) which shows a triangle nicely on 
the host.
Still, on the emulator (with 3D acc enabled) the QGLWidget is just 
black, no errors.

Does the (linux) emulator support 3D?
thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] opengl again..

2013-12-04 Thread Wim de Vries

On 12/04/2013 08:18 PM, joao morgado wrote:

@: Wim de Vries.
I share your frustation about OpenGL with QWindow, and I'm also 
frustated with Qt widgets.
I have a very nice app in OVI, symbian, with QWidgets and OpenGL, I'll 
have to do a complete redesign, since widgets are black listed.


That example of QWindow with OpenGL, to me, it's an over complicated 
mess, luckly I managed to port my opengl code to QWindow but took me 
quite a while to do it. To me, there is a better example here 
https://github.com/advancingu/Qt5OpenGL
I managed it with QDeclarative some time ago, but that's also black 
listed now...




So it seems that only QML apps are supported, but I have no clue how 
to add a QWindow in a QML app. There's an example in QtCreator Scene 
Graph - OpenGL under QML but they use QQuickItem,

for OpenGL, so I still don't have a clue how to use OpenGL in a QML app.
also black listed now see 
http://qt-project.org/doc/qt-5.0/qtdoc/whatsnew.html


I implemented just a little part of my app 
(https://github.com/sailfishapps/checklists) in a small app, using c++ 
 QML-Sailfish communication.
It works, but for the communication you need a lot of code. And the code 
is very hard to understand.
I do hope that we will be able to access the sailfish GUI via C++ 
somewhere in the future.

C(++) is THE language for openGL.

I'll post a separate topic on this.
Thanks.
regards
wim




Regards
João de Deus


Em Quarta-feira, 4 de Dezembro de 2013 16:24, Filip K?e;bczyk 
fklebc...@gmail.com escreveu:

W dniu 04.12.2013 17:05, Wim de Vries pisze:
 Thanks.
 I presume it's a buck in the emulator then.
 I'll wait for the Jolla device, before any further development.

Hi Wim,

you can try to contact my former student, one part of his master thesis
was writing EGL app for Sailfish (he made some kind of 3D snake in the
emulator). His e-mail:

bar.rem...@gmail.com mailto:bar.rem...@gmail.com

Regards,
Filip





___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Serious request: please let us use C++!

2013-12-04 Thread Wim de Vries

Hi all,
This basically a very strong request to the Sailfish an Qt people.

I mean this in positive sense: please don not enforce QML at the cost of 
C++ on the developers community.

First, C(++) is THE language for openGL.
We want to program shaders and heavy calculations (C++).
Qt used to be well suited for this, offering a Q(GL)Widget set that 
enabled a nice 'stage' for OpenGL and also a nice GUI for the rest of app.
Now we have go through Qpainters, QQuickitems (oh no, that's black 
listed also).

Our QWidgets are useless now.
We are enforced to do this in declarative QML.
So, how do I simply calculate 1+1 in QML?
Large floating point arrays for my vertices?
Malloc for images?
Reading buffers from serial devices?

So please, make the Sailfish GUI accessible via C++ (like QWidgets).
As it is now, I myself, will not be able to submit my (open source) 
aircraft navigation app for Sailfish.
I am sure that a lot of Meego/maemo/Symbian developers will have the 
same problem.
Google has been arrogant with their JAVA enforcement, now they are 
repairing it by enabling C++ via the NDK.

Please do not make the same mistake.

regards,
wim
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Wim de Vries

Thanks.
Removing and adding kits seems to generate new .yaml file based on .pro 
and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, 
but remains emty.

Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:
You need to mention these files in .yaml (or user editable part of 
.spec that's generated from .yaml).


Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate final folders on 
the build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts 
installed file to one or more (just one for a simple case) RPM 
packages according to .yaml/.spec and then it figures that some 
installed files are not going into any .rpm, so it gives you an error:

Installed (but unpackaged) file(s) found:

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:


Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do
it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p checklists
/home/deploy/installroot/usr/bin/checklists

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/mersdk/qt/checklists/

.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1
rpmlib(FileDigests) = 4.6.0-1 rpmlib(PayloadFilesHavePrefix) =
4.0-1

Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0)
libm.so.6 libpthread.so.0 libstdc++.so.6
libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4)
rtld(GNU_HASH)

Processing files

[SailfishDevel] directory structure on Sailfish

2013-11-19 Thread Wim de Vries

Hi,
Does anyone know about documentation concerning the directory structure 
on Sailfish?


Where are apps installed?
What is the applications data directory?
How can I create extra dirs with data during installation/deployment?
What is the recommended dir for the user to store app data (in my case 
specific text docs)?

What will be the dir name of the mem card?
Is the Sailfish dir structure of the emulator the same as on the final 
device?


Robin already pointed me to QStandardPaths, but that one gives me 
non-existing dir names and not answers to all of the above questions.


Thanks.
wim


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] user and app data howto?

2013-11-14 Thread Wim de Vries

On 11/13/2013 11:27 PM, Robin Burchell wrote:

Hi,

On Wed, Nov 13, 2013 at 9:19 PM, Wim de Vries wsvr...@xs4all.nl wrote:

I have my app ready. Until now I just did a scp -r -P 2223 ./checklistsdata
nemo@localhost:/home/nemo to copy the app data. But I need a robust
solution before submitting to the harbour...
Are there rules concerning user and app data?

I'm not sure quite what you are asking. If you are asking where your
application should store and access data from standard locations, then
you should look into using QStandardPaths:
http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html#writableLocation

Ok. Thanks.


Hope this helps,
Robin
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


[SailfishDevel] user and app data howto?

2013-11-13 Thread Wim de Vries

Hi,
I have my app ready. Until now I just did a scp -r -P 2223 
./checklistsdata nemo@localhost:/home/nemo to copy the app data. But I 
need a robust  solution before submitting to the harbour...

Are there rules concerning user and app data?
The user may change/delete data from within the app, but must also be 
able to add data (plain text files) created by a desktop application.

Thanks.

wim
___
SailfishOS.org Devel mailing list


[SailfishDevel] error: Unknown module(s) in QT: serialport

2013-11-07 Thread Wim de Vries

Hi,
Have been away sometime. Installed the latest SDK: Qt5.1.
5.1 supports Qt Serial Port, but somehow not in the Sailfish version.
Any hints?
Thanks.

___
SailfishOS.org Devel mailing list


[SailfishDevel] where to put my OS sailfish project

2013-09-24 Thread Wim de Vries

Hi,
I just finalized my (OS) app (https://github.com/wspilot/checklists).
(for starters it might useful: several listviews, C++-QML communication; 
mixed QML/Sailfisch GUI).
As far as I can see the only place to share it is 
https://wiki.merproject.org/wiki/Sailfish.
But that wiki does not work very well (bugzilla login fails and no 
contact possible).

My question is: is there another site that collects (OS) Sailfish apps.
Thanks.

___
SailfishOS.org Devel mailing list


[SailfishDevel] cover stays after app has quitted

2013-08-29 Thread Wim de Vries

Hi all,
After quitting the app, very often, the cover is still there (sometimes 
garbled).

It works ok when the shutDown function is called from the pull-down menu.
(MyesNoDialog is used as a message Dialog).
QML:

Page..

 if (saveFailed)
  {
  var errorDialog = pageStack.push(MyesNoDialog.qml, {text : 
FATAL ERROR: CANNOT SAVE.\nSHUTTING DOWN\n})

 errorDialog.accepted.connect(
 function()
{
  myqquickview.shutDown()
})
 errorDialog.rejected.connect(
 function()
{
  myqquickview.shutDown()
})
  }

C++ (myqquickview):

void MyQQuickView::shutDown()
{
qWarning()  shutting down;
close();
}

Thanks.

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] yet another pop problem (Dialog)

2013-08-15 Thread Wim de Vries

Hi Matt,
Thanks.
On 08/15/2013 12:09 PM, Matthew Vogt wrote:
The simplest thing to do, is to wait for the page under your dialog to 
be re-activated - when the page status is 'PageStaus.Active' again, 
then you know that the pop transition has finished and you can issue a 
new page stack change.
Yes, I'll do this one. Only have keep track from where it came when it 
is activated.




However, what you should probably do in this case, is verify that the 
dialog content is valid before you let the user accept the Dialog.  
You can prevent the dialog being accepetd by binding an expression 
which evaluates to false to the 'canAccept' property of the Dialog.  
When you detect that the user has entered a name which already exists, 
you can show a TextSwitch for the user to confirm that they wish to 
overwrite the existing file.  When you're happy that the choice is 
intentional, make the 'canAccept' expression evaluate to true.

Dont want to fire c++ validation for every key action.
Tried 'canAccept : false' at start, but couldn't find a trigger to 
intercept usr action to validate and then accept() or reject().





You may also like to look at the text field examples in the component 
gallery, which demonstrate how to visually indicate that the content 
of a field is not currently in a valid state.

I did.
BTW: they don't work (anymore):

bash: /opt/sdk/componentgallery/usr/bin/silicacomponentgallery-example: 
No such file or directory


Remote application finished with exit code 127.





Thanks,
Matt


*From:* devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries 
[wsvr...@xs4all.nl]

*Sent:* Thursday, August 15, 2013 7:21 PM
*To:* devel@lists.sailfishos.org
*Subject:* [SailfishDevel] yet another pop problem (Dialog)

I am sorry, but some things that are so simple in QtWidgets do become 
quite complex in Sailfish-QML.

case:
textedit-save-as(menu)
push Dailog (usr inputs filename)
C++ evaluates filename: file already exists!

now I want push a overwrite? Dialog.
But any of the PageStack  actions causes Warning: cannot pop while 
transition is in progress.
The problem here is that the Dialog is always popped by the user. So 
pagestack goes in transition and I cannot do anything on the pagestack 
(immediately) after that.

Thanks.




___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Cannot pop while operation is in progress : SOLVED

2013-08-14 Thread Wim de Vries
Thanks Mathew,
Your suggestion indeed works like this:
pageStack.replaceAbove(pageStack.previousPage(),
Qt.resolvedUrl(controls/MTextEdit.qml))

I got the error because there was still a pop() somewhere in the current
page!
Silly, I had been fiddling to much.
Thanks again.

I now have a nice working app with mixed core QML and Sailfish UI and
controlled by c++!

r
wim


 Correct me if I'm wrong, but I understand your page stack situation to be
 like this:
 [ ..., page0, page1, page2 ]
 and you want to pop page2, and also replace page1 with a new page, so you
 end up with:
 [ ..., page0, page3 ]

 Is that right?  If so, then the first argument to replaceAbove() is the
 page above which all other pages should be popped - in the above example,
 page0 would be the argument.  So passing pageStack.currentPage as the
 first argument to replaceAbove() is invalid, because there can't be any
 pages above the top.

 Thanks,
 Matt

 
 From: Wim de Vries [wsvr...@xs4all.nl]
 Sent: Wednesday, August 14, 2013 5:42 PM
 To: Matthew Vogt
 Cc: Wim de Vries; devel@lists.sailfishos.org
 Subject: RE: [SailfishDevel] Cannot pop while operation is in progress

 Thanks Matt,
 This is my function in main.qml (called from within c++)
   function loadTextEdit(text)
 {
 //pageStack.push(Qt.resolvedUrl(controls/MTextEdit.qml))//works OK!
 pageStack.replaceAbove(pageStack.currentPage,
 Qt.resolvedUrl(controls/MTextEdit.qml))
 pageStack.currentPage.setText(text)
 return true;
 }
 this results in this error:
 file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:111: Error: Cannot
 replace with target page at the top of the stack

 r
 wim

 Cannot pop while operation is in progress means that the previous
 PageStack operation is still animating, and you must wait until it
 finishes before issuing the next PageStack operation.  There are various
 strategies you can use for this, but they will all result in
 unattractive
 visual changes: either double animations or disorientating jumps.

 It sounds like you should probably use the 'replaceAbove' function:
 https://sailfishos.org/sailfish-silica/qml-sailfishsilica-pagestack.html#replaceAbove-method
 This function is equivalent to pop all pages above the supplied target
 page, then push a new page, except that it occurs with a single visual
 transition.

 Thanks,
 Matt

 
 From: devel-boun...@lists.sailfishos.org
 [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries
 [wsvr...@xs4all.nl]
 Sent: Wednesday, August 14, 2013 6:02 AM
 To: devel@lists.sailfishos.org
 Subject: [SailfishDevel] Cannot pop while operation is in progress

 If I do pop() within a current page
 and
 pageStack.replace(pageStack.currentPage,
 Qt.resolvedUrl(controls/MTextEdit.qml))
 within main.qml I get:
 Cannot pop while operation is in progress

 I need to remove the previous page, so that the user cannot navigate
 back
 to this page.
 Thanks.






___
SailfishOS.org Devel mailing list


[SailfishDevel] file permissions of user data files

2013-08-11 Thread Wim de Vries

Hi,
I am trying to save a file from within my app.
I can read the file, not write to it:

cannot open /etc/ssh/authorized_keys/checklists/GEO1 ; Permission 
denied
From within ubuntu I have made the file (GEO1) and dir (checklists) r/w 
for all.

Thanks.


___
SailfishOS.org Devel mailing list

[SailfishDevel] under which user do apps run

2013-08-11 Thread Wim de Vries

Hi,
Trying to find out under which user my app runs.
whoami from within the app returns .
and ~ has no content.
Thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] under which user do apps run

2013-08-11 Thread Wim de Vries

On 08/11/2013 09:22 PM, Jonni Rainisto wrote:

You must be doing something wrong :)

 qDebug()  getuid();
 system(whoami);
-
10
nemo
You're right. The above gives the same output (I was using QProcess with 
no results).
Anyway,  QDir dp(~/checklists) does not return anything, whereas QDir 
dp(/home/nemo/checklists) works ok.

That's why I got confused. But the ~ not being recognized may be a Qt issue.



From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Wim de Vries [wsvr...@xs4all.nl]
Sent: Sunday, August 11, 2013 9:53 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] under which user do apps run

Hi,
Trying to find out under which user my app runs.
whoami from within the app returns .
and ~ has no content.
Thanks.
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] pagestack signals for eg pageback

2013-08-09 Thread Wim de Vries

Hi Matt
Benoît Hervier pointed me to the status property.
The scenario is simple.
I am rounding up a checklist app (for in a aircraft cockpit).
If the user navigates back, the complete list has to be reset (security 
rule).
btw: the checklists are displayed in non-salfish colors (need max 
contrast because of light), rest (editing 'done on the ground') is in 
sailfish colors.
This simple app is part of an existing navigation (and more) system and 
is an opportunity (for me) to learn and test C++QML within Sailfish.

Of course, all open source ;-)

r
wim

On 08/09/2013 11:36 PM, Matthew Vogt wrote:

Hi Wim.

There are no signals for PageBack or PageForward in the Silica PageStack.  What 
are you trying to do?  From within a Page element, you can observe changes to 
the 'pageContainer' property (when added and removed from the PageStack), or 
the 'status' property (which reflects the page's state with respect to 
entering/leaving the top-of-stack condition).  You can also observe changes to 
the '_navigation' property, which is set to either PageNavigation.Back or 
PageNavigation.Forward for a page, when that page is navigated away from, as 
the previous stack top.

If you need something else, please describe your use case so we can support it 
better.

Thanks,
Matt


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Wim de Vries [wsvr...@xs4all.nl]
Sent: Friday, August 09, 2013 10:35 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] pagestack signals for eg pageback

Hi,
I cannot find the signals/functions of the pagestack (eg onPageBack) in
the documentation.
(the same goes for other silica elements as well).
Am I over looking sth?
Thanks.

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


[SailfishDevel] opengl support in the sailfish emulator?

2013-07-09 Thread Wim de Vries

Hi,
I have asked this question before, but got no answer.
Now the issue becomes more urgent for my project.
Trying again:
does/should the sailfish emulator support openGL (ES)?
thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Disable the PageStackIndicator

2013-06-17 Thread Wim de Vries

Same problem here.
I do need all the real-estate.
Broader, is it possible to change the style (e.g. highlight collor of of 
the puldpwn/up menus).



On 06/17/2013 10:27 PM, christopher.l...@thurweb.ch wrote:

Hi All

Is there anyway I can disable / remove the PageStackIndicator?

I think it looks ugly and robs valuable screen real-estate.

My app has a column of four ListViews. Each of these ListView has a 
header. When the header is clicked, or an an item in the list is 
double clicked, then a detail page relevant to that ListView is pushed.


So my PageStack is very shallow, thus in the context of my app the 
PageStackIndicator adds zero value.


mfg

Chris


___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Qt version plans?

2013-06-08 Thread Wim de Vries

On 06/08/2013 04:11 PM, Superpelican wrote:
Jolla have said that they will support Qt5 in the future for Sailfish 
apps and Qt5 support is also already in Mer (the base of Sailfish OS). 
But they haven't been very clear on when they will switch to Qt5. I 
myself would like to know it too, because I'm new to Qt/QML (and quite 
new to programming in general also) and learning Qt/QML 4.8. I'm 
worried if I shouldn't learn Qt5/QML2 straightaway instead.


___
SailfishOS.org Devel mailing list

Same for me. Evenmore, it should be 5.0.2+ (opengl widget support in 
combi with QML; in 5.0.1 it got lost somewhere).


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] R: QML: Unable to open input file: No such file or directory

2013-06-04 Thread Wim de Vries

On 06/04/2013 02:56 PM, and.berna...@gmail.com wrote:


Maybe you forgot to add it to the qml.files variable in the .pro file? 
Or to the .qrc, if you're using resources :)

pro:
# QML files and folders
qml.files = *.qml pages cover main.qml

and GroupBox.qml as well as MButtom.qml are in the pages directory (next 
to the qmls).


r
wim




*Da: *Wim de Vries
*Inviato: *martedì 4 giugno 2013 14:53
*A: *devel@lists.sailfishos.org
*Oggetto: *[SailfishDevel] QML: Unable to open input file: No such file or
directory


Hi,
I am sandboxing the sailfishapplication.
In the page dir, I created my MButtom.qml.
This one is loaded in the SecondPage.
Works fine.
I also have a GroupBox.qml.
When I load this one I get:

Unable to open input file: No such file or directory


SecondPage.qml:

import QtQuick 1.1
import Sailfish.Silica 1.0

Page {
id: page2
MButton
 {
 id: r1
 buttonText: MBUTTON
 }

GroupBox
{
id : altWindow
}

}

Any hints.
Thanks.









___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] R: QML: Unable to open input file: No such file or directory

2013-06-04 Thread Wim de Vries

Even more strange
I have added QML/pages to qml.files in .pro
GroupBox comes up now, but the error message is still there.

The loading page (SecondPage.qml) and the to-be loaded page 
(GroupBox.qml) are in the same directory.

Why is it not found by default?

r
wim



On 06/04/2013 03:48 PM, Wim de Vries wrote:

Additinal note:
If I load in FirstPage it does work.
If I load it in ThirdPage it dowsn't.



On 06/04/2013 03:31 PM, Wim de Vries wrote:

On 06/04/2013 02:56 PM, and.berna...@gmail.com wrote:


Maybe you forgot to add it to the qml.files variable in the .pro 
file? Or to the .qrc, if you're using resources :)

pro:
# QML files and folders
qml.files = *.qml pages cover main.qml

and GroupBox.qml as well as MButtom.qml are in the pages directory 
(next to the qmls).


r
wim




*Da: *Wim de Vries
*Inviato: *martedì 4 giugno 2013 14:53
*A: *devel@lists.sailfishos.org
*Oggetto: *[SailfishDevel] QML: Unable to open input file: No such 
file or

directory


Hi,
I am sandboxing the sailfishapplication.
In the page dir, I created my MButtom.qml.
This one is loaded in the SecondPage.
Works fine.
I also have a GroupBox.qml.
When I load this one I get:

Unable to open input file: No such file or directory


SecondPage.qml:

import QtQuick 1.1
import Sailfish.Silica 1.0

Page {
id: page2
MButton
 {
 id: r1
 buttonText: MBUTTON
 }

GroupBox
{
id : altWindow
}

}

Any hints.
Thanks.









___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] change Silica theme details

2013-06-03 Thread Wim de Vries

Thanks all for the replies.
First, I sure like the swiping functionality of Silica, especially the 
pull down/push up menus, page indicator, etc..
Still, my app is used in a cockpit. Many (light) aircrafts and gliders 
do have full glass canopies (like an F16).

This is an extremely bright light environment, so I need contrasting colors.
In the current app (ubuntu), buttons are light green (00FF00) with black 
text, strong warnings FF, and soft warnings orange.


Current problem:
I did push some of my own buttons in the Silica menu items, but
- I need more (light/color) contrast in the highlight section of each 
menu item (when it is selected);

- I am not sure if it allowed (non Silica stuff in Silica elements).

Also, the page indicators (left top: indicating that you are in n-th of 
x pages are to 'soft' for my app.

Thanks.
r
wim



On 06/02/2013 11:57 AM, Jonni Rainisto wrote:

You can ofcourse alse use javascript and read current theme colors in there and 
slice them in r g b values, and make your custom var's with changed values. But 
the question is that can you give an example of where the default theme colors 
are not readable enough, and what kind of ambient theme are you using?

re, jonni


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Lucien XU [sfietkonstan...@free.fr]
Sent: Sunday, June 02, 2013 12:39 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] change Silica theme details

Hello,

You are not forced to use Silica to develop your application. You can, for
example, use your custom components (based on QtQuick default components, like
Rectangle or Text), to draw some of the UI.

For example, you can draw a white background by doing

Page {
 Rectangle {
 anchors.fill: parent
 color: white
 }
}

(Note that I did not tried that code, but it should work)
And add some other components, like Text, or other Rectangles on top of it.

Of cause, it won't integrate with Sailfish, but that's not a problem, since
you are not focusing on that, do you ?

True.


Le vendredi 31 mai 2013 17:12:25 Wim de Vries a écrit :

Hi,
My app will work in very (sun)light circumstances, so I need more
contrast between colours.
Is there a way to change (parts of the) the Silica theme?
Thanks.

___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] change Silica theme details

2013-06-03 Thread Wim de Vries

Garret Raziel schreef op 2013-06-03 11:48:

Hmm, then I suggest not to use Silica theme.


For now, I have the pulldown/pushupmenu in black and white. This config 
gives the best highlight.

I will use my own buttons.
And now the aircraft checklists





On Mon, Jun 3, 2013 at 11:36 AM, Wim de Vries wsvr...@xs4all.nl 
wrote:



Thanks all for the replies.
First, I sure like the swiping functionality of Silica, especially 
the pull down/push up menus, page indicator, etc..
Still, my app is used in a cockpit. Many (light) aircrafts and 
gliders do have full glass canopies (like an F16).
This is an extremely bright light environment, so I need contrasting 
colors.
In the current app (ubuntu), buttons are light green (00FF00) with 
black text, strong warnings FF, and soft warnings orange.


Current problem:
I did push some of my own buttons in the Silica menu items, but
- I need more (light/color) contrast in the highlight section of each 
menu item (when it is selected);

- I am not sure if it allowed (non Silica stuff in Silica elements).

Also, the page indicators (left top: indicating that you are in n-th 
of x pages are to 'soft' for my app.

Thanks.
r
wim

On 06/02/2013 11:57 AM, Jonni Rainisto wrote:

You can ofcourse alse use javascript and read current theme colors 
in there and slice them in r g b values, and make your custom var's 
with changed values. But the question is that can you give an example 
of where the default theme colors are not readable enough, and what 
kind of ambient theme are you using?


re, jonni


From: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Lucien XU 
[sfietkonstan...@free.fr]

Sent: Sunday, June 02, 2013 12:39 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] change Silica theme details

Hello,

You are not forced to use Silica to develop your application. You 
can, for
example, use your custom components (based on QtQuick default 
components, like

Rectangle or Text), to draw some of the UI.

For example, you can draw a white background by doing

Page {
         Rectangle {
                 anchors.fill: parent
                 color: white
         }
}

(Note that I did not tried that code, but it should work)
And add some other components, like Text, or other Rectangles on top 
of it.


Of cause, it won't integrate with Sailfish, but that's not a 
problem, since

you are not focusing on that, do you ?

True.


Le vendredi 31 mai 2013 17:12:25 Wim de Vries a écrit :


Hi,
My app will work in very (sun)light circumstances, so I need more
contrast between colours.
Is there a way to change (parts of the) the Silica theme?
Thanks.

___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Regarding SailfishOS and its SDK

2013-05-19 Thread Wim de Vries

On 05/19/2013 02:54 AM, Hotmail wrote:
I have to apologize for inaccurate info about the SDK, after 
rebooting, the SDK does work. The pitfall is that after installation, 
no prompt of a reboot. Other points still hold though.

*From:* Hotmail mailto:im...@hotmail.com
*Sent:* Sunday, May 19, 2013 8:06 AM
*To:* devel@lists.sailfishos.org mailto:devel@lists.sailfishos.org
*Subject:* Regarding SailfishOS and its SDK
...
First one, QT is great, but only supports C++ for native development 
is a big no no no. Remember, you are a startup, not Apple, you just 
cannot be so arrogant and like Apple, force Objective C down on 
people's throat. I had been a C++ dev for years, and I still loves it, 
C++ 11 is great. But boy, it's not for average developer and its 
productivity will never match that of C#, heck, it's even behind java, 
although with C++ 11, it's quite close, esp. with lambda. Nowadays, 
C++ just is not meant for app development. You have to swallow and 
digest that. At least support C# which is open now.

Maybe I do not understand your statement, but have you read about QML?

For the rest: your critic affects the basics of Sailfish (GUI, Qt, 
etc.). What you want is an I-clone or Win-clone -and you are completely 
entitled for this opinion- but that's not gonna happen.
This (devel) list is for those who want to get further, not for 
discussing a completely new OS and SDK.

Sailfish is unlike, I think you want like.


___
SailfishOS.org Devel mailing list

[SailfishDevel] opengl on Sailfish emulator

2013-05-18 Thread Wim de Vries

Hi,
When running a app with an QGLWindow I only get a black window.
The OpenGL works when deployed on the desktop.
Should I worry, or is this due to (my) virtualbox (Ubuntu 13.4 64bits)?
Thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] mediagallery won't work

2013-04-27 Thread Wim de Vries

Thanks for the reply.
QtMobility.gallery 1.1 is imported indeed.

But it seems that org.nemomobile.thumbnailer is missing.
It is not in the mediagallery example set.
I am not very knowledgeble on QML.
Any hint how to get/install this?
Thanks.



On 04/24/2013 05:28 PM, christopher.l...@thurweb.ch wrote:

Hi Wim

I have just done a quick test on Apple-pip my OSX host.

In my case the application opens successfully: I get pretty pictures 
on the SailfishOS Emulator.


My output is the following:

Display on requested
Qml debugging is enabled. Only use this in a safe environment!
Using the meego graphics system
libEGL warning: DRI2: failed to authenticate
Warning: specifying an object instance for initialPage is sub-optimal 
- prefer to use a Component

loaded the Generic plugin
Loaded the MeeGo sensor plugin
Requested sensor id ' orientationsensor ' interface not granted
Requested sensor id ' orientationsensor ' interface not granted
hijackWindow() context created for QDeclarativeView(0x70dd3108) 1
QGLWindowSurface: Using plain widget as window surface 
QGLWindowSurface(0x711193c8)
Successfully resolved MeeGo graphics system: 
/usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so


XISlaveSwitch


Do you have the QtMultimediaKit installed? The PreviewGrid.qml imports it
import QtMobility.gallery 1.1

See one of my earlier threads on the issue of installing QtMultimedia 
/ Mobility


Ciao

Chris

Zitat von Wim de Vries wsvr...@xs4all.nl:


Hi,
I am trying the mediagallery example (run).
No build errors, but the Sailfish VM turns to black (CTRL H won't 
help) and I get this message:


Display on requested

Using the meego graphics system

libEGL warning: DRI2: failed to authenticate

file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0: Expected 
token `numeric literal'


file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0: Expected a 
qualified name id


hijackWindow() context created for QDeclarativeView(0x71326128) 1

QGLWindowSurface: Using plain widget as window surface 
QGLWindowSurface(0x7141e488)


XISlaveSwitch

XISlaveSwitch

XISlaveSwitch

XISlaveSwitch









___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] adding a module to the Qt-sdk

2013-04-14 Thread Wim de Vries

Thanks.
The Sailfish mode (icon) is only possible if I create a (new) or open 
Sailfish project.

I tried a new project ... and that only allows Qt Quick applications.
My project 100% C++
I will post it as a separate topic.


On 04/14/2013 08:17 AM, christopher.l...@thurweb.ch wrote:

Hi Wim

I am the process of learning this sort of thing myself...

My (still somewhat hazy) understanding is that you will have to add 
new packages to both the SDK and the Emulator.


Packages on the SDK can be managed from within Qt Creator. (You should 
have a SailfishOS Icon to the left of your screen (under the Projects 
Icon).


To update the Emulator do the following:
1. connect to the Emulator via ssh:
ssh -i ~/.ssh/mer-qt-creator-rsa root@localhost -p 2223

2. su - (root password is nemo)

3. zypper in your package

b.t.w if you need to ssh to the Emulator:
ssh -i ~/.ssh/mer-qt-creator-rsa root@localhost -p 

Ciao

Chris


Zitat von Wim de Vries wsvr...@xs4all.nl:


Hi,
I have an aircraft navigation system (open source, see 
https://sourceforge.net/projects/pilotnavigator/) running on Ubuntu.

I have recently added the QtSerialPort module to it.
Now I want to port the system to Sailfish and I am running into 
problems with the QtSerialPort part.
On Ubuntu I build QtSerialPort into the Qt SDK, by running the qmake 
of the current SDK on the pro file of QtSerialPort source set.


I want to do the same for Sailfish but I don know how. As far as I 
understand does qmake (and the rest of the SDK) run on the MerSDK on 
a virtual box?
Should I copy the QtSerialPort source tree to this box and build it 
on this box?

Will it stay there?

Thanks.
___
SailfishOS.org Devel mailing list







___
SailfishOS.org Devel mailing list


[SailfishDevel] cannot deploy on emulator

2013-04-04 Thread Wim de Vries

Hi,
Ubuntu 12.10 64bits.
i am trying to build and deploy the mediagallery example, but it fails.
When the emulator starts I see some some mounting errors related to 
ext-fs, but it all flashes away...

I can get the sailfish screen with ctrl-H.

See below the compile output.
thanks.

11:31:21: Running steps for project mediagallery...

11:31:21: Starting: 
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/qmake 
/home/wim/SailfishOS/examples/SailfishOS/mediagallery/mediagallery.pro 
-r -spec linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug -after 
OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc


Project MESSAGE: Building with qdeclarative-boostable support

11:31:23: The process 
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/qmake 
exited normally.


11:31:23: Starting: 
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make 
-w


make: Entering directory 
`/home/mersdk/SailfishOS/examples/SailfishOS/mediagallery'


make: Nothing to be done for `first'.

make: Leaving directory 
`/home/mersdk/SailfishOS/examples/SailfishOS/mediagallery'


11:31:25: The process 
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make 
exited normally.


11:31:25: Checking whether to start Emulator...

11:31:25: Emulator is already running. Nothing to do.

11:31:25: Connecting to device...

11:31:35: Could not connect to host: Timeout waiting for reply from server.

Did the emulator fail to start?

11:31:35: Deploy step failed.

Error while building/deploying project mediagallery (kit: 
MerSDK-SailfishOS-i486-x86)


When executing step 'Start Emulator, if necessary'


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] cannot deploy on emulator

2013-04-04 Thread Wim de Vries

Well, answering myself:
QtCreator-Tools-Options-Devices I increased the time-out value to 
60secs.

Now it works!


Wim de Vries schreef op 2013-04-04 11:33:

Hi,
 Ubuntu 12.10 64bits.
 i am trying to build and deploy the mediagallery example, but it 
fails.

 When the emulator starts I see some some mounting errors related to
ext-fs, but it all flashes away...
 I can get the sailfish screen with ctrl-H.

 See below the compile output.
 thanks.

11:31:21: Running steps for project mediagallery...

11:31:21: Starting:
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/qmake
/home/wim/SailfishOS/examples/SailfishOS/mediagallery/mediagallery.pro
-r -spec linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug -after
OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc

Project MESSAGE: Building with qdeclarative-boostable support

11:31:23: The process
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/qmake
exited normally.

11:31:23: Starting:
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make
-w

make: Entering directory
`/home/mersdk/SailfishOS/examples/SailfishOS/mediagallery'

make: Nothing to be done for `first'.

make: Leaving directory
`/home/mersdk/SailfishOS/examples/SailfishOS/mediagallery'

11:31:25: The process
/home/wim/SailfishOS/share/qtcreator/MerProject/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make
exited normally.

11:31:25: Checking whether to start Emulator...

11:31:25: Emulator is already running. Nothing to do.

11:31:25: Connecting to device...

11:31:35: Could not connect to host: Timeout waiting for reply from 
server.


Did the emulator fail to start?

11:31:35: Deploy step failed.

Error while building/deploying project mediagallery (kit:
MerSDK-SailfishOS-i486-x86)

When executing step 'Start Emulator, if necessary'

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list