Ahm*_*lah 4 c++ qt qt-creator qwebview qt-designer
嘿伙计们,我无法通过IDE本身将控件作为QLineEdit添加到QToolbar而不是添加代码(如果没有WYSIWYG编辑器,我无法进行任何GUI编码)
我也想帮助重叠控件.
另一个问题是如何通过悬停它来获取QWebview的链接(更像是当Web浏览器显示您悬停的链接时).
很抱歉提出太多问题我是你知道的新手.
提前致谢
有些事情你不能用Designer做,并且添加一个QLineEdit或其他小部件QToolBar是其中之一,但你可以使用代码轻松完成:
ui.toolBar->addWidget(yourLineEdit);
// or you can place it after an existing action:
ui.toolBar->insertWidget(ui.anActionInYouToolBar, youLineEdit);
Run Code Online (Sandbox Code Playgroud)QWebPage有一个信号linkHovered.