Results 1 to 5 of 5

Thread: Qt 5.5 QML PageStack porting Sailfish App to Android

  1. #1
    Join Date
    Apr 2014
    Posts
    116
    Thanks
    8
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Qt 5.5 QML PageStack porting Sailfish App to Android

    Hi,

    I would like to port my Sailfish App to Android using Qt 5.5 and QtQuick 2.5. I managed to reuse my c++ file handler class but I am totally stuck on how to do the page stack. The "Hello World" example is only using one view and I could not find a extended Hello World with more views. How do you handle this? Do you putt all views in one file e.g. five Flickable{} and change the visibility? Or could I do several pages as I have in my Sailfish App?

    If there is a HowTo for PageStack I am happy to work through. Some hints on how a basic QML project structure should be would be nice, too.
    Last edited by KeineAhnung; 29th February 2016 at 17:19.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt 5.5 QML PageStack porting Sailfish App to Android

    I haven't worked with that PageStack element, but it sounds like a StackView could be a similar container.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    KeineAhnung (29th February 2016)

  4. #3
    Join Date
    Apr 2014
    Posts
    116
    Thanks
    8
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt 5.5 QML PageStack porting Sailfish App to Android

    Thanks for the hint. Looks like this is what I need.
    Playing around with StackView I keep getting this error: "qml: Warning: StackView: cannot transition an item that is anchored!" but the help tells me that I need to anchor it. o.O
    Also I cannot compile it for iOS or Android. Is StackView compatible with mobile devices?

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt 5.5 QML PageStack porting Sailfish App to Android

    Quote Originally Posted by KeineAhnung View Post
    Playing around with StackView I keep getting this error: "qml: Warning: StackView: cannot transition an item that is anchored!" but the help tells me that I need to anchor it. o.O
    Hmm, weird.

    Quote Originally Posted by KeineAhnung View Post
    Also I cannot compile it for iOS or Android. Is StackView compatible with mobile devices?
    I would be surprised if there was anything platform specific in this component.

    What do you mean with "cannot compile"?
    That the QtQuick Controls module does not compile?

    Cheers,
    _

  6. #5
    Join Date
    Apr 2014
    Posts
    116
    Thanks
    8
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt 5.5 QML PageStack porting Sailfish App to Android

    I probably did something wrong. Maybe I should start with something simpler first. Any god tutorial for developing mobile apps with Qt?

Similar Threads

  1. porting existing QtWidget app from linux to android
    By badril in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 10th August 2015, 11:10
  2. Advice and Questions for porting Qt app to Android
    By davethomaspilot in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 14th December 2013, 14:27
  3. Interface using by QML pageStack ??
    By ssaku in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2012, 05:46
  4. use pagestack.pop(page,immediate)
    By jindoniit in forum Qt Quick
    Replies: 0
    Last Post: 20th October 2011, 03:08
  5. memory increase when use PageStack
    By jindoniit in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 13th October 2011, 11:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.