Results 1 to 1 of 1

Thread: QGLWidget in Screensavers?

  1. #1

    Default QGLWidget in Screensavers?

    Hey folks!
    I was going to write a Screensaver for Windows (7), when I ran into a few problems. Maybe someone here can help me with that.
    As far as I know, a Screensaver is just some executable, that accepts the parameters "/s", "/c" and "/p", right? So I testet that, wrote little Screensavers and renamed the output file to "whatever.scr". Everything worked just fine.

    The problem only occurrs, when I use OpenGL. When I run it as "*.exe"-file, it's working just fine, but as soon as I rename it to "*.scr" and execute it, some of the OpenGL elements are not displayed.
    To make sure, this wasn't an error in my coding, I tried the same with a few of the Qt-Examples. Most worked fine, but there is one example called "Overpainting example". In the Background, there is a Qt-Logo, moveable by mouse. The foreground is filled with bubbles.

    When I compile that example and execute it, it looks just as it should.
    When I rename the "*.exe" file to "*.scr", all the bubbles are gone.

    I've never written a screensaver before, so I'm not even sure, if I can just rename exe-files, but that's what I heared/read.
    Can someone help me?

    Btw. I'm using qt 5.1.1 with mingw48 on Windows7 x64.
    Last edited by Schlecki; 28th October 2013 at 14:33.

Similar Threads

  1. One QGLWidget that manage QGLWidget childs
    By polch in forum Qt Programming
    Replies: 4
    Last Post: 12th December 2012, 11:26
  2. Using more than one QGLWidget?
    By Paulpro in forum Qt Programming
    Replies: 0
    Last Post: 1st November 2010, 07:43
  3. QGLWidget and VBO
    By kaszewczyk in forum Newbie
    Replies: 1
    Last Post: 6th May 2010, 10:04
  4. Can not use QGLWidget.
    By Teuniz in forum Installation and Deployment
    Replies: 3
    Last Post: 25th September 2007, 00:27
  5. QGLWidget bug
    By Wizard in forum Qt Programming
    Replies: 11
    Last Post: 31st August 2007, 11:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.