Results 1 to 2 of 2

Thread: qtoolbutton and not visible popup menu

  1. #1
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default qtoolbutton and not visible popup menu

    Hi Qt Users,
    I'm porting some code from qt 4.8.7 to qt 5.8.0 (using qt creator 4.7.2 and msvc_64).
    Attached below you can find a minimal complete example reproducing the issue ( this code work in qt 4.8.7 and the popup menu appear triggering the recent button, after choosing some files with the dialog).

    Basically this example is based on those example:
    http://doc.qt.io/archives/qt-4.8/qt-...s-example.html
    https://www.walletfox.com/course/qtopenrecentfiles.php

    But this example not works in qt 5.8.0 and the popup menu not appear even if the menu is present ( see the comment in the code).
    I really do not understand what I'm forgetting to do ... someone has an idea ?
    Thank you in advance for the answers

    PopUpMenuTest.zip

  2. #2
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtoolbutton and not visible popup menu

    I found that calling:

    Recentmenu->show();
    Recentmenu->activateWindow();

    works.... but this seem a really strange behaviour.
    Someone can point me in the right direction ?

Similar Threads

  1. Popup Menu
    By kavinsiva in forum Newbie
    Replies: 2
    Last Post: 25th September 2009, 11:09
  2. Replies: 3
    Last Post: 17th May 2009, 21:17
  3. qtoolbutton popup menu
    By anoar in forum Qt Programming
    Replies: 1
    Last Post: 6th December 2008, 06:20
  4. Replies: 12
    Last Post: 21st November 2008, 05:42
  5. QToolButton icon not updated in overflow menu
    By pabakertx in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 14:48

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.