Does Qt support ribbon control?
Asked Answered
M

8

30

Does Qt support ribbon control?

Merrell answered 20/4, 2010 at 8:34 Comment(3)
@smerlin : sorry for being stupid but how ?Grabowski
@hamza: by creating your own widget class which provides the desired functionality. Such a widget would contain other predefined qt widgets, like QPushButtons. For overriding the default look of those widgets, you are left with 3 choices: a) stylesheets b) custom QStyle class, c) custom paintEvents. Option a) is the easiest, but has worst performance. Option b) is quite difficult and Option c) requires you to subclass thooes basic widgets like QPushButton aswell. Going with Option a) might be the best solution unless you have experience with creating custom QStyles.Jangro
Of course, but anyone not wanting to "reinvent the wheel" checkout my answer below! (just checked the time, at that time there was no free open-source implementation).Loleta
M
12

I want to share with you the link to site has published screenshots of their component Qtitan Ribbon for Qt. http://www.devmachines.com/qtitanribbon-overview.html

enter image description here

Menken answered 10/12, 2010 at 7:1 Comment(4)
Alas, the cost for this is far too high.Preexist
Just a heads-up: We are using a (different) component from this company and their support and documentation are abysmal. You might want to look for a different solution.Benzocaine
d= (-_- ) Thanks, but there are free alternatives like Qt-Ribbon-Widget as well! (Oh, just saw the date, at that time there were no good free alternatives).Loleta
$500 for a ribbon? Are they crazy?Grasso
T
3

While there is no dedicated Ribbon widget in Qt, you can fashion something similar yourself. You could take a QTabWidget and put some buttons inside (and optionally style it to look a bit more like Microsoft's Ribbon). Depending on what you're trying to accomplish, that might suffice.

Toritorie answered 27/4, 2010 at 3:44 Comment(0)
A
3

One of their sample apps apparently has a ribbon, so it should be do-able.

http://qt.nokia.com/images/products/vtk-designer-opengl-screenshot

Allo answered 8/10, 2010 at 15:26 Comment(1)
It is not the Ribbon control used in Microsoft Office. It's authored by Prashanth N Udupa, he named it Menu strip. Refer to his Qt Contest 2007 Award Winner : Generic Component Framework.Superscription
O
3

You can take any JavaScript/JQuery ribbon, insert it into QWebView and do whatever you want with it, using the Qt Webkit Bridge.

Outshoot answered 11/12, 2013 at 16:41 Comment(0)
L
2

There are free alternatives to QtitanRibbon by now, for example, checkout:
https://github.com/martijnkoopman/Qt-Ribbon-Widget

enter image description here

You can even directly use it in any *.ui file!
Simply add a QTabWidget in QtDesigner and then promote that widget to the Ribbon class.

Loleta answered 24/3, 2021 at 3:23 Comment(1)
Although this looks a little different, in my IMHO, better use this and never get sued by Microsoft (for looking exactly the same).Loleta
H
1

There is no Qt ribbon control. I believe there are license issues preventing Nokia from developing a ribbon control that is similar to Microsofts.

Heliport answered 20/4, 2010 at 8:41 Comment(2)
Not for long -- MS now owns Qt!Preexist
Never was a problem as tons of implementation on windows show. It was just that Qt does not favor GUI anymoresVigorous
D
0

No, it doesn't. I didn't find out any plan to support it in the future.

Discountenance answered 20/4, 2010 at 8:39 Comment(1)
While I agree, this should be a comment: it does not represents an answerVitia
C
0

We use QtitanRibbon, and it works very well for us. Support has been good, documentation on the short side. Worth noting that it not only provides a ribbon UI, it also makes it convenient to implement dark mode (or in our case, we opted for grey mode).

Catalectic answered 1/10, 2021 at 7:50 Comment(2)
But it is commercial solution, too expensive for individual developer.Tiein
The full ribbon behavior is quite complicated, so if you don't need that I suggest you follow the advice above to build a QTabBar populated with appropriate QToolButton actions.Catalectic

© 2022 - 2024 — McMap. All rights reserved.