[SOLVED]Blink text in table
I got at tableview with items from a model.
Some of the rows should “Blink”
Just like in html and the Blink tag
I Use a QBrush (myBlink) to set the color of the text.
In a timerevent I simple change the Qbrush (myBlink) color but nothing happens.
I know that the timerevent runs.
I have tried to repaint the tabelview but nothing happens.
is it possible to do like this:
Maybe i should use the paintevent or something;
pls help
6 replies
I solved it in my own way.
- void Logs::BlinkTextRows()
- {
- int row_count = model->rowCount();
- int col_count = model->columnCount();
- QModelIndex index;
- for( int i = 0; i < row_count; i++ )
- {
- {
- {
- for (int j = 0;j < col_count;j++)
- {
- index = model->indexFromItem(model->item(i,j));
- if (hidden)
- else
- }//for
- } //if model..
- } //if compare
- }//For i
- if (hidden)
- hidden = false;
- else
- hidden = true;
- }
It wasn’t so hard in the end
You must log in to post a reply. Not a member yet? Register here!


