So should I do something like this?
sadly.Qt Code:
#if defined(Q_WS_WIN) .... #endif #if defined(Q_WS_X11) .... #endifTo copy to clipboard, switch view to plain text mode
And, as I understand, under linux behaviour depends from current DE settings...
May be it is possible to use QDesktopServices, do you know?
Well, I think about creating a widget out of display region, and in focusInEvent make my "skinned" widget focused, but I think, it's too dirty hack...
Last edited by wysota; 4th September 2009 at 09:34.
What would desktop services have to do with that? What is exactly that you want to obtain?
Sorry for my english.
I want to use my own systems borders(1). So I set Qt::FramelessWindowHint flag.
But there is no my apllication on the task panel in that way.(2)
I want something like winamp - but skin systems does not requiered.
I read QDesktopServices docs, and not found anything, relative to my problem, it serves for desctop enviroment, not for task bar, so sorry for my question![]()
Try searching for a solution in WinAPI docs but I doubt you will be able to get the taskbar entry back after disabling system borders. You can try something else though... Don't disable the borders but instead mask them out using QWidget::setMask(). You should not lose the taskbar entry then but the borders wouldn't be visible and you could provide your own ones inside the client area.
wysota, thank you! setMask(rect()) works fine!
Bookmarks