Qt4 is one of the most popular GUI tools, where you can create everything your heart desires. Each program that uses the Qt4 tool as a graphical interface has a set of custom widgets. Custom - means that the programmer modifies the standard class Qt4, creating most often a unique widget. Good programming rules force developers to create widgets independent of the situation where they are used. Therefore, you can use the class once written in several programs.
I bring to your attention some of the widgets written by me and other members of the Vialinx organization that I used in the programs.
')
Menu title (made by Liksys and Assuri)
You may have seen which menu for all KDE programs in the system tray. Pay attention to his title. I once became very interested in this title and did not understand how to implement it. A good friend of mine found the required portion of code in the KDE source code and I created the class “Menu” in which it is possible to place such a header.
In the screenshots, the headers differ only because of the used Qt versions by the programs.
Download menu source
Sidebar of the program (made by Assuri)
Pay attention to the left side of the program.
Widgets that can be placed on the panel can be completely different, as long as they are derived from the QWidget class. You can also change the position of this panel: top, bottom, left or right. The class is not yet fully finalized, but the foundation has already been implemented.
Download the sidebar source
Settings dialog and button with display and color selection (made by Assuri)
Almost every serious program has its own settings and their number cannot be contained in the menu, so you have to create a settings dialog. In fact, the settings are the least used part of any program, because when the user sets up the system for himself, he will do it again. At least rarely. But I think that if a user comes there at least once, then everything should be nice and clear there. I like the FireFox settings dialog, since the tabs contain not only text, but also icons, and images, as we know, are more quickly perceived and remembered than text. At least the designers of
TurboMilk think so. I tried to recreate the FireFox settings dialog interface on Qt and this is what happened:
I created the TabsView class, which provides a similar view of the tabs. Of course, there is also something to work on here and I will continue to develop it.
Download TabsView Source
Download button source with color
QTextBrowser navigation (done by Liksys)
One of my all-time favorite widgets that allows you to create a set of actions floating on top of a QTextBrowser. Actions may be completely different. But, most often, they are used for navigation.
Naturally, it is possible to change the location of the widget, add various actions, etc.
Download navigation source in QTextBrowser
In the future, I will upload new widgets created by me - this was only the first part. Anyone who wants to post their widgets can continue this topic and name their topic in the same way, but with a part of 2,3,4 ... N.
PS
I would like to encourage all GUI interface developers to create independent widgets so that other developers do not do double work. And also do not think that users will like your program if it has absolutely no thoughtful interface, even if it has very useful functionality. They immediately want to find a replacement for your program. I say this not as a developer, but as an ordinary user who builds on his experience.
I think Qt is worthy to have your own personal blog or at least be part of the “GUI toolkits” blog. I propose to create a blog "Qt Software".
Thanks for attention