still nobody how to do this?
still nobody how to do this?
Have you seen QShortCut docs?
hi wysota,
I think you missed my question, when your application is not active status, how can you emulate the shortcuts keys.
QShortCut sounds only work for activated widget.
Isn't it how it works? That The "M" shortcut minimizes the current window?
Well, that doesn't surprise meOne can always hook to some other window using regular WinAPI means and intercept a message directed to another window. It's a dirty hack of course...
I am trying something similar.
While I managed to apply some styles to the Menubar and Toolbar, I am still facing a wall regarding margins/padding on the Central area of QMainWindow
What happens is that whatever "something" I add as QMainWindow::setCentralWidget( something ), this main area *always* show a padding.
I want to add a customer banner just below the Menubar (no Toolbar in my case). But this banner can never expand all the way to the top (right below the menu) and to the sides, there is always that 5-10pix padding.
I've tried a lot of different things in stylesheets, even this doesn't fix it :
Qt Code:
*, spacing: 0; padding: 0; margin: 0; }To copy to clipboard, switch view to plain text mode
Any advice would be really really appreciated !
How about bool QCoreApplication::winEventFilter ( MSG * msg, long * result ) or virtual bool QWidget::winEvent ( MSG * message, long * result )?
Sorry, i hadn't time to check it, but perhaps SC_MINIMIZE message is still sent by windows to frameless windows, but qt doesn't interpret it for frameless windows. I'm not sure about it but i think it's workth a try.
As for context menu, you could try to emulate it with popup QMenu or if you want to call real one try sending WM_SYSCOMMAND message with wParam=SC_KEYMENU
(http://msdn.microsoft.com/en-us/libr...60(VS.85).aspx)
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
Bookmarks