Results 1 to 1 of 1

Thread: problem in qtdemo[solved]

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problem in qtdemo[solved]

    hi friends,

    i just modified the qtdemo source by just introducing an new child node in xml file ...
    ex:
    <example filename="affine" name="Affine Transformations" >
    <subexample name="xxxx" />
    </example>

    i am able to create the sub menu and the buttons are showing when i press Affine Transformation button ... but when i press back button the MENU1 buttons are not reproducing ....

    i modified the code .
    Qt Code:
    1. void MenuManager::itemSelected(int userCode, const QString &menuName)
    2. {
    3. case ROOT:
    4. //out:
    5. this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
    6. this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
    7. this->score->queueMovie(this->currentInfo + " -out");
    8. this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
    9. // book-keeping:
    10. this->currentMenuCode = ROOT;
    11. this->currentMenu = menuName + " -menu1";
    12. this->currentMenuButtons = menuName + " -buttons";
    13. this->currentInfo = menuName + " -info";
    14. // in:
    15. this->score->queueMovie("upndown -shake");
    16. this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
    17. this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
    18. this->score->queueMovie(this->currentInfo);
    19. break;
    20. case MENU1:
    21. // out:
    22. this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
    23. this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
    24. this->score->queueMovie(this->currentInfo + " -out");
    25. // this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
    26. // book-keeping:
    27. this->currentMenuCode = MENU1;
    28. this->currentCategory = menuName;
    29. this->currentMenu = menuName + " -menu1";
    30. this->currentMenuButtons = menuName + " -buttons";
    31. this->currentInfo = menuName + " -info";
    32. // in:
    33. this->score->queueMovie("upndown -shake");
    34. this->score->queueMovie("back -in");
    35. this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
    36. this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
    37. this->score->queueMovie(this->currentInfo);
    38. break;
    39.  
    40. case BACK:{
    41. if(this->currentMenuCode == MENU1)
    42. itemSelected(ROOT, rootMenuName);
    43. else{
    44. itemSelected(MENU1, this->currentInfo);
    45. }
    46. break;
    To copy to clipboard, switch view to plain text mode 

    back button call from TextButton object is enabled ....
    where in case of ROOT back button is showing the root text buttons but when i press back button in MENU2 the buttons running out works fine but the MENU1 buttons not rendering ....




    any one who works on this qtdemo ... please help me ...

    thanks in advance ....
    Last edited by wagmare; 21st July 2010 at 14:41.
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Problem with Russian lang. in QtDemo apps on Ubuntu 9.10
    By sergey_85 in forum Qt Programming
    Replies: 0
    Last Post: 19th June 2010, 20:28
  2. QtDemo
    By Raymond in forum Qt Programming
    Replies: 7
    Last Post: 22nd April 2010, 11:52
  3. qtdemo question
    By link in forum Qt Programming
    Replies: 4
    Last Post: 24th February 2009, 17:04
  4. qtdemo.exe display problem with Qt 4.4.0
    By Dwarf007 in forum Installation and Deployment
    Replies: 5
    Last Post: 4th June 2008, 05:27
  5. qtdemo 4.4 looks like this on my machine!
    By magland in forum General Discussion
    Replies: 1
    Last Post: 25th May 2008, 07:55

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.