[Qt-interest] How to make a QDialog that acts like a pop up

Ankit Agarwal ankit17.ag at gmail.com
Tue Mar 17 19:01:15 CET 2009


changeEvent(QEvent *event)QEvent::ActivationChange

may be this may just help....


On Tue, Mar 17, 2009 at 11:12 PM, John Eke <tonee47 at yahoo.com> wrote:

> Thanks a lot. WHere can I find this attribute though? I cant find it here:
>
> http://doc.trolltech.com/4.5/qdialog-members.html
>
> ------------------------------
> *From:* Ankit Agarwal <ankit17.ag at gmail.com>
> *To:* John Eke <tonee47 at yahoo.com>
> *Sent:* Tuesday, March 17, 2009 12:44:58 PM
> *Subject:* Re: [Qt-interest] How to make a QDialog that acts like a pop up
>
> Hi,I think that if you track the activationChanged for the dialogBox,
> thenyour problem can be solved.
>
> 2009/3/17 John Eke <tonee47 at yahoo.com>
>
>> Hi,
>>
>> I am developing an application that lets a user change the
>> brightness/contrast of an image. There is a button for this, but when that
>> button is pushed, a "floating dialog" pops up with some sliders. I remove
>> the border around the dialog so it doesn't appear to be a dialog. Problem is
>> since its a dialog, and theres no close button, you cant do anything else
>> till you hit escape. What I am trying to do is make it so that clicking
>> anywhere else would make the dialog disappear. Similar to how a popup
>> behaves. I tried using the Qt::Popup flag, but that didnt work. It styled it
>> like a popup which was nice, but it wouldnt disappear when I clicked
>> anywhere else.
>>
>> Any ideas?
>>
>> Thanks
>>
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> Regards,
> Ankit Agarwal
> SW Engineer
> Vegayan Systems
> email : ankit_agarwal at vegayan.com
> Blog : http://ankit17.wordpress.com
>
>


-- 
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090317/a2fef5f8/attachment.html 


More information about the Qt-interest-old mailing list