Add QLineEdit to qtoolbar in qtcreator (designer)

Hi guys, I have problems adding controls like QLineEdit to QToolbar from the IDE itself, and not by adding code (I cannot encode GUI without WYSIWYG editor)

I also need help with overlapping controls.

Another question: how can I get a link from QWebview by hovering it in place (moreover, when web browsers show you the link you hover over.

Sorry for asking too many questions, I'm a newbie you know.

Thank you in advance

+4
source share
1 answer
  • There are a few things you cannot do with the constructor, and adding QLineEdit or other widgets to 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 QWebPage signal.

+8
source

All Articles