Results 1 to 3 of 3

Thread: how to make menu visible false?

  1. #1
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question how to make menu visible false?

    how to make menu hide and show? means visible true and flase?

    show() and hide() not working.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to make menu visible false?

    What kind of menu is that? Do you really have to show/hide it manually? Maybe the menu's geometry is wrong. How is it not working? Try using QMenu::exec(QPoint) and you don't have to even use hide().
    J-P Nurmi

  3. #3
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: how to make menu visible false?

    I solved the problem using:
    void UartWidget::showMenu(bool show)

    {
    if(show)


    {
    createActions();
    createMenus();
    }
    else

    {
    clear();
    }
    }

Similar Threads

  1. Tracking separators in a menu (insertSeparator)
    By PrimeCP in forum Qt Programming
    Replies: 4
    Last Post: 25th January 2006, 19:10

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.