修改深度yAxis轴 baseline的线隐藏掉。
修改解释结论宽度,右侧边框被遮挡问题 修改岩心图片宽度,右侧边框被遮挡问题
This commit is contained in:
parent
942de1c603
commit
66cb4e406f
|
|
@ -167,8 +167,8 @@ void TransparentDraggableResult::setRange(double left_Low, double right_Hight, b
|
||||||
{
|
{
|
||||||
if(left_Low >= right_Hight) return;
|
if(left_Low >= right_Hight) return;
|
||||||
|
|
||||||
double lY1 = m_nShowPos*g_dPixelPerCm+mPlot->yAxis->range().lower;//+10
|
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);
|
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->topLeft->setCoords(left_Low, lY1);
|
||||||
mRect->bottomRight->setCoords(right_Hight, mPlot->yAxis->range().upper);
|
mRect->bottomRight->setCoords(right_Hight, mPlot->yAxis->range().upper);
|
||||||
|
|
|
||||||
|
|
@ -6042,7 +6042,8 @@ void FormDraw::initDepth(QMyCustomPlot *curv)
|
||||||
{
|
{
|
||||||
// x轴隐藏
|
// x轴隐藏
|
||||||
curv->yAxis->setTicks(true);
|
curv->yAxis->setTicks(true);
|
||||||
curv->yAxis2->setVisible(false);
|
curv->yAxis->setVisible(true);
|
||||||
|
curv->yAxis->setBasePen(Qt::NoPen);
|
||||||
//curv->yAxis->setTickLabels(true);
|
//curv->yAxis->setTickLabels(true);
|
||||||
|
|
||||||
curv->yAxis->setTickLabelSide(QCPAxis::lsInside);
|
curv->yAxis->setTickLabelSide(QCPAxis::lsInside);
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ MainWindowCurve::MainWindowCurve(QWidget *parent) :
|
||||||
ui->tableWidget_2->setStyleSheet("QTableView {border: 0px solid black;} QTableView::item {border: 0px solid black;} \
|
ui->tableWidget_2->setStyleSheet("QTableView {border: 0px solid black;} QTableView::item {border: 0px solid black;} \
|
||||||
QTableView::item:selected {color:#57595B; background:#E4E4E4;}");
|
QTableView::item:selected {color:#57595B; background:#E4E4E4;}");
|
||||||
|
|
||||||
|
|
||||||
ui->tableWidget_2->verticalHeader()->hide(); //行
|
ui->tableWidget_2->verticalHeader()->hide(); //行
|
||||||
//ui->tableWidget_2->horizontalHeader()->hide();//列
|
//ui->tableWidget_2->horizontalHeader()->hide();//列
|
||||||
int rowcount = 2; //总行数
|
int rowcount = 2; //总行数
|
||||||
|
|
|
||||||
|
|
@ -180,8 +180,8 @@ void TransparentDraggableImage::setRange(double left_Low, double right_Hight, bo
|
||||||
left = (getLeft()/100) * mPlot->yAxis->range().upper;
|
left = (getLeft()/100) * mPlot->yAxis->range().upper;
|
||||||
width = (getWidth()/100) * mPlot->yAxis->range().upper;
|
width = (getWidth()/100) * mPlot->yAxis->range().upper;
|
||||||
|
|
||||||
double lY1 = mPlot->yAxis->range().lower+left;
|
double lY1 = mPlot->yAxis->range().lower+left-1;
|
||||||
double lY2 = width+left;
|
double lY2 = width+left-3;
|
||||||
mRect->topLeft->setCoords(left_Low, lY1);
|
mRect->topLeft->setCoords(left_Low, lY1);
|
||||||
mRect->bottomRight->setCoords(right_Hight, lY2);
|
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;
|
left = (leftPercentage/100) * mPlot->yAxis->range().upper;
|
||||||
width = (widthPercentage/100) * mPlot->yAxis->range().upper;
|
width = (widthPercentage/100) * mPlot->yAxis->range().upper;
|
||||||
|
|
||||||
double lY1 = mPlot->yAxis->range().lower+left;
|
double lY1 = mPlot->yAxis->range().lower+left-1;
|
||||||
double lY2 = width+left;
|
double lY2 = width+left-3;
|
||||||
mRect->topLeft->setCoords(left_Low, lY1);
|
mRect->topLeft->setCoords(left_Low, lY1);
|
||||||
mRect->bottomRight->setCoords(right_Hight, lY2);
|
mRect->bottomRight->setCoords(right_Hight, lY2);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user