修改深度yAxis轴 baseline的线隐藏掉。

修改解释结论宽度,右侧边框被遮挡问题
修改岩心图片宽度,右侧边框被遮挡问题
This commit is contained in:
DESKTOP-450PEFP\mainc 2026-04-10 10:55:23 +08:00
parent 942de1c603
commit 66cb4e406f
4 changed files with 8 additions and 8 deletions

View File

@ -167,8 +167,8 @@ void TransparentDraggableResult::setRange(double left_Low, double right_Hight, b
{
if(left_Low >= right_Hight) return;
double lY1 = m_nShowPos*g_dPixelPerCm+mPlot->yAxis->range().lower;//+10
double lY2 = m_nShowPos*g_dPixelPerCm+(mPlot->yAxis->range().upper-mPlot->yAxis->range().lower)* (m_nConclusionProportion /100.0f);
double lY1 = m_nShowPos*g_dPixelPerCm+mPlot->yAxis->range().lower-1;//+10
double lY2 = m_nShowPos*g_dPixelPerCm+(mPlot->yAxis->range().upper-mPlot->yAxis->range().lower)* (m_nConclusionProportion /100.0f)-2;
mRect->topLeft->setCoords(left_Low, lY1);
mRect->bottomRight->setCoords(right_Hight, mPlot->yAxis->range().upper);

View File

@ -6042,7 +6042,8 @@ void FormDraw::initDepth(QMyCustomPlot *curv)
{
// x轴隐藏
curv->yAxis->setTicks(true);
curv->yAxis2->setVisible(false);
curv->yAxis->setVisible(true);
curv->yAxis->setBasePen(Qt::NoPen);
//curv->yAxis->setTickLabels(true);
curv->yAxis->setTickLabelSide(QCPAxis::lsInside);

View File

@ -81,7 +81,6 @@ MainWindowCurve::MainWindowCurve(QWidget *parent) :
ui->tableWidget_2->setStyleSheet("QTableView {border: 0px solid black;} QTableView::item {border: 0px solid black;} \
QTableView::item:selected {color:#57595B; background:#E4E4E4;}");
ui->tableWidget_2->verticalHeader()->hide(); //行
//ui->tableWidget_2->horizontalHeader()->hide();//列
int rowcount = 2; //总行数

View File

@ -180,8 +180,8 @@ void TransparentDraggableImage::setRange(double left_Low, double right_Hight, bo
left = (getLeft()/100) * mPlot->yAxis->range().upper;
width = (getWidth()/100) * mPlot->yAxis->range().upper;
double lY1 = mPlot->yAxis->range().lower+left;
double lY2 = width+left;
double lY1 = mPlot->yAxis->range().lower+left-1;
double lY2 = width+left-3;
mRect->topLeft->setCoords(left_Low, lY1);
mRect->bottomRight->setCoords(right_Hight, lY2);
@ -235,8 +235,8 @@ void TransparentDraggableImage::setRange(double left_Low, double right_Hight,dou
left = (leftPercentage/100) * mPlot->yAxis->range().upper;
width = (widthPercentage/100) * mPlot->yAxis->range().upper;
double lY1 = mPlot->yAxis->range().lower+left;
double lY2 = width+left;
double lY1 = mPlot->yAxis->range().lower+left-1;
double lY2 = width+left-3;
mRect->topLeft->setCoords(left_Low, lY1);
mRect->bottomRight->setCoords(right_Hight, lY2);