Koen Deforche 3fb7e72b80 Several changes: 9 years ago
..
data 23c84d699e back-port WDialog fixes from v3 branch 16 years ago
icons d078beb917 see Changelog 16 years ago
CMakeLists.txt 9dd3f8912a see Changelog 14 years ago
CsvUtil.C 3fb7e72b80 Several changes: 9 years ago
CsvUtil.h 4fa78cecd6 Several updates: 11 years ago
FolderView.C ba46adce31 QNX build support 14 years ago
FolderView.h 23c84d699e back-port WDialog fixes from v3 branch 16 years ago
README.md 8455fb6ae2 added README.md files for examples, several bug fixes 13 years ago
TreeViewDragDrop.C 5079132ba7 Several changes: 10 years ago
about.xml 64684df250 see Changelog 15 years ago
styles.css 251a6cbc6a see Changelog 14 years ago

README.md

Treeview drag-drop example

The example shows a typical full-window application with a tree (a WTreeView) that represents different 'folders', and a table (a WTableView) which represents 'documents' that belong to this office. The size of these documents is shown in a pie chart (a WPieChart).

Two data models (WStandardItemModel) back these views: one for the folders, and one for the files.

Drag & Drop is configured so that files can be selected and dragged into a different folder. Changes to the model are automatically reflected in the relevant views.

How to run

See the README in the parent directory.

What it illustrates

  • Standard Item views and models
  • Drag & Drop with standard item models
  • Using a WPopupMenu
  • Using a dialog to edit data