Unsolved Maximized window
-
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? -
Hi,
Please show how you are doing it.
Also the platform and Qt version would be useful.
-
@SGaist Hi,
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.Windows 8.1
Qt 5.8.0http://i12.pixs.ru/storage/7/6/0/photo1png_4554857_25651760.png
http://i12.pixs.ru/storage/7/6/2/photo2png_4236928_25651762.png
http://i12.pixs.ru/storage/7/6/3/photo3png_5963956_25651763.png
http://i12.pixs.ru/storage/7/6/5/photo4png_8580922_25651765.png
http://i12.pixs.ru/storage/7/6/7/photo5png_7106095_25651767.png -
Can you share a minimal code sample of what you use `
-
-
@dxdws
You're dealing with OS features:- Resizing
- DropShadow
- Minimize Animation
- Aero shake
- System context menu
Qt::FrameLessWindowHint
: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
Happy learningWin32API
:) -
@IMAN4K I do not compile your example :(
This example will solve my problem with the Windows taskbar? -
@dxdws
It's not my example, it'sdeimos1877
's example !
Yes.you can simply open the link and see the demo image and then use it ! -
@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
qwinhost.cpp
qwinwidget.cpp -
@dxdws
I successfully run this under Windows10 + Qt5.8 + MSVC2015(QtCreator):
https://drive.google.com/file/d/0BxRSkzkLrTjVcGpVNS1xYms0ZzQ/view -
@IMAN4K
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. -
@jsulm
Yes, he compiled.
But the window still overlaps the taskbar, if it is automatically hidden. -
@dxdws
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 -
@IMAN4K
I need to guess how this is done in Photoshop. -
@dxdws
Are you sure this isn't the default behaviour on windows 8.1 ? (try to test for other window) -
@IMAN4K
I do not know. But there are other programs that have this effect.
Replay Media Catcher 6
Blizzard Battle