Results 1 to 1 of 1

Thread: how to implement the flickr demo page swap

  1. #1
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to implement the flickr demo page swap

    I am new to QML and am working on the top level navigation. The goal is to have 6 icons on the homepage, when one icon is selected, the homepage will move to the left while the new screen moves in from the left. This is the behavior of the flickr example when you click on the <View mode> button. For some reason, it isn't working for me. The project source code can be found at the links below:

    Main page: This contains everything and where I think the problem lies, code is below.

    Home page: This is the page that has the 6 icons, it does contain a property/signal which the Main page is getting and correctly setting a status text, so I am 99% sure this is working fine.

    6 different app pages: For now they are all simple rectangles with text in the center of them to reprocent each of the pages that should be loaded once an icon is clicked on. These pages should be off the screen on the start of the app, but they are all visible. The logic that controls their position is all in the Main page. Below is source to one of them, maybe it is the wrong type of control.

    http://www.miltonstreet.com/download...NavExample.zip (73,728 bytes)

    or

    http://www.miltonstreet.com/download.../NavExample.7z (63,852 bytes)

    Sam


    Added after 33 minutes:


    Figured it out, there where two issues:

    1: The when clause in the States where referenceing the wrong thing, it said main.currentPage, not container.currentPage
    2: On all the pages, the x, y, width, height and anchors.fill properties had to be commented out.

    it works like a charm now!
    Last edited by scarleton; 14th December 2010 at 13:16.

Similar Threads

  1. Swap on drag and drop
    By binaural in forum Newbie
    Replies: 0
    Last Post: 8th April 2010, 19:23
  2. How to implement page switching?
    By kellen851105 in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2010, 05:35
  3. swap cell widgets on QTableWidget
    By ulmly in forum Qt Programming
    Replies: 9
    Last Post: 5th March 2009, 10:18
  4. Flickr API
    By yogeshgokul in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2008, 21:43
  5. swap headers in QTableView
    By dimixan in forum Qt Programming
    Replies: 2
    Last Post: 26th May 2008, 20:44

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.