<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">At 2013-09-11 22:50:03,"Thiago Macieira" <thiago.macieira@intel.com> wrote:
>On quarta-feira, 11 de setembro de 2013 19:08:35, nate.yuan@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.<br><br>Thanks Thiago, I got it. <br><br>Nate<br><br> >
>-- 
>Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Cente
</div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>