crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )


  Ответ в Using Drag and Drop with Item Views
Введите ваше имя
Подтвердите код

Введите в поле код из 6 символов, отображенных в виде изображения. Если вы не можете прочитать код с изображения, нажмите на изображение для генерации нового кода.
 

Опции сообщения
 Включить смайлы?
Иконки сообщения
(Опционально)
                                
                                
  [ Без иконки ]
 


Последние 10 сообщений [ в обратном порядке ]
Admin Дата 13.12.2007, 12:08
  Using Drag and Drop with Item Views
http://crossplatform.ru/documentation/qtdo...el-view-dnd.php

Сделано.

Осталось не переведенным:
Цитата
When a drop occurs, the model index corresponding to the parent item will either be valid, indicating that the drop occurred on an item, or it will be invalid, indicating that the drop occurred somewhere in the view that corresponds to top level of the model.


Цитата
We initially examine the row number supplied to see if we can use it to insert items into the model, regardless of whether the parent index is valid or not.


Цитата
If the parent model index is valid, the drop occurred on an item. In this simple list model, we find out the row number of the item and use that value to insert dropped items into the top level of the model.
Просмотр темы полностью (откроется в новом окне)
RSS Текстовая версия Сейчас: 25.4.2024, 14:27