用 designer 新建 一个 FORM 选的 是 wideget
拉 一个 lineedit 上去。
wideget 的 focuspolicy 属性 在 designer 中 已经 设置为 strongfocus
lineedit 的 focuspolicy 属性 在 designer 中 已经 设置为 strongfocus
在构造函数 里 我加了
setWindowFlags(windowFlags() | Qt::FramelessWindowHint)
把标题栏隐藏掉了
编译运行 , 单击 一次lineedit , 为什么 lineedit 得不到焦点?
这是 为什么?
[ 此贴被ww18031901在2008-07-16 14:27重新编辑 ]