修改界面
This commit is contained in:
@ -249,7 +249,8 @@ HPPA::HPPA(QWidget* parent)
|
||||
QDockWidget::title{
|
||||
background: #0E1C4C;
|
||||
/*border: 4px solid #2c586b;*/
|
||||
|
||||
/*padding-top: 10px;
|
||||
padding-bottom: 10px;*/
|
||||
|
||||
border-top: 1px solid #2c586b;
|
||||
border-left: 1px solid #2c586b;
|
||||
@ -312,38 +313,52 @@ HPPA::HPPA(QWidget* parent)
|
||||
gridLayout_hyperimgViewer->setSpacing(6);
|
||||
gridLayout_hyperimgViewer->setObjectName(QString::fromUtf8("gridLayout_hyperimgViewer"));
|
||||
gridLayout_hyperimgViewer->setVerticalSpacing(6);
|
||||
gridLayout_hyperimgViewer->setContentsMargins(10, 10, 10, 10);
|
||||
gridLayout_hyperimgViewer->setContentsMargins(1, 2, 1, 2);
|
||||
|
||||
m_imageViewerTabWidget = new QTabWidget();
|
||||
m_imageViewerTabWidget->clear();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD>棬<EFBFBD><E6A3AC><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>tab
|
||||
//m_imageViewerTabWidget->setTabsClosable(true);//<2F><><EFBFBD><EFBFBD>ÿҳ<C3BF><D2B3><EFBFBD><EFBFBD><EFBFBD>йرհ<D8B1>ť
|
||||
connect(m_imageViewerTabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabWidgetCurrentChanged(int)));
|
||||
m_imageViewerTabWidget->setStyleSheet(R"(
|
||||
QTabBar::tab {
|
||||
background: #0E1C4C;
|
||||
color: white;
|
||||
padding: 6px 12px;
|
||||
border: none;
|
||||
border-bottom: 1px solid #27376C;
|
||||
}
|
||||
|
||||
QTabBar::tab:selected {
|
||||
background: #0D1233;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/*QTabBar::tab:hover {
|
||||
background: #141A45;
|
||||
}*/
|
||||
|
||||
QTabWidget::pane {
|
||||
border: none; /* ȥ<><C8A5><EFBFBD><EFBFBD>ɫ<EFBFBD>߿<EFBFBD> */
|
||||
background: #0D1233; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ */
|
||||
}
|
||||
border: none;
|
||||
border-top: 1px solid #27376C;
|
||||
background: #0D1233;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
QTabBar::tab {
|
||||
background: #0D1233; /* <20><>ǩδѡ<CEB4><D1A1>ʱ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD> */
|
||||
color: white; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ */
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #0D1233;
|
||||
}
|
||||
|
||||
QTabBar::tab:selected {
|
||||
background: #1A2B6D; /* ѡ<>б<EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> */
|
||||
border-bottom: 2px solid #4A5FE0;
|
||||
}
|
||||
|
||||
QTabBar::tab:hover {
|
||||
background: #141A45; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣʱ<CDA3><CAB1><EFBFBD><EFBFBD>ɫ */
|
||||
}
|
||||
|
||||
QTabWidget QWidget {
|
||||
background: #0D1233; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
}
|
||||
QTabWidget QWidget {
|
||||
background: #0D1233;
|
||||
}
|
||||
)");
|
||||
QWidget* imageViewerTabWidgetContainer = new QWidget();
|
||||
QGridLayout* gridLayout_imageViewerTabWidgetContainer = new QGridLayout(imageViewerTabWidgetContainer);
|
||||
gridLayout_imageViewerTabWidgetContainer->setSpacing(6);
|
||||
gridLayout_imageViewerTabWidgetContainer->setObjectName(QString::fromUtf8("gridLayout_imageViewerTabWidgetContainer"));
|
||||
gridLayout_imageViewerTabWidgetContainer->setVerticalSpacing(6);
|
||||
gridLayout_imageViewerTabWidgetContainer->setContentsMargins(0, 0, 0, 0);
|
||||
gridLayout_imageViewerTabWidgetContainer->addWidget(m_imageViewerTabWidget, 0, 0, 1, 1);
|
||||
imageViewerTabWidgetContainer->setStyleSheet(R"(
|
||||
background: #0E1C4C;
|
||||
)");
|
||||
|
||||
QFrame* line = new QFrame();
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
@ -378,13 +393,13 @@ HPPA::HPPA(QWidget* parent)
|
||||
|
||||
|
||||
|
||||
gridLayout_hyperimgViewer->addWidget(m_imageViewerTabWidget, 0, 0, 1, 1);
|
||||
gridLayout_hyperimgViewer->addWidget(imageViewerTabWidgetContainer, 0, 0, 1, 1);
|
||||
gridLayout_hyperimgViewer->addWidget(line, 1, 0, 1, 1);
|
||||
gridLayout_hyperimgViewer->addWidget(m_chartView, 2, 0, 1, 1);
|
||||
|
||||
gridLayout_hyperimgViewer->setRowStretch(0, 1);
|
||||
gridLayout_hyperimgViewer->setRowStretch(0, 3);
|
||||
gridLayout_hyperimgViewer->setRowStretch(1, 1);
|
||||
gridLayout_hyperimgViewer->setRowStretch(2, 1);
|
||||
gridLayout_hyperimgViewer->setRowStretch(2, 2);
|
||||
|
||||
|
||||
dock_hyperimgViewerWidgetContents->setStyleSheet(R"(
|
||||
|
||||
@ -238,7 +238,7 @@ QToolBar QToolButton:hover {
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>RGB 相机</string>
|
||||
<string>轮播</string>
|
||||
</property>
|
||||
<attribute name="dockWidgetArea">
|
||||
<number>1</number>
|
||||
|
||||
Reference in New Issue
Block a user