Forum
Sign Up
× DataGrid for Qt.C++

[Request] Practical QtitanDataGrid example code

1 week 6 days ago #1 by GYEYOUNG TNI
[Request] Practical QtitanDataGrid example code

I am currently using Qt 5.15.13 and QTitanDataGrid 8.0. I am having a lot of difficulty implementing the following features due to lack of help and examples and would like to request working example code.

The request

The goal is to implement a file explorer-like functionality.

1. use our own model that inherits from QAbstractItemModel. The current example code does not help by using QStandardItemModel, which is very slow.
2. Drag & Drop should be supported.

Detailed requests

1. receive and handle events when a file or directory is dragged from the File Explorer and dropped into the Grid.
- Currently, the checkDragDrop event is not called.
- Also, the cursor icon should change appropriately at this time; currently, it is always done with the forbidden icon, which is the default icon for drag & drop.
- Also, the drag image generated by the explorer should be displayed. Currently, only the forbidden icon appears, and the image generated by the explorer is not displayed when dragging and dropping from the explorer.

2. when displaying a list, show directories and show files. This should also be maintained when doing size sorting etc in the columns.

3. receive and process an event when a file, etc. is selected inside the grid and dragged into a folder.
- Currently, events are fired, but the ( startDragDrop, endDragDrop ) icons appear as prohibited icons, and the image generated from selectedRowsToPixmap is not displayed.

4. Receive a focus event from where the mouse cursor is located when dragging inside the grid, or when dragging outside, to show the focus of that Row.


Request clarification on the following detailed function call conditions, etc.

GridViewBase::startDragDrop, GridViewBase::endDragDrop, GridViewBase::checkDragDrop, GridViewBase::dragDrop


PS. QtitanDataGrid 8.1 has been mentioned in this forum, what are the changes and when will it be released?
PS. What is the roadmap for 2024 for this library?

=========================================================

[Request] 실용적인 QtitanDataGrid 예제 코드

현재 저는 Qt 5.15.13 과 QTitanDataGrid 8.0 을 사용하고 있습니다. 아래와 같은 기능을 구현하는데에 도움말 및 예제의 불충분으로 많은 어려움을 겪고 있으며 작동하는 예제코드를 요청합니다.

요청 사항

목표는 파일 탐색기와 같은 기능을 구현하는 것 입니다.

1. QAbstractItemModel 을 상속한 고유의 모델을 사용합니다. 현재 예제코드는 QStandardItemModel 을 사용하여 도움이 되지 않습니다. QStandardItemModel 은 매우 느립니다.
2. Drag & Drop 이 지원되어야 합니다.

세부 요청 사항

1. 파일 탐색기에서 파일 또는 디렉토리를 끌어다 Grid 에 놓았을 때 이벤트를 받고 처리합니다.
- 현재 checkDragDrop 이벤트가 호출되지 않습니다.
- 또한, 이 때 커서 아이콘이 적절히 변경되어야 합니다. 현재 Drag & Drop 시에 항상 기본 아이콘인 금지 아이콘으로 수행됩니다.
- 또한, 탐색기에서 생성한 드래그 이미지가 표시되어야 합니다. 현재 금지 아이콘만 나타나며 탐색기에서 끌어다 놓을 때 탐색기가 생성한 이미지가 표시되지 않습니다.

2. 목록을 표시할 때, 디렉토리를 표시하고 파일을 표시합니다. 이는 컬럼에서 크기 정렬 등을 수행할 때도 유지되어야 합니다.

3. 그리드 내부에서 파일 등을 선택하여 폴더에 끌어다 놓을 때 이벤트를 받고 처리합니다.
- 현재 이벤트는 발생하지만 ( startDragDrop, endDragDrop ) 아이콘이 금지 아이콘으로 나타나며, selectedRowsToPixmap 에서 생성된 이미지가 표시되지 않습니다.

4. 그리드 내부에서 끌어다 놓거나, 외부에서 끌어다 놓을 떄 마우스 커서가 위치한 곳의 포커스 이벤트를 수신하여 해당 Row 의 포커스를 표시합니다.


아래와 같은 세부 함수 호출 조건 등에 대한 설명을 요청합니다.

GridViewBase::startDragDrop, GridViewBase::endDragDrop, GridViewBase::checkDragDrop, GridViewBase::dragDrop


PS. QtitanDataGrid 8.1 이 포럼내에서 언급되었는데, 변경사항은 무엇이며 언제 릴리즈 되는 건가요?
PS. 해당 라이브러리의 2024년도 로드맵은 무엇인가요?

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #2 by GYEYOUNG TNI
hello? knock? knock? i waiting your answer. i had topic and email. but i didn't answer.

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #3 by Developer Machines
>>1. use our own model that inherits from QAbstractItemModel. The current example code does not help by using >>QStandardItemModel, which is very slow.

We have a log of examples that demonstrate the ability to use model based on QAbstractItemModel. For instance examples\grid\LargeDataSetExample or examples\grid\MDIApplication.


>>2. Drag & Drop should be supported.
Could you try our drag-drop demo example - examples\grid\DragDropFeature? Does it work for you?

>>GridViewBase::startDragDrop, GridViewBase::endDragDrop, GridViewBase::checkDragDrop, GridViewBase::dragDrop
>>

To enable the grid drag-drop feature please use:
Qtitan::GridTableView* view = m_grid1->view<Qtitan::GridTableView>();
 view->options().setDragDropMode(....); //You can apply QAbstractItemView::InternalMove, QAbstractItemView::DragOnly, QAbstractItemView::DragDrop.

QtitanDataGrid 8.1 was released, just download it via your personal account.

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #4 by GYEYOUNG TNI
i tried all examples... even if, drag & drop example not support from outside.

hm.. very disappointed.

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.135 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )