Need help with Qt-Ribbon-Widget?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

martijnkoopman
170 Stars 66 Forks GNU Lesser General Public License v3.0 6 Commits 1 Opened issues

Description

A Ribbon widget for Qt

Services available

!
?

Need anything else?

Contributors list

No Data

Qt-Ribbon-Widget

A Ribbon widget for Qt

Ribbon widget in a QMainWindow on Windows

Ribbon widget in a QMainWindow on Linux

Usage

  1. Add the following files to your project:
  2. ribbon.h
  3. ribbon.cpp
  4. ribbonbuttongroup.h
  5. ribbonbuttongroup.cpp
  6. ribbonbuttongroup.ui
  7. ribbontabcontent.h
  8. ribbontabcontent.cpp
  9. ribbontabcontent.ui

  10. Add a Ribbon to your window. The easiest way is to add a QTabWidget in QtDesigner and then promote this widget to a Ribbon.

  11. In code, add tabs, button groups and buttons to the ribbon.

Add tab 'Project'

ui->ribbonTabWidget->addTab(QIcon(":/icons/briefcase_1.svg"), "Project");

Add button on tab 'Project' in group 'Project'

  QToolButton *openProjectButton = new QToolButton;
  openProjectButton->setText(tr("Open"));
  openProjectButton->setToolTip(tr("Open existing project"));
  openProjectButton->setIcon(QIcon(":/icons/live_folder_2.svg"));
  ui->ribbonTabWidget->addButton("Project", "Project", openProjectButton);

License

This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE.md file for details.

Acknowledgments

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.