Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UIs in C++ with Qt?

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 http://img685.imageshack.us/img685/7643/mockup.png

like image 361
Daniel Sorichetti Avatar asked Dec 09 '22 18:12

Daniel Sorichetti


2 Answers

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

like image 85
e8johan Avatar answered Jan 14 '23 10:01

e8johan


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.

like image 43
CMircea Avatar answered Jan 14 '23 10:01

CMircea