views:

256

answers:

3

Coming from C#, I've decided to learn C++ with the Qt framework. I have one question though, what is the "correct" way to accomplish an UI like this one? This may be kind of subjective, but I'm sure that stacking image labels on top of each other isn't the right way.

browser mockup

+7  A: 

I'd recommend creating a plain old standard UI first, then to apply a stylesheet to it to achieve the required look. That way, you can concentrate on the functionality that you want (a QToolBar with buttons and a QLineEdit) and just do all the styling afterwards (or first).

e8johan
+1  A: 

You could also create your own QStyle, which is responsible for actual drawing of widgets.

el.pescado
+4  A: 

The top part is a toolbar. You can use a QMainWindow with a QToolBar, where you put several QToolButton's. You can then use a stylesheet to get that nice look.

iconiK