PDA

View Full Version : Set the Border of MainWindow After setWindowFlags(Qt::FramelessWindowHint);



santosh.kumar
10th November 2015, 05:35
Hi

I am using Qt 4.6.4 In Windows and setWindowFlags(Qt::FramelessWindowHint); Now My MainWindow becomes Without TitleBar but with without Border.

I want to set the Border and don't want to remove Border of Window after setWindowFlags(Qt::FramelessWindowHint);. Is there any style sheet for do this.

Kindly tell me the solution.

Thanks
Santosh

anda_skoa
10th November 2015, 10:11
Can you rephrase that?

You want to remove the standard border and add a different one?

Cheers,
_

santosh.kumar
15th November 2015, 14:28
Hi

Actually my project requirements is to use our own title bar. That's why I made using frameless hint window flags. I created custom title bar. But by using this flags default title bar and border removed. But we want that when we use custom title bar border should not be removed or else any style sheets to make border width and color.

Kindly reply this.

Why required... If one frameless dialog open above other frameless dialog on any button click. Both dialog' edges is merged.
That's why I need border of frameless dialog.

Thanks
Santosh