[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] QDialog's parent?
From: Jarek Zgoda <jzgoda () gazeta ! pl>
Date: 2004-01-26 15:55:34
Message-ID: 20040126155534.GA903 () zgoda ! biz
[Download RAW message or body]
In Qt's QDialog documentation (3.2.1) you can read:
#v+
Note that QDialog uses the parent widget slightly differently from other
classes in Qt. A dialog is always a top-level widget, but if it has a
parent, its default location is centered on top of the parent's
top-level widget (if it is not top-level itself). It will also share the
parent's taskbar entry.
#v-
What should be passed as "parent" in QDialog's constructor to achieve
such behavior? If I pass top level window (QMainWindow instance, which
is even logically a "main window"), the dialog shows centered on it, but
there are still separate entries on taskbar.
--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic