SLD
::SLD(QWidget *parent, Qt
::WFlags flags
){
ui.setupUi(this);
}
void SLD::showCB(int x, int y, int w, int h)
{
label
=new QLabel(ui.
centralWidget);
label->setGeometry(x,y,w,h);
label
->setPixmap
(QPixmap("Resources/CB.bmp"));
}
{
mWidth = width();
showCB((mWidth-50)/2,0,100,50);
}
SLD::SLD(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
}
void SLD::showCB(int x, int y, int w, int h)
{
label=new QLabel(ui.centralWidget);
label->setGeometry(x,y,w,h);
label->setPixmap(QPixmap("Resources/CB.bmp"));
}
void SLD::resizeEvent(QResizeEvent * /* event */)
{
mWidth = width();
showCB((mWidth-50)/2,0,100,50);
}
To copy to clipboard, switch view to plain text mode
please help me.
Bookmarks