Results 1 to 4 of 4

Thread: Qt controls blinking while update the values

  1. #1
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Qt controls blinking while update the values

    Im having a Qt widget based application which is having Slider , Progress bar . Im updating the values of each controls per every second basis like ui->my_Progress->setValue(timer_value); . The problem is the UI controls are blinking while updating the values in my ECU and it is working fine with the system. Also im using export QT_ONSCREEN_PAINT=force to run the application in my ECU.Any body having any idea on this.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt controls blinking while update the values

    Have you tried without QT_ONSCREEN_PAINT?

    Cheers,
    _

  3. #3
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt controls blinking while update the values

    No , If i run with out QT_ONSCREEN_PAINT=force , the application is not display in the board . Do you know any other equivalent command for this?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt controls blinking while update the values

    That sounds like there is something wrong with the whole setup.

    On sceen painting sidesteps double buffering, i.e. the widgets are not drawn into a buffer which is then drawn onto the screen as usual but drawing happens directly on the screen.
    This can be faster but can also lead to flickering, which I think is what you are seeing.

    My recommendation would be fix the setup so that you can at least try with double buffering.

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 28th July 2015, 09:27
  2. How to auto update values on QTableView?
    By vrltwe in forum Newbie
    Replies: 3
    Last Post: 30th December 2013, 21:19
  3. Replies: 0
    Last Post: 17th August 2013, 13:16
  4. Replies: 1
    Last Post: 23rd April 2013, 00:42
  5. Replies: 8
    Last Post: 25th February 2008, 18:00

Tags for this Thread

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.