Access:

» Writing applications with Qt 4.0, part III

Related categories: C/C++

Jacek Surazski
Viewed: 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

 

Qt

 

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.

Page: 1 2 3
Buy article Buy subscription
Buy now add to cart
add to cart
Standard price: 2€/$3 Standard price: 25€/$30
Buy article for as little as (2€/$3) each allow access to individual articles. Buy a full access to our Software Developers's Journal archive portal. You will be able to read the articles from all archive issues from year 2005 and 2006. For just 25€/$30 you get unrestricted access to the entire website for the whole year.
SDJhakin9

.SDJ Users:


.:Login
.:Password

[Register]
[Forgotten your password?]

...Shopping Cart

sum: 0 €
Choose currency:

...Topics

...Advertisement

www.acunetix.com www.verifysoft.com

...Conferences




...Print Edition Archive

...Affiliate Program



 

 

Subscribe | Contact Us | Newsletter | Privacy policy | Regulations | See all issues | About SDJ
Copyright C 2006 by Software Developer's Journal. All rights reserved.