try
int qAlpha ( QRgb rgba )
bool GuiButton
::hitButton ( const QPoint & pos
) const {
//QColor mcolor = icon().pixmap(iconSize()).alphaChannel().toImage().pixel(pos);
if ( qAlpha (icon().pixmap(iconSize()).alphaChannel().toImage().pixel(pos))== 0)
return false;
else
return true;
}
bool GuiButton::hitButton ( const QPoint & pos ) const
{
//QColor mcolor = icon().pixmap(iconSize()).alphaChannel().toImage().pixel(pos);
if ( qAlpha (icon().pixmap(iconSize()).alphaChannel().toImage().pixel(pos))== 0)
return false;
else
return true;
}
To copy to clipboard, switch view to plain text mode
Bookmarks