Forum
Sign Up

Category Header

DataGrid for Qt.C++

Topics in Category: QtitanDataGrid

emo
Views: 13
Replies: 0
Preview
Stephanie's Avatar
Topic started 3 days 8 hours 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.
emo
Views: 26
Replies: 1
Preview
Stephanie's Avatar
Topic started 1 week 1 day 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.
Stephanie's Avatar
Last Post by Stephanie 5 days 15 hours ago
Hi, Any updates?
emo
Views: 45
Replies: 1
Preview
Stephanie's Avatar
Topic started 3 weeks 3 days 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.
Piotr's Avatar
Last Post by Piotr 3 weeks 2 days ago
Use the data() function from your model. For example: QVariant MyModel::data(const QModelIndex& index, int role) const { switch(role) { case Qt::BackgroundRole: if(index.column() == myColumnIndex) return QVariant::fromValue(QColor(Qt::blue));...
emo
Views: 46
Replies: 2
Preview
Stephanie's Avatar
Topic started 1 month 6 days 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 1 month 5 days ago
It is not a good idea to use modelController directly. Try this: m_grid->view<Qtitan::GridTableView>()->clearGrouping();
emo
Views: 132
Replies: 6
  • Page:
  • 1
  • 2
Preview
Stephanie's Avatar
Topic started 1 month 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...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 1 month 5 days ago
Added to the wish list. We will try to add in the coming time for rows only. Please note, your model will have to support the "move" operation.
emo
Views: 149
Replies: 10
  • Page:
  • 1
  • 2
Preview
Stephanie's Avatar
Topic started 1 month 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 1 month 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 1 month 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());...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 1 month 2 weeks ago
Why you do not use a standard for qtitangrid solution? The variant how it is possible to insert a combobox in a grid is well illustrated in an RelationDemo.exe example. Delegate adapter was added to quickly port a large and complex editors, which require a lot of time to migrate from a regular Qt...
emo
Stephanie's Avatar
Topic started 2 months 6 days 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 1 month 4 weeks ago
Stephane, what version of the component you use?
emo
Views: 99
Replies: 1
Preview
Irving's Avatar
Topic started 4 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 3 months 4 weeks ago
Unfortunately, such feature is not supported at the moment.
emo
Views: 238
Replies: 0
Preview
GYEYOUNG TNI GYEYOUNG TNI's Avatar
Topic started 9 months 1 day 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...
emo
Views: 241
Replies: 0
Preview
Mike's Avatar
Topic started 9 months 4 weeks ago by Mike
Hello. I have a column of strings that I'm trying to apply the 'NOT EQUAL' filter to, but it always ends up applying the 'LIKE' filter. I would expect the 'NOT LIKE' filter to be applied in the 'NOT EQUAL' case. Looking at the FilterDialog code, it appears 'LIKE' is always used when the variant type...
emo
Views: 230
Replies: 1
Preview
Chaitanya's Avatar
Topic started 11 months 4 weeks ago by Chaitanya
I have a requirement to keep all cells of the grid in edit mode once user clicks on the Edit button. I am currently using the below code to set each column in my grid to edit mode. But when the user wants to edit different cells in the grid, they are forced to double click on each cell to edit it...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 11 months 4 weeks ago
I'd suggest to change editor activation policy like this: column->editorRepository()->setEditorActivationPolicy(AnyEvents); See www.devmachines.com/productdocs/grid/gri...ationPolicyFlag-enum for the details.
emo
Views: 2703
Replies: 8
  • Page:
  • 1
  • 2
Preview
Stefan's Avatar
Topic started 6 years 7 months ago by Stefan
My application uses QSS for some styling. I am slowly changing all QTableViews over to QtitanDataGrids. I would like to be able to keep the styling in my app consistent by applying the same styles to all QtitanDataGrids. It seems that QTableView and QTreeView styles do not affect QtitanDataGrid, so...
Fernando Felix Gutierrez Blanco's Avatar
I'm interested too in changing grid style with css. Where can I find a list of classes and attributes that I'm able to change?
emo
Views: 251
Replies: 0
Preview
Padmavathi's Avatar
Topic started 1 year 1 month ago by Padmavathi
Hello, I'm currently using the banded table view in my qtitangrid. I am trying to modify the background color of the cell in a specific column based on the value in the column. I tried setDecorationColor(which is applied per column) and setCellPalette(which seems to be applicable to all cells), but...
emo
Views: 316
Replies: 3
Preview
Michael Wassong's Avatar
Topic started 1 year 3 months ago by Michael Wassong
I'm trying to display the footer summary using the latest version of QtitanDataGrid 5.1.1. The bottom of the cells seem to get clipped and I'm not sure why. Might have something to do with the clip rects that are created in the paint event? Help would be appreciated. Thanks.... [attachment]
Developer Machines Support's Avatar
Last Post by Developer Machines Support 1 year 2 months ago
Bug has been fixed. Fix will be available in the next update. Thank you for the bug-report!
emo
Views: 1182
Replies: 1
Preview
JORGE GRAMAGE BORDERA's Avatar
Topic started 1 year 6 months ago by JORGE GRAMAGE BORDERA
Hi devmachines, I've shown in the demos how can I define diferent king of editor but allways for a column. My problem it's that there are rows that in the same column neads to have diferent editors. For example I need to control the maximum and minimum of a GridNumericEditorRepository depending of...
Administrator's Avatar
Last Post by Administrator 1 year 5 months ago
Unfortunately, this feature is not supported. Please contact This email address is being protected from spambots. You need JavaScript enabled to view it. \n for more details about custom work.
emo
Views: 289
Replies: 1
Preview
JORGE GRAMAGE BORDERA's Avatar
Topic started 1 year 6 months ago by JORGE GRAMAGE BORDERA
Hi, I want to use the method addButton of the columns but there are any rows that I need to disable or better make it invisible. It's posible to do that or the buttons it's always visible in all rows? thanks
Developer Machines Support's Avatar
Last Post by Developer Machines Support 1 year 6 months ago
Unfortunately, such feature does not supported. All the buttons are visible permanently. Added it to the wish-list.
emo
Pascal's Avatar
Topic started 1 year 7 months ago by Pascal
Hi, When saving the layout of a grid with multiple sorted columns, the order in which the column where sorted is not saved. Suppose there are 3 columns: weight, time, date User now sorts grid first on date, then on time. Now restart the application and load the layout of the grid - it will be...
emo
Views: 299
Replies: 0
Preview
Pascal's Avatar
Topic started 1 year 7 months ago by Pascal
I have below code: Qtitan::GridTableView* view = ui->gridSites->view<Qtitan::GridTableView>(); GridSelection* selection = view->selection(); if (selection) { QModelIndex idIndex = m_pSiteTableModel->index(selection->row()->modelRowIndex(),SiteTableModel::id); ....... ...
emo
Views: 431
Replies: 1
Preview
Andrey Florinsky's Avatar
Topic started 2 years 1 month ago by Andrey Florinsky
What is the easiest way to get the number of selected rows in a GridBandedTableView? I am doing as shown below, but it's bad for large data: GridSelectionIterator* selection = m_view->selectionIterator(); int selectCount = 0; while (!selection->end()) { ++selectCount; const int indx...
Developer Machines Support's Avatar
Last Post by Developer Machines Support 2 years 1 month ago
selectionIterator() is deprecated in latest version of the grid. This week will be released an update. With this version it will be possible to get the selected rows count this way: Qtitan::GridTableView* view = m_grid->view<Qtitan::GridTableView>(); view->selection()->ranges()[0]... P.S....
Time to create page: 0.209 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 )