Results 1 to 5 of 5

Thread: Qt application runs slowly on RaspberryPi

  1. #1
    Join Date
    Jul 2014
    Posts
    26
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt application runs slowly on RaspberryPi

    Hi,

    I have finish my Qt application
    I'm using a raspberryPi as device

    The application consists on displaying data in a window
    I have a start button, Stop button, Reset and Exit

    I see that the application runs slowly, for example when I click on the stop button, I will wait a few secondes for stoping the display
    Other problem : I display my data on real time, so I will see the changement of data but its not the case, I see the changement each few seconds

    What do you think about the problem ?

    Thank you
    Last edited by AUDI_ENG; 10th July 2014 at 08:45.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt application runs slowly on RaspberryPi

    I think the problem is that you're asking your Pi to do too much work and it can't keep up. If you are plotting data in real time, there is probably so much painting stuff in the event queue that it takes the Pi a few seconds to get through it all before it can handle your click event.

  3. The following user says thank you to d_stranz for this useful post:

    AUDI_ENG (1st August 2014)

  4. #3
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt application runs slowly on RaspberryPi

    I display my data on real time
    I think it would be enough to update the display for example 25 times per second (each 40 ms).

  5. The following user says thank you to Infinity for this useful post:

    AUDI_ENG (1st August 2014)

  6. #4
    Join Date
    Jul 2014
    Posts
    26
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt application runs slowly on RaspberryPi

    Thank you

  7. #5
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt application runs slowly on RaspberryPi

    1. Are you using eglfs platform plugin and running your application without X11?
    2. RaspberryPi has a powerfull GPU and slow CPU with only one core, so it would be good to move as much as you can to OpenGL. You can check "GForce recursive shaders" example on http://quitcoding.com/?page=work - they are showing history graph based on sensors.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. QLineEdit loads slowly
    By iskenderoguz in forum Newbie
    Replies: 3
    Last Post: 17th June 2014, 09:10
  2. QwtDial works slowly in QWS
    By simophin in forum Qwt
    Replies: 1
    Last Post: 19th July 2010, 07:00
  3. QT WebKit running Slowly
    By darryncampbell in forum Qt Programming
    Replies: 0
    Last Post: 25th February 2009, 13:19
  4. Application starting slowly.
    By aj2903 in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2008, 11:19
  5. very slowly apps
    By swiety in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2008, 11:05

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.