how update a qListView in backgroud

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Reinaldo Carvalho

    #1

    how update a qListView in backgroud

    Hi,

    I programming with qt module and i have a qWidgetTab with a qListView
    inside, and i need update the qListView every 5 seconds, how do this
    on transparent mode to user. I do a function to update, but i dont
    know call then.

    I will start this update when user select this tab, and stop whe user
    leave this tab. I need a thread ot something else?

    --
    Reinaldo Carvalho
  • Tina I

    #2
    Re: how update a qListView in backgroud

    Reinaldo Carvalho wrote:
    Hi,
    >
    I programming with qt module and i have a qWidgetTab with a qListView
    inside, and i need update the qListView every 5 seconds, how do this
    on transparent mode to user. I do a function to update, but i dont
    know call then.
    >
    I will start this update when user select this tab, and stop whe user
    leave this tab. I need a thread ot something else?
    >
    Assuming PyQt4 here:
    Check out QTimer. Have it start when the user selects the tab and have
    it timeout every five seconds calling the update function.

    Tina

    Comment

    Working...