Hi all:
I created a mainwindow(QMainWindow) and attached a listwidget(QListWidget) to it , I use QWidget::setMask() to make the mainwindow transparent , but the listwidget is transparent too . That isn't what I want .
So how can I make the listwidget visible when the mainwindow is transparent ?
I don't use QWidget::setWindowOpacity()because I develop this application on WIN_CE with a Qt-4.4.0 , this OS doesn't support this method !

here is my code:
Qt Code:
  1. ui.setupUi(this);
  2.  
  3. QSize Size = size();
  4. QPixmap maskPix(Size);
  5. maskPix.fill(Qt::transparent);
  6. setMask(maskPix.mask());
To copy to clipboard, switch view to plain text mode 

Thanks for you suggestion.