Qt-interest Archive, July 2007
Win32 Taskbar (how to add frameless widget? window flags?)
Message 1 in thread
I need my "top-level (frameless) widget" to appear in the Windows Taskbar.
It's the exact problem as this post in the archives (2005-August):
<http://lists.trolltech.com/qt-interest/2005-08/thread00747-0.html>
There's no reply. Does anyone have suggestions?
The window flags I'm using for this top-level widget toggle between:
Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint | Qt::Tool
...and...
Qt::Dialog | Qt::X11BypassWindowManagerHint
(but neither type of window appears in the windows task bar).
Thanks!
--charley
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
--
[ signature omitted ]
Message 2 in thread
Hi Charley,
> The window flags I'm using for this top-level widget toggle between:
>
> Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint | Qt::Tool
> ...and...
> Qt::Dialog | Qt::X11BypassWindowManagerHint
>
> (but neither type of window appears in the windows task bar).
It will show up in the task bar on X11 if you don't bypass the window
manager, i.e. don't use Qt::X11BypassWindowManagerHint.
On Windows you could use something like:
Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialog
...to get a fixed sized window with a tiny frame.
--
[ signature omitted ]
Message 3 in thread
Hi, Bjoern--
<snip, want custom (frameless) top-level widget to appear in Windows Task Bar.>
> It will show up in the task bar on X11 if you don't bypass the window
> manager, i.e. don't use Qt::X11BypassWindowManagerHint.
>
> On Windows you could use something like:
>
> Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialog
>
>...to get a fixed sized window with a tiny frame.
Thanks -- I removed Qt::X11BypassWindowManagerHint, because I didn't need it (it remained from previous experimentation).
My current flags are:
Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint
Yes, I get the thin border, and a title, but the application still *does not* appear in the Windows task bar.
Ideally, I'd have it in the task bar without a border (that was the goal).
In this case, it doesn't matter if I set the Qt::FramelessWindowHint flag or not (I get a frame when I use the Qt::WindowTitleHint).
How do you trigger an application to be entered into the Windows Taskbar? Is that something related to the internals of QMainWindow (that I'm trying to not use when making my top-level custom frameless widget?)
Thanks!
--charley
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
--
[ signature omitted ]
Message 4 in thread
> Thanks -- I removed Qt::X11BypassWindowManagerHint, because I didn't need it (it remained from previous experimentation).
>
> My current flags are:
>
> Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint
>
> Yes, I get the thin border, and a title, but the application still *does not* appear in the Windows task bar.
>
It works for me on Windows XP.
> Ideally, I'd have it in the task bar without a border (that was the goal).
OK, I thought a frame less window was the second best, but then you can
just use Qt::FramelessWindowHint as window flag. That one also shows up
in the task bar for me.
Cheers,
--
[ signature omitted ]