[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problem with WType_Popup and QListBox
From: Joachim Ansorg <jockel123 () gmx ! de>
Date: 2000-06-18 13:08:13
[Download RAW message or body]
Perhaps it's useful to have a look into the popup exaample of QT2?
(examples/popup/)
--Joachim
Am Son, 18 Jun 2000 schrieb Joe Ninety:
> Hi,
>
> I'm writing an application that needs a popup window that is a QListBox.
> (ie. when you press a button, a window pops up containing a list box, from
> which you can make a selection. Selecting anything outside of the popup
> window results in the window disappearing. Basically, this is the
> behaviour of a menu.)
>
> I declare the QListBox as follows:
>
> myList = new QListBox(this, "myList", WType_Popup);
>
> When show() is called on myList, the popup window appears. Clicking
> anywhere outside of the popup window should make it lose focus and
> disappear, but instead those actions are ignored. It appears that myList
> is grabbing all of the mouse and keyboard events (even ones that should go
> to, for example, the panel in KDE). As a result, the user can't make the
> popup window disappear - effectively freezing the entire KDE interface.
>
> I've tried various things to force the popup window to stop grabbing mouse
> events (eg. releaseMouse()), but nothing works.
>
> I've used WType_Popup in a similar fashion for other widgets (all based on
> QFrame) without any problems.
>
> Anyone have any ideas on how to fix this?
>
> Thanks,
> joe90
>
> >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic