Forum
Sign Up

Category Header

DataGrid for Qt.C++

Topics in Category: QtitanDataGrid

emo
Nesterov Ivan's Avatar
Topic started 3 weeks 18 hours ago by Nesterov Ivan
Is it possible to make available row height user adjustment while working with view? Just like it is possible with MS Excel? Thank you!
Developer Machines Support's Avatar
Last Post by Developer Machines Support 3 weeks 2 hours ago
QtitanDataGrid has a feature - row auto height. The height of the row is adjusted automatically based on the cell contents. For instance when the grid's column change its width. For more details see RowAutoHeightFeature.exe example.
emo
Views: 111
Replies: 1
Preview
Stephanie's Avatar
Topic started 3 months 4 weeks ago by Stephanie
When user changed column position (visibility index) is there any specific signal gets emitted. Eg:- When we change the ID column position present in relation model sample is there any specific event gets called. Before drag-drop operation ID position [attachment] After drag-drop operation ID...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 2 months 3 days ago
In the next update will be added columnMoved(GridColumnBase* column, int fromVisualIndex) signal to get such notification.
emo
Shuai Wang's Avatar
Topic started 2 months 1 week ago by Shuai Wang
OS: windows 7, QT:5.9.2, datagrid's cell editor can't input chinese, but qt's tablewidget cell editor can,is there something need to set?
emo
Views: 105
Replies: 1
Preview
Stephanie's Avatar
Topic started 2 months 4 weeks ago by Stephanie
We are using Qt 5.10.1 and QtitanRibbon 4.16.0.0 version in our application. When we have integrated the QtitanGrid 5.16.0 we are getting an exception when we run the application. Error message: QLayout: Attempting to add QLayout "" to MainWindow "RibbonMainWindow", which already has a layout...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 2 months 3 weeks ago
Could you please provide a small example or piece of code that will help us understand how to reproduce the problem?
emo
Views: 135
Replies: 1
Preview
Stephanie's Avatar
Topic started 4 months 5 hours ago by Stephanie
we are using 5.13.0 version of QtitanDataGrid. We are using single data model for 2 views. I want to reflect/apply scrolling operation of view to another view. So, could you please let me know, 1] How to get event of scrolling (horizontal and vertical) operation? 2] How to get scrolling...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 3 months 6 days ago
In comming version 5.16 you will have an access to the horizontal and vertical scroll bars via QScrollBar* GridViewBase::verticalScrollBar() const; QScrollBar* GridViewBase::horizontalScrollBar() const; This should help you synchronize two views.
emo
Views: 521
Replies: 9
  • Page:
  • 1
  • 2
Preview
Stephanie's Avatar
Topic started 6 months 3 weeks ago by Stephanie
I want to drag drop the grid rows. I have tried following APIs: ----- view->options().setDragEnabled(true); view->options().setDropEnabled(true); ----- But it seems like its just copying the cells to dropped position. Is there any specific API or change required to support moving a entire row to dropped...
Stephanie's Avatar
Last Post by Stephanie 3 months 1 week ago
Is drag-drop/ row movement feature is supported in QtitanDataGrid 5.15.0 version? If not please let us know in which version you are going to support this feature? and possible release dates?
emo
Views: 348
Replies: 10
  • Page:
  • 1
  • 2
Preview
Stephanie's Avatar
Topic started 5 months 3 days ago by Stephanie
Hi, Could you please let me know the way to make grid headers editable? I have attached an image file to demonstrate the expected behavior. Please find same.
Developer Machines Support's Avatar
Last Post by Developer Machines Support 3 months 2 weeks ago
>>How to get the column header size so that we can embed the QWidget of similar size to the column header. Thank you for the demo. For now to control the width of the QWidget please return the right value via sizeHint() method of the widget. For your code: QSize IXQlabelClickable::sizeHint()... ...
emo
Zsolt Pataky's Avatar
Topic started 3 months 2 weeks ago by Zsolt Pataky
Is there a way to change the look of the thick, black separator line between the fixed and normal columns in the grid? And secondly, changing my table's border color does not work. I can change its width, but the color doesn't. Here's my code: m_p_table_view->options().setBorderColor( QColor(... I'm...
emo
Views: 85
Replies: 0
Preview
Stephanie's Avatar
Topic started 3 months 3 weeks ago by Stephanie
We are using 5.13.0 version of QtitanDataGrid. We want to expand group based on selected row. So, Please let know how to get the rows from collapsed group row?.
emo
Stephanie's Avatar
Topic started 3 months 4 weeks ago by Stephanie
We are supporting following behavior in application 1)We are using single data model for multiple views. 2)We are hiding some column from one view and show them in other views. A column which is hidden in a specific view is shown in field chooser is there any way we can avoid them or hide them in...
Stephanie's Avatar
Last Post by Stephanie 3 months 3 weeks ago
Thanks Piotr
emo
Stephanie's Avatar
Topic started 6 months 3 weeks ago by Stephanie
I have added delegate on columns which creates combo box as editor, Please refer following code snippet. ----- column->setEditorType(Qtitan::DelegateAdapterEditorType); GridDelegateAdapterEditorRepository* adapter = static_cast<GridDelegateAdapterEditorRepository *>(column->editorRepository());...
Stephanie's Avatar
Last Post by Stephanie 3 months 4 weeks ago
We have complex editors present and which requires a lot of time to migrate it from Qt table to QtitanDataGrid. Could you please let us know how to highlight the Combo box as delegate correctly. We are using QtitanGrid 5.13.0 version.
emo
Stephanie's Avatar
Topic started 4 months 1 week ago by Stephanie
we are using 5.13.0 version of QtitanDataGrid. We have checked the API(setSelectionPolicy(GridSelectionPolicy policy)) provided for enabling the multiple row selection, multiple cell selection, but we have not found any enum/API which allowed multiple column selections. Could you please let us know...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 4 months 1 week ago
Grid does not have a special mode for selecting cells in a column. Implied that the selection of columns is a special case of the multiple cells selection. I would suggest to catch the click on the table header via the columnClicked (ColumnClickEventArgs * args); and select the cells under the...
emo
Stephanie's Avatar
Topic started 4 months 1 week ago by Stephanie
we are using 5.13.0 version of QtitanDataGrid. We are using single data model for 2 views. I want to reflect/apply any viewer operation (like sorting, grouping, filtering,... etc.) of view to another view. We investigated and found APIs to give the information about filters, sorting applied or...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 4 months 1 week ago
Grid has signals that are rised on operations you are looking for: GridViewBase::startGrouping(ColumnGroupArgs* args) - grouping about to be changed. GridViewBase::groupingChanged() - grouping changed. GridViewBase::selectionChanged(GridSelection* selection, GridSelection* oldSelection) - view...
emo
Views: 201
Replies: 3
Preview
Stephanie's Avatar
Topic started 5 months 1 week ago by Stephanie
Hi, I want to have custom UI widgets to be shown inside grid cell. Like we have some predefined editor types( GridEditorType). But I want my own delegate to be shown on cell click. Please refer attached gif file for this.
Developer Machines Support's Avatar
Last Post by Developer Machines Support 4 months 2 weeks ago
Grid allows embed any QWidget to the cell. If you have an editor like on your screenshot it is easy to add: See the topic for the details - www.devmachines.com/productdocs/grid/qti...deditortutorial.html if you will have any difficulties, i will prepare you a working project that will...
emo
Views: 195
Replies: 2
Preview
Stephanie's Avatar
Topic started 5 months 3 weeks ago by Stephanie
Hi , I want to assign different color for each of the cells. But unfortunately I did not see any API which directly sets background color of cell. Please let me know how can I achieve it.
Developer Machines Support's Avatar
Last Post by Developer Machines Support 4 months 2 weeks ago
In addition, i can advise you to check the setting of view->options().setModelDecoration(bool). It should be true. I also want to recommend you to play with the setting - view->options ().SetSelectedDecorationOpacity (double). This setting determines how to blend the color of a particular cell with...
emo
Views: 227
Replies: 2
Preview
Stephanie's Avatar
Topic started 6 months 1 week ago by Stephanie
Hello, I want to clear grouping programatically using context menu actions. I have added following code on my context menu action: ----- m_grid->view<Qtitan::GridTableView>()->modelController()->clearGrouping(); ----- But this is just removing grouping but the GroupBox on top of column header is still showing...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 6 months 5 days ago
It is not a good idea to use modelController directly. Try this: m_grid->view<Qtitan::GridTableView>()->clearGrouping();
emo
Views: 667
Replies: 10
  • Page:
  • 1
  • 2
Preview
Stephanie's Avatar
Topic started 6 months 3 weeks ago by Stephanie
I dont want to use dlls in my project so I have built static libraries for qtngriddsgn and qtndbgrid projects. The output using dlls seems correct but when I use the static library implementation it looks weird. The color of grid header is changed to black and everything becomes flat with static...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 6 months 1 week ago
Ok. I want to add the hint. To build the component statically just uncomment the line below in the src\shared\platform.pri file. Then rebuild. #QTN_STATIC_LIB=1
emo
Stephanie's Avatar
Topic started 7 months 1 week ago by Stephanie
I have created a vector for header data which changes dynamically. This vector vector gets updated and my column sequence gets changed which I want to be updated in my QtitanGrid but unfortunately setHeaderData is not working with this case.
Developer Machines Support's Avatar
Last Post by Developer Machines Support 6 months 4 weeks ago
Stephane, what version of the component you use?
emo
Views: 232
Replies: 1
Preview
Irving's Avatar
Topic started 9 months 4 weeks ago by Irving
How do I swap the two items by dragging one of them? [attachment]
Developer Machines Support's Avatar
Last Post by Developer Machines Support 8 months 4 weeks ago
Unfortunately, such feature is not supported at the moment.
emo
Views: 358
Replies: 0
Preview
GYEYOUNG TNI GYEYOUNG TNI's Avatar
Topic started 1 year 2 months ago by GYEYOUNG TNI GYEYOUNG TNI
Hi, In QtnGridTableViewBase.cpp/GridColumnPrimitive::paint_column_header_contents() there is Grid* grid = qobject_cast<Grid *>(option.styleObject); this code. from Qt-5.x there is "styleObject" variant In "QStyleOptionHeader" class, but Qt-4.8 there is no "styleObject". (using Visual Studio 2008 in...
Time to create page: 0.204 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.
captcha 

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 )