Results 1 to 15 of 15

Thread: create link to another qml file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014
    Posts
    104
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default create link to another qml file

    Hi, this could be an easy problem only however I can't find any solution on previous threads or on the net.

    I was able to create a link using Loader

    Qt Code:
    1. //mainfile.qml
    2. Rectangle
    3. {
    4. ColumnLayout
    5. {
    6. Image {}
    7.  
    8. Mousearea
    9. {
    10. onClicked: { loader.source = "anotherfile.qml" }
    11.  
    12. }
    13.  
    14. }
    15. Loader
    16. {
    17. id: loader
    18. anchors.fill: parent
    19. }
    20. }
    To copy to clipboard, switch view to plain text mode 

    My problem now is I wanted to create a link on anotherfile.qml mousearea to go back to mainfile.qml.

    Please advise, i am still new to this.
    Last edited by joko; 20th October 2014 at 18:57. Reason: updated contents

Similar Threads

  1. How to get size file in a link?
    By tamnv110 in forum Newbie
    Replies: 2
    Last Post: 29th June 2011, 23:17
  2. Replies: 11
    Last Post: 5th May 2011, 14:05
  3. Replies: 3
    Last Post: 18th December 2010, 17:22
  4. How to link to a DLL in PRO file
    By richardander in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2008, 12:30
  5. create symbolic link with Qt4
    By alan in forum Qt Programming
    Replies: 2
    Last Post: 27th March 2008, 17:11

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.