0
votes

I am started to implement the microsoft ribbon interface on the qt library but finally understand that it is too complex task for me.

So I decided to use native mfc ribbon inside my application.

But the main question is how to do this?

1
There is no "native MFC ribbon". MFC provides a wrapper around the native ribbon framework exposed through the Windows API. It is unclear what you are having problems with, or why you expect that using fewer abstractions would make the job easier.IInspectable
MFC wrapper take few work to self, but I would appreciate for help with Win API too. I mean how to use this ribbon toolbar in qt application.AeroSun

1 Answers

1
votes

Qt does not have native "MFC Ribbon", but the closest thing available is QTabWidget. You can use CSS stylesheets to make it look somewhat like MFC Ribbon. If you want exact look of MFC Ribbon, then you need to reimplement paintEvent and draw the widget as you need.
Some CSS Examples to get you started.
1) https://gist.github.com/espdev/4f1565b18497a42d317cdf2531b7ef05
2) http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

There is a pre-built library called QtitanRibbon, although it's not free take a look into the free trial version.
Also check out this answer