Results 1 to 2 of 2

Thread: Loader Problem

  1. #1
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    3
    Platforms
    Windows

    Default Loader Problem

    Hello guys,

    Here is my loader code and I didn't understand how can the item1.qml work after it loads. Any idea?

    //loader.qml
    Qt Code:
    1. Item {
    2. id: item_1
    3. Image {
    4. id: image1
    5. source: "images/image1.png"
    6. }
    7. Loader {
    8. id: mainLoader
    9. MouseArea {
    10. onEntered: {
    11. mainLoader.source = "item1.qml";
    12. }
    13. }
    14. }
    15. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Loader Problem

    I don't think it will work because the mouse area does really cover any area.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 3rd July 2014, 12:46
  2. best way for a own animated loader?
    By janton in forum Newbie
    Replies: 2
    Last Post: 28th February 2012, 19:52
  3. Replies: 1
    Last Post: 20th February 2012, 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.