Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
What can I do to make the taskbar always on top of my window if the window is maximized and the FramelessWindowHint flag is set.
I know that with this flag the window will always overlap the Windows task pane. How will this be avoided?
Please show how you are doing it.
Also the platform and Qt version would be useful.
I want to make a non-standard window interface.
I just want to understand how to make sure that my window does not overlap the taskbar.
When I turn off the titlebar and call the showMaximize () method, while the taskbar is automatically hidden, my window completely hides the taskbar.
If you look at the Photoshop program, the taskbar is on top - I want this effect.
Can you share a minimal code sample of what you use `
IMAN4K last edited by IMAN4K
You're dealing with OS features:
- Minimize Animation
- Aero shake
- System context menu
Produces a borderless window. The user cannot move or resize a borderless window via the window system. On X11, the result of the flag is dependent on the window manager and its ability to understand Motif and/or NETWM hints. Most existing modern window managers can handle this.
With this flag you say to window manager you don't want any OS feature to apply to your window so you should implement (fake) that features which give you full control.
If you want to save your time you could take a look at this: https://github.com/deimos1877/BorderlessWindow
@IMAN4K I do not compile your example :(
This example will solve my problem with the Windows taskbar?
@IMAN4K It does not compile. Maybe you know what I need to do to solve the problem?
@dxdws "It does not compile" - what about posting the error message?
multiple definition of `QWinWidget::eventFilter(QObject*, QEvent*)'
This error occurs about 40 times for functions, constructors, and destructors in
IMAN4K last edited by IMAN4K
I successfully run this under Windows10 + Qt5.8 + MSVC2015(QtCreator):
I also use this, but on windows 8.1
At first he can not find
Error: gdi32.lib: No such file or directory
Error: dwmapi.lib: No such file or directory
If I comment in the pro file LIBS + = gdi32.lib dwmapi.lib
Then 40 of the above errors occur.
@dxdws You're using MinGW as compiler, right?
Try with MSVC++ compiler.
Yes, he compiled.
But the window still overlaps the taskbar, if it is automatically hidden.
Well i don't think this could be implement and it changes in each windows version.
In windows 10 main window or dialogs doesn't overlap the taskbar (as also for photo shop).
Try thinking for other workaround
I need to guess how this is done in Photoshop.
Are you sure this isn't the default behaviour on windows 8.1 ? (try to test for other window)
I do not know. But there are other programs that have this effect.
Replay Media Catcher 6