Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Refresh window Qt  (Read 2747 times)

0 Members and 1 Guest are viewing this topic.

albert

  • Newbie
  • *
  • Posts: 2
    • View Profile
Refresh window Qt
« on: February 16, 2009, 08:15:41 am »
Hi,

I don't have much experience in using SFML, so forgive me if my questions are a bit stupid.

I have developped a simple application using Qt 4.4.3 and SFML 1.4. It justs grabs images from the hard drive and shows them inside a Qt MainFrame, changing them at a fixed frame rate. Then I made a simple dialog in order to choose the images I wanted to show.

In order to show the images inside a Qt widget I used the example code I found in the tutorial section, with the difference that I derived QSFMLCanvas from QFrame and not from QWidget.

This works perfectly when running my program under Windows XP Pro, but the same code has problems in Ubuntu Hardy 8.04 and 8.10. It shows images but when a window is placed in front of the images, SFML refreshes everything, including the top window. Is this a *bug* or am I missing something???

Another smaller problem is that the window does not refresh images when I am moving it. This happens in both Windows and Linux.


Can anybody help?

Thanks in advance,

albert

  • Newbie
  • *
  • Posts: 2
    • View Profile
Refresh window Qt
« Reply #1 on: February 24, 2009, 07:04:08 am »
Hello??? Anybody here??? Am I the only one using Qt and SFML?

repsilat

  • Newbie
  • *
  • Posts: 1
    • View Profile
Refresh window Qt
« Reply #2 on: April 28, 2009, 04:32:04 pm »
Many edits, long story short for me: My problems (and maybe those of the OP) are not caused by or related to SFML. My problems are the same in glxgears, and my problems for both apps disappear if I disable compositing in my WM. I suspect this is related to KDE, Qt 4.5 or a recent X.Org driver for Intel graphics cards.

My problems:
    - Content of the window shows through other windows (just the SFML content, not window borders or anything else.)
    - Considerable flickering while dragging the window (EDIT: Solution
here and here don't seem to work for me.)[/list]