Search:
|
Access:
» Writing applications with Qt 4.0, part IIIRelated categories: C/C++ Jacek SurazskiViewed: 3958 | Article date: 2006-01-18 14:38:47 QtCommander is a program to manipulate files and directories on disc. In the first four versions of this program we familiarised ourselves with classes required to construct a main window of the application, along with classes letting one design models and views. However, current implementation of QtCommander is capable to browse directories. In this article Jacek describes how to improve model and view, using the drag-and-drop mechanism and in-line editing.
The author is an employee of the company Trolltech. His task is development of Qt Designer, as well as of numerous Qt classes. Contact with the author: jaceks@trolltech.com
Last month we began writing an application called QtCommander - a program to manipulate files and directories on disc. In the first four versions of the program we familiarised ourselves with classes required to construct the main window of the application, along with classes letting one design models and views. However, current implementation of QtCommander is capable only of browsing directories. In this article I will describe how to improve the model and the view so that their contents can be modified, using the drag-and-drop mechanism and in-line editing. Version 5
Figure 1. QtCommander v5
In this version we will improve DirModel with functions allowing modifications of data it contains. Next, we will implement drag-and-drop in DirView.
|
|
Copyright C 2006 by Software Developer's Journal. All rights reserved.






SDJ Users:
Shopping Cart









