×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    28

    Dynamically show and hide widgets using PLLayout.

    Hi,

    I am using this:
    http://wiki.forum.nokia.com/index.ph...n_layout_in_Qt

    to switch between different layouts when the phone is rotated from landscape to portrait.

    I want to be able to show and hide certain widgets in the layouts.

    If I don't use PLLayout, the code works perfectly, and I can use show() and hide() successfully.

    However, if I use PLLayout, when I call show(), the widget is just shown on top of everything else, and not in the layout as it's supposed to be.

    Can anyone help me with this please? Has anyone had any successful experience with using this class, and can point me in the right direction?

    Thanks,
    Liz.

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    12

    Re: Dynamically show and hide widgets using PLLayout.

    Hi Liz, <as stated in PM - repeated here for general discussion>
    I have implemented a simple hide/show function in the simple test case and it works fine.
    In general, as I noted somewhere, the PLLayout is of course somehow "a hack", and some more complex layouts may not work.
    FOR EXAMPLE: each subwidget that is assigned into portrait layout MUST BE also assigned into landscape layout.
    Otherwise it is still there, but not assigned to an active layout, and then it will simply show up on top of all others.
    So my guess is, that in your case you have not assigned all widgets to both layouts, or may be it is already a problem if a widget is hidden during the initialization.
    So: if you are sure, that you have assigned all to both layouts, and still hide/show is a problem, than you may want to
    try to make sure that initially no widget is hidden, when being assigned to the P and L layouts, and when the PL layout is assigned as main layout.
    Then, after that, you should be able to hide/show.

    Best Regards

    Juergen

Similar Threads

  1. E72 and 6730c show battery information on widgets applications
    By wangxiangfeng in forum General Development Questions
    Replies: 1
    Last Post: 2010-11-29, 19:55
  2. Dynamically hide-unhide the application icon
    By elviin in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-04-28, 15:37
  3. Replies: 3
    Last Post: 2008-12-22, 11:44
  4. how to show and hide cursor of CEikEdwin dynamically?
    By JackSu in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-12-23, 16:38
  5. hide/show application icon dynamically
    By diablos_2003 in forum Symbian
    Replies: 0
    Last Post: 2006-03-21, 16:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×