[PyQt] widget swap/widget on top

ad3d alhaddeshpande at gmail.com
Wed Jul 27 10:41:55 BST 2011


While using "window modality" one must use widget.hide() and widget.show()
which is not desirable for my purpose..
i need to disable widget in the background and keep top level widget
enabled..



Nick Gaens wrote:
> 
> I think you should take a look at "window modality" (
> http://doc.qt.nokia.com/latest/qwidget.html#windowModality-prop).
> 
> On Wed, Jul 27, 2011 at 07:46, ad3d <alhaddeshpande at gmail.com> wrote:
> 
>>
>> Hi guys,
>>
>>   if i press a button on mainwindow i want another widget i.e. widget1 to
>> popup, but that widget1 should be on top and the mainwindow should be
>> disabled.. same should happen if i try to open a new widget i.e. widget2
>> by
>> pressing a button on widget1 (widget 2 should be on top and other 2
>> widgets
>> should be disabled)
>>
>>  in this process i dont want to hide the disabled widgets/windows..
>>
>>  Can someone plz guide me to achieve the same..
>>
>>  Thanx in advance
>>
>> Regards,
>> ad3d
>> --
>> View this message in context:
>> http://old.nabble.com/widget-swap-widget-on-top-tp32145442p32145442.html
>> Sent from the PyQt mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
> 
> 
> 
> -- 
> Nick Gaens
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 

-- 
View this message in context: http://old.nabble.com/widget-swap-widget-on-top-tp32145442p32146604.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list