Hello all,
I've encountered few interesting things when playing with Sailfish SDK
which I would like to share with you and look for some answers here.
1. In the Sailfish Silica documentation page about QML PageStack there
is only one of the push methods described - push(). It's behavior is
simple it pushes page to stack and switches to it. In gallery of Silica
components you can see that there is also another way to push pages on
stack - that is through pushExtra(). What's interesting in the
pushExtra() method? It allows you to achieve a web browser-like
forward/back navigation through pages (as far as I remember thp was
interested in such functionality yesterday on #sailfishos). Anyway I
wonder why there is nothing about pushExtra() in the offical
documentation? Do we developers are not supposed to use it or is it
planned to be official for the future releases of Sailfish?
2. Regarding pushExtra() I noticed that when there is only initial page
(so one page on the stack) then even if you use pushExtra() you cannot
easily access to the next page (through swiping/flicking from left to
right) like it is possible, when there are already more pages on the
stack. Is there a solution for this problem?
3. I also found an interesting bug which you can easily achieve by using
push() then few times pushExtra() and then push(). It makes a a real
mess to the stack.
To let you understand all the points better here is a video that shows
above issues (yay! everyone loves videos!)
http://www.youtube.com/watch?v=UFfRy5zd2O8
Last but not least I would like to thank Jolla for releasing great alpha
SDK and our amazing community for what it is doing with it since it's
release.
Best regards,
Filip
PS. Some spelling errors I've found reading documentation:
https://sailfishos.org/sailfish-silica/qml-sailfishsilica-applicationwindow.html
Hierchical -> Hierarchical
provdes -> provides
PS2. It would be nice (at least for me) if the names of methods in
documentation would somehow differ from their description (bold or some
typewriter font?).
_______________________________________________
SailfishOS.org Devel mailing list