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

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