Results 1 to 6 of 6

Thread: Is there some way to block shortcuts from keyboard temporary?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there some way to block shortcuts from keyboard temporary?

    Will this thread be useful to you ??


    also will making the dialog as modal help you ?? am not clear whats ur sequence of saving the data..

  2. #2
    Join Date
    May 2006
    Location
    Stockholm, Sweden
    Posts
    81
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Is there some way to block shortcuts from keyboard temporary?

    Hi!

    I'm looking on the thread right now. But since you've asked I'll explain the save sequence. It's verry simple:
    I open one of the QFileDialog::getFileName(). I think it is modal. The menu is greyed. The other shortcuts in the menu is turned off... that is, I can't quit the app with Ctrl+Q if the save dialog is open. But the menu steals the "W" pressed key when I try to write a name containing a 'W'...

    I don't know yet if the thread is to any help. I'm not sure how I would use it... but thanks anyway. As I said before, I'm looking at it right now.

    thanx
    pir

  3. #3
    Join Date
    May 2006
    Location
    Stockholm, Sweden
    Posts
    81
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Is there some way to block shortcuts from keyboard temporary?

    Hi again!

    I've solved the problem. When I called QFileDialog::getFileName() I put the QMainWindow as parent for it... but if I set the QMainWindow->menuBar() as the parent, all the events are blocked in the menuBar.

    thanks for all the help, it is often when I have to explain the problem that makes me rethink and automatically finds the solution.
    pir

Similar Threads

  1. Keyboard shortcuts problem.
    By Lemming in forum Qt Programming
    Replies: 4
    Last Post: 5th April 2006, 16:12

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
  •  
Qt is a trademark of The Qt Company.