1

I created a dialog with shadow effect

 Qt::WindowFlags flags = Qt::Dialog| Qt::FramelessWindowHint;

 QGraphicsDropShadowEffect* effect = new QGraphicsDropShadowEffect;
 effect->setOffset(4);
 effect->setBlurRadius(9);
 contWdget->setGraphicsEffect(effect);

This works perfect on windows but when I open the same dialog in Linux its showing dark black color border around the dialog.

What work around I need to do to make it work on Linux.

enter image description here enter image description here

Sijith
  • 3,740
  • 17
  • 61
  • 101

1 Answers1

0

To frameless window in linux use Qt::FramelessWindowHint like this :

QDialog *dialog = new QDialog();
dialog->setWindowFlags( Qt::FramelessWindowHint );
dialog->show();

screenshot

Tested on :

Qt Creator 4.3.1

Based on Qt 5.9.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)

Ubuntu 16.04 LTS

Farhad
  • 4,119
  • 8
  • 43
  • 66