[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    How to focus a QDockWidget by a key shortcut?
From:       "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date:       2009-01-03 20:18:03
Message-ID: 200901032118.04456.kossebau () kde ! org
[Download RAW message or body]

Hi,

could it be that a QDockWidget is ignoring accelerator keys?

I used this code
	dockWidget->setFocusPolicy( Qt::StrongFocus );
	dockWidget->setFocusProxy( dockWidget->widget() );

It works insofar that a click on the titel of a QDockWidget sets the focus to 
the embedded widget. 
But pressing the set shortcut (as given by the underscore in the title) is a 
noop, the focus stays where it is. Yes, tabbed and untabbed.

What am I doing wrong?

Friedrich
-- 
Okteta - KDE 4 Hex Editor - http://utils.kde.org/projects/okteta
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic