Results 1 to 2 of 2

Thread: Ambiguous shortcut overload

  1. #1

    Default Ambiguous shortcut overload

    I want to create a 'CTRL+W' shortcut for a child-widget of QMainWindow. Basically, I want to handle closing my window myself and not give this to QMainWindow to control. In addition, I want there to be a shortcut displayed in the menu. When attempting to create the shortcut, however, the following message appears:

    QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W

    How can I find and remove the automated shortcut created by QMainWindow, or simply tell QMainWindow not to do it?

  2. #2

    Default Re: Ambiguous shortcut overload

    Is this not possible?

Similar Threads

  1. Overload QGraphicsItem Move in Scene
    By D Cell in forum Newbie
    Replies: 2
    Last Post: 16th March 2010, 05:14
  2. Replies: 4
    Last Post: 6th May 2009, 08:08
  3. std::max_element and overload operator()
    By mickey in forum General Programming
    Replies: 2
    Last Post: 8th September 2008, 18:28
  4. QListBox overload
    By nleverin in forum Qt Programming
    Replies: 2
    Last Post: 20th December 2007, 21:49
  5. myclass::operator==() overload problem.
    By Nyphel in forum Qt Programming
    Replies: 4
    Last Post: 11th October 2007, 22:29

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.