[Qt-interest] black background of QFrame in Remote Admin program view

Serge mb0 at km.ru
Thu May 27 12:18:59 CEST 2010


Hello,

i have popup panel with QFrame descendants as buttons
On windows and MacOS it looks as i need - with background, specified in 
stylesheet of form.

But if i connect to windows machine with Remote Admin program, 
everything looks the same except this panel with QFrames, it has black 
background.

class CaptionButton : public QFrame
- class for buttons


constructor:

CaptionButton::CaptionButton( QWidget *parent )
: QFrame(parent)
{
	setObjectName("subjectAreaMenu");
...

paint event:
void CaptionButton::paintEvent( QPaintEvent * e)
{
	QFrame::paintEvent(e);
	QPixmap pm = btnImage(m_caption, rect().size(), checked(), m_hovered);
	QPainter p(this);
	p.drawPixmap(rect().topLeft(), pm);
}

why Remote Admin replaces background of button with black color?
how can i fix it?

Thank you!



More information about the Qt-interest-old mailing list