PDA

View Full Version : QStackWidget background image problem



zgulser
7th May 2012, 13:45
Hi,

As the title shows, my problem is regarding changing the backgorund of QStackedWidget with 2 pages.

I'm using qss file so using css. The first page is the default login page and it's background image loaded properly.

But when the login is finished and the second page is raised, the background image of it isn't loaded but first page' image stays at background.

I don't use QPallette or paintEvent method in the parent widget of my QStackWidget or one of my page classes.

Thanks in advance.

Added after 50 minutes:

By the way, the problem arised after I migrate to Qt 4.8.

With Qt 4.4 everything was working just perfect.

amleto
7th May 2012, 13:49
problem could be in your code or css. Nice of you to share it with us. Oh, wait.

zgulser
7th May 2012, 13:53
Oh by the way problem arised when I migrated to Qt 4.8.

In Qt 4.4, with same css, everthing was working just perfect.

zgulser
7th May 2012, 16:04
This is somehow similar for QTabWidget.

After the migration, it also changed a little bit with my same css I used with Qt 4.4