开发者

Creating selected and clicked event handlers for Qframe

How can I create an event handler开发者_开发百科 for QFrame such as selected/clicked ??


QFrame doesn't expose mouse events directly as signals because that's not really its purpose - it's supposed to be used as a container for other widgets.

If you really want to handle mouse events in a QFrame then you'll have to derive a new class from it and implement the appropriate event handlers, e.g. mousePressEvent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜