Results 1 to 3 of 3

Thread: How to achieve a kind of "View-Switching" with a single QML file?

  1. #1
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default How to achieve a kind of "View-Switching" with a single QML file?

    Hello,
    I am developing a mobile application where in I have to switch to different view on an user responce. For example, User is shown some content with a toolbar at the bottom to switch to another view, On clicking on that toolbar, I have to show different content.
    How can I do this effectively? Do I need to write some C++ code to acheive this?

    Thanks
    Chiru
    Last edited by chiru; 10th November 2010 at 06:43.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to achieve a king of "View-Switching" with a single QML file?

    Try this example:
    http://doc.qt.nokia.com/4.7/declarat...idget-qml.html

    I guess you can create something similar.

  3. #3
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: How to achieve a king of "View-Switching" with a single QML file?

    Thanks for the link. Now, I got the idea on how to do it.
    But, If my views are very complex and I have diferent qml files for different views. So, In my main qml file, I have to instantiate the views. If those views are self independent without any input from mail qml file needed, then how should I use those views in my mail qml file?

Similar Threads

  1. Replies: 9
    Last Post: 20th May 2010, 10:55
  2. Replies: 3
    Last Post: 15th February 2010, 18:27
  3. "Cannot run program "C:\Qt\4.3.3\bin\qmake": file not found
    By PeteH in forum Installation and Deployment
    Replies: 1
    Last Post: 7th February 2009, 01:48
  4. Replies: 3
    Last Post: 8th July 2008, 20:37
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05

Tags for this Thread

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.