hi,
I have created a frameless QWidget ,then i create a pushbutton and on its clicked signal i called the slot showMinimized() but my frameless widget is not minimizing.
here is the code
Qt Code:
  1. widget::widget(QWidget *parent):QWidget(parent)
  2. {
  3. setWindowFlags(Qt::FramelessWindowHint);
  4. QPushButton *button=new QPushButton(this);
  5. button->setGeometry(10,10,20,20);
  6. connect(button,SIGNAL(clicked()),this,SLOT(showMinimized()));
  7. }
To copy to clipboard, switch view to plain text mode 
this code runs perfectly in windows but does nt work in linux...Why??
Is there any other way to minimize frameless QWidget in linux.