On 09/11/2013 07:08 AM, 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? >
You could try: setAttribute(Qt::WA_TransparentForMouseEvents,true); > Nate > 09/11/2013 > > > > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest