10

I'm following this tutorial for deploy qml to yocto. I'm using beaglebone black not raspberry but i think it is not important. When i ran cmd "./QmlProject" on beaglebone black , I had an error:

QBackingStore::endPaint() called with active painter on backingstore paint device

Does someone have a solution for this? or Does someone have a solution for deploy qml to yocto?.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Đại Ngoc
  • 109
  • 1
  • 10

1 Answers1

0

I am getting this warning when i am trying render my pdf file on linux using poppler.

my QT version 5.11

I have a doc viewer class with paint event method. It's gets QPaintEvent e (QPaintDevice) and calling method RenderPages with painter and this device. My code was:

DocViewer.cpp

void DocViewer::paintEvent(QPaintEvent *e)
{
    qDebug()<<"cccc";
    QPainter* painter = new QPainter(this);

    m_IDocWidget->RenderPages(painter);
}

A possible solution is ending painter after render pages

void DocViewer::paintEvent(QPaintEvent *e)
{
    qDebug()<<"cccc";
    m_painter->begin(this);

    m_IDocWidget->RenderPages(m_painter);
    m_painter->end();
}
Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219