[Qt-interest] Anyone can help about skip taskbar under ms windows ?
Zeljko
zeljko at holobit.net
Tue Jun 28 08:46:38 CEST 2011
Bo Thorsen wrote:
> Den 25-06-2011 21:30, Zeljko skrev:
>> Hi all,
>> I've successfully implemented that under X11, but have problem under MS
>> Windows. Searched via MSDN but found nothing.
>> Basically taskbar can be skipped by adding parent to new window, but then qt
>> adds Qt::Tool into flags, and that window behaviour is same as StayOnTop
>> ...and that's bad ... also I've tried to create an hidden Qt::Tool win and
>> ther set that win as parent of my non-modal window, but then have problem
>> with z-order after minimize/restore (but that partially works).
>> Anyone ?
>
> Use a QDialog subclass for the second window. Those do not add taskbar
> entries.
>
> If that's not possible (if you need QMainWindow, for example) you can
> read the code in QDialog and copy it to your window.
>
> And then you tell the list what you did :)
No, it does not help because of qt concept.
1.QMainWindow = main app form
2.Children (non modal forms) are created with QMainWindow as parent
3.That works fine with taskbar - no entries in taskbar , only QMainWindow is
there (so no need to set Qt::Dialog flag ? )
4.Problem: you cannot raise main app (bring it to front) form because all such
children behaves like StayOnTop (there's no StayOnTop in flags, but Qt:Tool is
added internally by qt ), but in between them (children) it's ok.
So, generally, taskbar is fine (only main window is visible, when you minimize
main window, all others are minimized ... that's fine), but behaviour is bad -
cannot get main form into front of it's children ... (it's activated, you can
work with it ... but it's ugly that all it's children are in front of it, so you
have to move it to start your work).
zeljko
More information about the Qt-interest-old
mailing list