Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > >>> I've tried the patch on LyX/Mac. While it doesn't seem to affect >>> the focus issue (which, as Jean-Marc noted, is not a problem with >>> qt-3.3.x), it does change dialogs to be always on top -- to be >>> modal -- which is not desirable on the Mac, at least. > > Angus> I'm not disputing your observations, but I do find them > Angus> surprising. The Qt docs for Qt 3.2 state: > > To modulate a bit Bennett's claim (as far as I understand his > previous descriptions to me): the patch adds a stay-on-top behaviour > to dialogs (I just checked that it happens on linux too), not > modality (which would be to block the interface of the window > below). It may be that the two are the same with Aqua, for focus > policy reasons.
I'm not very good at bitwise fields, but a quick google turns up this if you want to ensure that your dialog is always on top. (QDialog dervies publicly from QWidget.) QWidget::setWFlags(Qt::WType_Dialog | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop); So, is the negation of that: QWidget::setWFlags(Qt::WType_Dialog | Qt::WStyle_Customize & Qt::WStyle_StaysOnTop); -- Angus