Frage

Hey guys i'm having 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

War es hilfreich?

Lösung

  • 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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top