Saturday, July 5th 2008, 2:28pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, February 27th 2008, 2:35pm

flickering problem

When I resize my application there is some flickering on the widgets that use background.
I use a png background image that is repeated many times. The background is set by css.
How can i fix this problem?
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

2

Wednesday, February 27th 2008, 2:41pm

the widget flickers or is it the whole win?
css??...
  • Go to the top of the page

3

Wednesday, February 27th 2008, 3:05pm

Flickers the widget that has background.
css = cascading style sheets
http://doc.trolltech.com/4.3/stylesheet.html

are there other ways to set a widget background?
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

4

Thursday, February 28th 2008, 8:16pm

:) qss huh? it could have been konq too..

1. what if you change png to some other format say jpeg/bmp/gif?
2. is the image with alphachannel? semi-transparent?
3. have you tried 0-margin 0-border 0-padding?
  • Go to the top of the page

5

Monday, March 3rd 2008, 10:05am

I tried all these things, the problem persists.
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

6

Monday, March 3rd 2008, 1:20pm

To avoid flickering you should try double-buffering.
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

7

Wednesday, March 5th 2008, 9:57am

How can i do?
Qt 4 does not use double buffer by default?
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

8

Thursday, March 6th 2008, 7:01pm

mac: flickering happens when rendering is done twice on same framebuffer memory area rite? so i think he will need to 'remove' double buffering. wat say?
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

9

Thursday, March 6th 2008, 7:04pm

ultra: found a solution?
i think programatically it would be too complex. for starters, why not try a show() and hide()? ie, hide the widget/appln and then do rendering and the do show().
wat would happen then?
  • Go to the top of the page

Rate this thread