使用事件过滤器吧。捕获父窗口的点击事件,设置lineEdit No Focus。
点别的控件的时候QlineEdit上的光标就自动没了啊
使用eventFilter(QObject* watched,QEvent* event)吧
16,216
社区成员
26,595
社区内容
加载中
试试用AI创作助手写篇文章吧