Hi All,
I am using Qt4.5 .I am having a problem in minimizing frameless window while working on linux platform
I used the following code
#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QWidget>
Widget
::Widget(QWidget *parent
): QWidget(parent
), ui
(new Ui
::WidgetClass){
ui->setupUi(this);
setFixedSize(293, 711);
setWindowFlags ( Qt::FramelessWindowHint ) ;
b->setGeometry(20,20,120,30);
connect(b,SIGNAL(clicked()),this,SLOT(showMinimized()));
}
#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QWidget>
Widget::Widget(QWidget *parent): QWidget(parent), ui(new Ui::WidgetClass)
{
ui->setupUi(this);
setFixedSize(293, 711);
setWindowFlags ( Qt::FramelessWindowHint ) ;
QPushButton *b=new QPushButton("hello",this);
b->setGeometry(20,20,120,30);
connect(b,SIGNAL(clicked()),this,SLOT(showMinimized()));
}
To copy to clipboard, switch view to plain text mode
if i run the same code on Windows platform & MAC operating System it works....
What is the alternative to minimize the frameless window on click on button in linux ?
Reply soon
Thanx
Bookmarks