开发者

Add a QLineEdit to a qtoolbar in qtcreator (designer)

I have trouble with adding controls as a QLineEdit to a QToolbar from the IDE itself not by adding code (I can't do a开发者_JAVA技巧ny 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


  • There are some things you can't do with the Designer, and adding a QLineEdit or other widgets to a QToolBar is one of them, but you can do it easily with code:

    ui.toolBar->addWidget(yourLineEdit);
    // or you can place it after an existing action:
    ui.toolBar->insertWidget(ui.anActionInYouToolBar, youLineEdit);
    
  • QWebPage has a signal linkHovered.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜