Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    Hi,


    Using QStackedWidgetItem application in Qt for symbian,the 2nd page is being displayed by overlapping the 1 st page ,wher i dont want that to happen .when i click a button of the 1st page it just have to display to the 2nd page ,where the 2nd page is to be displayed not by overlapping the 1 st page .

    Thanks and Regards
    Anamika

  2. #2
    Registered User ikteivi's Avatar
    Join Date
    Apr 2011
    Posts
    25
    Do you have any screenshots?

  3. #3
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Quote Originally Posted by Anamika View Post
    Hi,


    Using QStackedWidgetItem application in Qt for symbian,the 2nd page is being displayed by overlapping the 1 st page ,wher i dont want that to happen .when i click a button of the 1st page it just have to display to the 2nd page ,where the 2nd page is to be displayed not by overlapping the 1 st page .

    Thanks and Regards
    Anamika
    If you dont want to place one widget above the another why use QStackedWidget then

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    ,wher i dont want that to happen .when i click a button of the 1st page it just have to display to the 2nd page ,where the 2nd page is to be displayed not by overlapping the 1 st page .
    can you explain what your exact requirement.

  5. #5
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    I am unable to attach the screen shot of emulator in the forum.please tell me how to do this

  6. #6
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    How about uploading the pic to some service, like TinyPic.com and then share the link here?

    Also, if you have two forms, say View1 and View2, what stops you from instantiating View2 and showing it on the screen while hiding or even deleting the other one?

  7. #7
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    When i click the button of the first page ,it just have to navigate to the second page.

    In my case when i click the button of the first page ,the second page is being displayed by overlapping the first page

  8. #8
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by Anamika View Post
    When i click the button of the first page ,it just have to navigate to the second page.

    In my case when i click the button of the first page ,the second page is being displayed by overlapping the first page
    sorry but still not clear what is your required . is that you want the 2nd view to partially show on top of view 1 like a prompt dialog ?

  9. #9
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78



    When i click the button of the first page ,it just have to navigate to the second page.

    In my case when i click the button of the first page ,the second page is being displayed by overlapping the first page
    Last edited by Anamika; 2011-04-19 at 07:18.

  10. #10
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by Anamika View Post



    When i click the button of the first page ,it just have to navigate to the second page.

    In my case when i click the button of the first page ,the second page is being displayed by overlapping the first page
    it is more clearer now. for your requirement one way of your doing is just resize your widgets to your requirement.

  11. #11
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    ok when i call second view .the first view is still there.....my requirement is to view the navigation without overlapping. shall i use QStackedWidget.
    Last edited by Anamika; 2011-04-19 at 07:52.

  12. #12
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    note: QStackedWidget is used to show multiple widgets on same parent widget so might not fit for your requirement.

  13. #13
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Quote Originally Posted by Anamika View Post
    ok when i call second view .the first view is still there.....my requirement is to view the navigation without overlapping. shall i use QStackedWidget.
    As stated above QStackedWidget doesn't seem fit for use in this scenario.

  14. #14
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Seriously Anamika, is that the best you can do in terms of screen capture? You could make the simulator image a lot smaller and then put it in a 4000x4000 white background, see how that looks ... Don't you thing that what we needed to see is inside the emulator and not in the huge white background you provide?

    Have you read my earlier comment? What is wrong with the concept of hiding one view while showing the other? What is wrong with the concept of deleting one view while showing the other, newly instantiated? Or what is wrong with the QStackedWidget? Or what is wrong with explicitly hiding the widgets you don't want to see anymore?

  15. #15
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Yes, as said by ltomuta, showing current widget (call show() method for this) and hiding other widgets (call hide() method for this) is the easiest way for you to implement. Also putting a multiple widgets in QStackedWidget and then activating the current one using setCurrentIndex() method is also a state forward method.

Page 1 of 2 12 LastLast

Similar Threads

  1. How to create Multiple screen app in Qt for Symbian/Maemo?
    By narendar_discover in forum [Archived] Beginning Qt
    Replies: 7
    Last Post: 2011-04-25, 15:41
  2. Replies: 35
    Last Post: 2010-09-13, 12:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved