Three tiny horizontal line top left corner always appearing (solved)
General and Desktop
3
Posts
2
Posters
825
Views
1
Watching
-
I am sure other Qt developer must have notice the 3 tiny white horizontal line in one column top left corner.
I like to ask how to remove this three tiny white line.Below is my code.
{
QPalette pal=palette();
pal.setColor(QPalette::Background, Qt::white);
setPalette(pal);
setAutoFillBackground(false);
m_pPalette= new QPalette();
m_pPixmap= new QPixmap(":/file/leftp.png");
m_pPalette->setBrush(QPalette:Background,QBrush(*m_pPixmap);
setPalette(*m_pPalette);
QWidget *centralWidget = new QWidget(this);
QGridLayout *layout = QGridLayout();
centralWidget->setLayout(layout);
}