ColinDuquesnoy / QDarkStyleSheet

A dark style sheet for QtWidgets application
Other
2.76k stars 725 forks source link

Qwt legend can't fully displayed when dock to right #318

Open SupperPotato opened 1 year ago

SupperPotato commented 1 year ago

Describe Your Environment

Language

C++

Description / Steps to Reproduce [if necessary]

[Description of the issue] I applyed the qdarkstyle in my project which contians qwtplots,when I set Qwt legend dock to right, legend can't fully display.

    auto m_legend = new QwtLegend(ui->qwtPlot->canvas());
    ui->qwtPlot->insertLegend(m_legend,QwtPlot::RightLegend);
    m_legend->setMinimumWidth(90);
    m_legend->setDefaultItemMode(QwtLegendData::Checkable);
    auto curve=new QwtPlotCurve("testcureve01");
    curve->attach(ui->qwtPlot);

Actual Result

Here is the image actually: image

Expected Results / Proposed Result

Here is the image expected ,the legend fully displayed. image