Hello,
Yes It is possible to do this in WinCE.
Try this:
//Image to put in the button with transparence
QPixmap pixmapImage;
//Load home image
pixmapImage.load("Example.png");
//Creates the button
QPushButton * pButton;
pButton = new QPushButton("widget_parent"); //this is the widget parent to adapt
//Set transparence and the image
QColor transparent_color(0,0,0,0);
QPalette button_palette(pButton->palette());
button_palette.setColor(QPalette::Button, transparent_color);
pButton->setPalette(button_palette);
pButton->setIcon(pixmapImage);
pButton->setText("Example");
pButton->setIconSize(m_PixmapHome.size());
Hope this works for you;
Diegol
Bookmarks