-3

I tried to make a GUI like skype but without succeed. What I want is to make list of contact the same in skype list contact. when you click on some contact in that list, we could notice that a little frame appear, contact move down like in treewidget.

I have tried Qtreewidget, listwidget (with setitemWidget function) but nothing good.

sashoalm
  • 75,001
  • 122
  • 434
  • 781
  • And you're talking about windows ui, linux ui or mac ui? – Kamil Klimek Dec 07 '12 at 08:37
  • Also you should precise your question. Make some screens of what you want to achieve, show us code that you tried to use to make such effect – Kamil Klimek Dec 07 '12 at 08:52
  • http://www.casimages.com/img.php?i=121209050447717789.png looks at this picture: what I want is this: when you click on one item from the list of contact another widget is set at this same place like in the picture (see mouse) – Narcisse Doudieu Siewe Dec 09 '12 at 16:23

1 Answers1

0

look at these classes in the Qt documentation, QStandardItemModel, QStandardItem, QTreeView and QStyledItemDelegate

cppguy
  • 3,611
  • 2
  • 21
  • 36
  • the problem is not the item itself but the widget set at the place of the item. – Narcisse Doudieu Siewe Dec 09 '12 at 16:11
  • the problem is not the item itself but the widget set at the place of the item. From QListwidget, we have this function: setItemWidget ( QListWidgetItem *, QWidget * ) and with this, we can set any widget for the item. What I want is to set dynamicaly another widget when a click occurs. say that: I have item A in the QListwidget and first, I set widget B for item A ( with setitemwidget) and after a click over B I want to dynamicaly sets another widget ohter than B say C for example in the same place. This another widget (C)could be greater or smaller than B – Narcisse Doudieu Siewe Dec 09 '12 at 16:17
  • this image is taken from skype list contact, http://www.casimages.com/img.php?i=121209050447717789.png I want to do that – Narcisse Doudieu Siewe Dec 09 '12 at 16:21