将 QLineEdit 添加到 qtcreator(设计器)中的 qtoolbar
我无法从 IDE 本身将控件作为 QLineEdit 添加到 QToolbar,而不是通过添加代码(如果没有所见即所得编辑器,我无法进行任何 GUI 编码),
我还希望获得有关重叠控件的帮助。
最后一个问题是我如何通过将鼠标悬停在 QWebview 上来获取链接(更像是当网络浏览器向您显示您悬停的链接时。
抱歉问了太多问题,我是新手,您知道。
提前致谢)
I have trouble with adding controls as a QLineEdit to a QToolbar from the IDE itself not by adding code (I can't do any GUI coding without a WYSIWYG editor)
I'd also like help with overlapping controls on it.
Another last question is how can I get a link from QWebview by hovering it (more like when web browsers show you the link you hover on.
Sorry for asking too much questions i'm a newbie you know.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有些事情您无法使用设计器完成,向
QToolBar
添加QLineEdit
或其他小部件就是其中之一,但您可以做到轻松使用代码:QWebPage
有一个信号linkHovered
。There are some things you can't do with the Designer, and adding a
QLineEdit
or other widgets to aQToolBar
is one of them, but you can do it easily with code:QWebPage
has a signallinkHovered
.