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 aQToolBar
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 signallinkHovered
.
精彩评论