mattigot
29th August 2012, 12:11
hey,
how do i design the default button?
QPushButton* pb = new QPushButton(statusBar());
QPixmap pixmap(icon);//the file name of the icon
QIcon ButtonIcon(pixmap);
pb->setIcon(ButtonIcon);
QSize s(16,16);
pb->setIconSize(s);
QString tip(btnName);
pb->setToolTip(tip);
connect(pb, SIGNAL(clicked()), this, SLOT(statusBtnClicked()));
the button has an image in it (as meant to be)
but it has some kind for frame (border) with padding that wraps the button.
i want to remove that
how do i do that?
thank you
how do i design the default button?
QPushButton* pb = new QPushButton(statusBar());
QPixmap pixmap(icon);//the file name of the icon
QIcon ButtonIcon(pixmap);
pb->setIcon(ButtonIcon);
QSize s(16,16);
pb->setIconSize(s);
QString tip(btnName);
pb->setToolTip(tip);
connect(pb, SIGNAL(clicked()), this, SLOT(statusBtnClicked()));
the button has an image in it (as meant to be)
but it has some kind for frame (border) with padding that wraps the button.
i want to remove that
how do i do that?
thank you