PDA

View Full Version : Unwanted white border



Jake123
25th January 2013, 23:27
Hello,

I seem to be getting an unwanted white border between my background image and my widget windowframe.

I have tried different methods of setting the background, Stylesheet, palette etc but with no success :(

When i have used the background image before, it has fit perfectly without problem - but with the white border, the text and buttons are out of place in the theme.

My widget size is the same as the size of my background image, i have tried changing that with no success.

I am using:




QSize

Appsize(1200,650);


this -> resize(Appsize);
this -> setFixedSize(Appsize);



instead of




MyWidget -> resize(Appsize);
MyWidget -> setFixedSize(Appsize);


I dont suppose that this could effect it? I am using 'this' because when I use 'MyWidget' the widget is opened at the bottom right corner of my screen (Is there any way of making it open in the center as it does when I use 'this' - and why is it different?)

Thanks in advance, i really appreciate the help!

Santosh Reddy
26th January 2013, 12:16
I dont suppose that this could effect it?
Yes they can, unless MyWidget == this.

Where do you use "this" based code ?
and
Where do you use "MyWidget" based code ?