Skip to content

maximp/qt_test_task

Repository files navigation

Qt test task

Write an application that displays the file system structure using QTreeView.

QTreeView widget should have 3 columns:

  • Element name
  • File extension (for the folder the constant '<DIR>')
  • File size (empty for the folder)

Element name should be accompanied by an icon in the form of a square, filled with a single letter. The first letter of the element name is used as the letter.

For a folder, the fill color is blue, for a file - green. The color of the letter is white.

The folder name should be displayed in bold, and the file name in italics.

Renaming an element starts with a double click.

By pressing the Del key on the keyboard - selected items are deleted (as well as from the file system).

The file system scan should be delayed (the contents of the folder are read when this folder is selected) in a separate thread.

The model must be inherited from the QAbstractItemModel.

An input field must be provided to filter the display by element name.

Building

cmake and Qt5 must be installed.

make

Tested only on Linux platform.

Screenshots

Screenshot

Screenshot

About

Test task for Press Fire Games company

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published