Gary van der Merwe
Gary van der Merwe

Reputation: 9523

Qt equivalent of GtkInfoBar

I just stumbled on GtkInfoBar (Documentation / Example with screen shot).

I have my own half assed implementations of this functionality in some Qt apps. I've struggled to get the themeing to work correctly.

Is there an equivalent of GtkInfoBar for Qt?

Upvotes: 2

Views: 141

Answers (2)

Karlson
Karlson

Reputation: 3038

I think that the closest to what you are looking for is the QStatusBar.

I am not sure about themes but you can add an remove widgets to the bar as needed.

Upvotes: 0

Patrice Bernassola
Patrice Bernassola

Reputation: 14416

I would use a QDockWidget. In your use case you have to:

  • Hide the title bar
  • Hide title button box (like close)
  • Forbid moving and floating option

Then you can add all the widgets you need in it. For theming it you can use style sheet like for all other widgets.

Hope that helps

Upvotes: 2

Related Questions