示例#1
0
int main(int argc, char *argv[])
{
    Application app(argc, argv);
    app.setOrganizationName("XTab");
    app.setApplicationName("XTab");
    app.setOrganizationDomain("https://github.com/Andersbakken/xtab");
    app.setWindowIcon(QIcon(":/terminal.png"));
    TabWidget window;
    window.show();
    return app.exec();
}
示例#2
0
文件: Gui20.cpp 项目: azerupi/Natron
void
Gui::minimize()
{
    std::list<TabWidgetI*> panes = getApp()->getTabWidgetsSerialization();
    for (std::list<TabWidgetI*>::iterator it = panes.begin(); it != panes.end(); ++it) {
        TabWidget* pane = dynamic_cast<TabWidget*>(*it);
        if (!pane) {
            continue;
        }
        pane->show();
    }
    if (!_imp->leftToolBarDisplayedOnHoverOnly) {
        _imp->_toolBox->show();
    }
}
示例#3
0
文件: main.cpp 项目: WarmLights/QtLab
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QWidget *widget1 = new QWidget;
    QVBoxLayout *layout1 = new QVBoxLayout(widget1);
    layout1->addWidget(new QLabel("Inform"));

    QWidget *widget2 = new QWidget;
    QVBoxLayout *layout2 = new QVBoxLayout(widget2);
    layout2->addWidget(new QLabel("Switch"));

    TabWidget tabWidget;
    tabWidget.addTab(widget1, QIcon(":/current_inform"), "");
    tabWidget.addTab(widget2, QIcon(":/switch"), "");
    tabWidget.show();

    return app.exec();
}