At 2013-09-11 22:50:03,"Thiago Macieira" <thiago.macie...@intel.com> wrote: >On 
quarta-feira, 11 de setembro de 2013 19:08:35, nate.y...@gmail.com wrote: >>  
Hi guys, >>  >>         I have a frameless dialog and implement the title bar 
by myself. I >> implement the mousePressEvent, mouseReleaseEvent and 
mouseMoveEvent of the >> dialog, so users can drag the dialog. Every thing 
works fine until I put a >> QLabel, which holds rich text,  on the title bar. 
The QLabel blocks the >> mouseReleaseEvent, so the dialog's mouseReleaseEvent() 
will never be >> called. When I use plain text in the QLabel, every thing works 
fine. >>  >>         Is this a bug of QLabel?  Or do I miss something? > 
>Probably not a bug. Do you get the mousePressEvent? The release event is  
>always sent to the same widget that accepted the mouse release. And QLabel  
>with rich text might contain links, so it may need to handle mouse presses.

Thanks Thiago, I got it.

Nate

 > >--  >Thiago Macieira - thiago.macieira (AT) intel.com >  Software Architect 
 > >- Intel Open Source Technology Cente
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to