Skip to content

A completed implementation of navigation widget for qt, including a beautiful tabbar and a switchable stacked area.

Notifications You must be signed in to change notification settings

skykeyjoker/QNavigationWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QNavigationWidget

A completed implementation of navigation widget for qt, including a beautiful tabbar and a switchable stacked area.

Usage

You can generate the document of this project use doxygen. The Doxygen file is in the Src directory.

doxygen Doxygen

QNavigationTab

QNavigationTab is a implementation of tabbar.

Example:

#include "QNavigationTab.h"

void test()
{
    QNavigationTab tab;
    tab.addItem("Tab1", "This is Tab1");
    tab.addItem("Tab3", "This is Tab3");
    tab.insertItem(1, "Tab2", "This is Tab2");
}

QNavigationWidget

QNavigationWidget is a completed implementation of QNavigationWidget.

Example:

#include "QNavigationWidget.h"

void test()
{
    QNavigationWidget navigation;
    QWidget *page1 = new QWidget;
    QWidget *page2 = new QWidget;
    QWidget *page3 = new QWidget;
    
    navigation.addTab(page1, "Tab1", "This is Tab1");
    navigation.addTab(page3, "Tab3", "This is Tab3");
    navigation.insertTab(1, page2, "Tab2", "This is Tab2");
}

Customize the tab style

There are also some interfaces to customize the style of tab, including the backgroundcolor, selectedcolor, rowHeight and tabWidth. You can find them in the document or you can read the source code directly.

About

A completed implementation of navigation widget for qt, including a beautiful tabbar and a switchable stacked area.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published