Results 1 to 8 of 8

Thread: Screen Flashing

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Screen Flashing

    I created several screens using stacked widget. And I want one screen to be flashed, like warning.
    How can I make a screen flashing using Qtopia-4.2.2?

    Thanks & Regards,
    Arun.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Screen Flashing

    How is that flashing supposed to look exactly?

  3. #3
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen Flashing

    It should be like whenever I click a button , based on stack widget index it takes to a particular screen, where I will be having a BMP on a label. As soon as I go to that screen it should flash. I tried by changing the background color of a label, it is working, but it seems to be re-painting. Not as flashing. Flashing should appear like, flashing not as a repainting.

    This is what I am looking for? How can I do it?

    Thanks & Regards,
    Arun.

  4. #4
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen Flashing

    Any suggestions on screen flashing?

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Screen Flashing

    It's still not clear what you mean with flashing and repainting. If you set a certain background color, that will be the background color and that's it. If you want the background color to fade from one color to another, do it with a timer.
    J-P Nurmi

  6. #6
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen Flashing

    Hi JPN,
    Thanks for your quick reply,

    I am looking for a class or a function which will do flashing on a particular widget.
    I am trying to make label widget flashing, I tried changing background color with red and gray color for every 10msec timeout. Even then it seems to be appears as a repainting as it is supposed to do. But i don't want this type, I want something which looks like flashing.

    Is there any function or method for flashing in Qt? flashing in the sense blinking always as kind of threat warning, in the background.

    Thanks & Regards,
    Arun

  7. #7
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Screen Flashing

    Do you want a widget to flash or a QLabel specifcially to flash? In either case all you need to do is start a timer for the refresh time and in the timerEvent() alternate the colors you want.

    Its not very clear what you mean when you say, "even then it seems to be appears as a repainting as its supposed to do. but I don't want this type, I want something which looks like flashing."

    Maybe this is sort of what you're after, but instead of setting a new icon pixmap you want to set a color:

    http://www.qtcentre.org/forum/f-newb...get-14011.html

  8. #8
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen Flashing

    Hi Jim,

    Thanks for your info.

Similar Threads

  1. Creating a Screen Saver for Windows
    By spud in forum Qt Programming
    Replies: 1
    Last Post: 2nd November 2011, 15:58
  2. Using QGraphicsView as a Splash Screen (repaint issues)
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2008, 21:22
  3. Setting manually cursor position on multi screen systems
    By irreriwan in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2008, 09:47
  4. multi screen
    By Thomas Feldman in forum Qt Programming
    Replies: 5
    Last Post: 9th May 2007, 16:41
  5. regarding a touch screen driver for qt-embedded
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd March 2007, 10: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.