Hello guys,
Im doind this peace of code:
Qt Code:
  1. void mfit::insertVideoProperty(char *param_cy, char *value_cy)
  2. {
  3. // Cria o item referente a Tree
  4. QTreeWidgetItem *item = new QTreeWidgetItem(this->ui.videoPropertiesTree);
  5.  
  6. // Cria a lista de items
  7. QList<QTreeWidgetItem *> itens;
  8.  
  9. // Adiciona as colunas
  10. item->setText(0, param_cy);
  11. item->setText(1, value_cy);
  12.  
  13. item->setCheckState(0, Qt::Unchecked);
  14.  
  15. itens.append(item);
  16.  
  17. this->ui.videoPropertiesTree->insertTopLevelItems(0, itens);
  18. }
To copy to clipboard, switch view to plain text mode 

And with gdb want see the STRING stored in one QTreeWidgetItem, but, i cant get it , any1 can help me ?

Qt Code:
  1. Breakpoint 1, mfit::insertVideoProperty (this=0x54529a8, param_cy=0x430a85 "Name", value_cy=0x5515910 "fade_corte_dissolve.avi")
  2. at source/Interface.cpp:335
  3. 335 QTreeWidgetItem *item = new QTreeWidgetItem(this->ui.videoPropertiesTree);
  4. (gdb) n
  5. 338 QList<QTreeWidgetItem *> itens;
  6. (gdb) n
  7. 341 item->setText(0, param_cy);
  8. (gdb) n
  9. 342 item->setText(1, value_cy);
  10. (gdb) n
  11. [New thread 5744.0x1668]
  12. 344 item->setCheckState(0, Qt::Unchecked);
  13. (gdb) n
  14. 346 itens.append(item);
  15. (gdb) n
  16. 348 this->ui.videoPropertiesTree->insertTopLevelItems(0, itens);
  17. (gdb) n
  18. 349 }
  19. (gdb) print item->text(0)
  20. $11 = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1250}, alloc = 0, size = 0, data = 0x6a30d132,
  21. clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
  22. ref = {_q_value = 12}, alloc = 0, size = 0, data = 0x6a30d146, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,
  23. capacity = 0, reserved = 0, array = {0}}, d = 0x54fd560, static codecForCStrings = 0x0}
  24. (gdb) print item->text(1)
  25. $12 = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1250}, alloc = 0, size = 0, data = 0x6a30d132,
  26. clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
  27. ref = {_q_value = 12}, alloc = 0, size = 0, data = 0x6a30d146, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,
  28. capacity = 0, reserved = 0, array = {0}}, d = 0x54532d8, static codecForCStrings = 0x0}
  29. (gdb)
To copy to clipboard, switch view to plain text mode 
I get allways size = 0 , and NOTHING in data (data or d)
How to retrieve a string in QTreeWidgetItem columm ?