Results 1 to 2 of 2

Thread: hiding and displaying of widgets or frames

  1. #1
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default hiding and displaying of widgets or frames

    Hi guys,

    I have a problem, which boils down to the following:

    Assume a frame(or widget) with some items (textboxes and comboboxes) .
    On form load the entire frame(or widget) is hidden, using setVisible('false'). - this works
    When clicking some item in a combobox, the frame is shown using setVisible('true') - this works. Now when I click a next item of the combobox, I want the 'entire' frame or widget to this disappear. I cannot succeed in achieving this feat. Hiding works however when using the command for each individual item.
    I have tried this->repaint() or update().

    I wonder if the problem lies with this?
    The window is called by a main window, I would be doubtful that this is it, but not knowing exactly how the QT framework works, it might be worth mentioning

    thanks a bunch

    How must I hide the e

  2. #2
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: hiding and displaying of widgets or frames

    Ok, I've found the Solution. You need to consider the frame as receiver in an Action with operation hide()

Similar Threads

  1. qgridlayout and hiding widgets
    By Michael_Levin in forum Newbie
    Replies: 3
    Last Post: 21st May 2010, 17:47
  2. multiple frames/widgets interacting
    By sfabel in forum Newbie
    Replies: 0
    Last Post: 6th November 2009, 04:30
  3. Replies: 0
    Last Post: 7th August 2009, 19:21
  4. Help displaying frames from a webcam to the screen
    By stealth86 in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2007, 18:48
  5. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57

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.