Forum
Sign Up
× DataGrid for Qt.C++

Active QTitanDataGrid table disables key press

7 years 7 months ago #1 by Aaron
When using QTitanDataGrid within my application. No other widgets will accept key presses.

More specifically, when attempting to use the delete key, nothing will happen when a QTitanDataGrid widget is active.

If i close out of this widget, delete functionality returns to the rest of my widgets.

I have observed this behavior with 2 QTitanDataGrid widgets too. If 2 are active, then delete will not work on one. When I close one QTitanDataGrid widget. Delete functionality returns to the other widget.

I'm using version 3.2

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

More
7 years 7 months ago - 7 years 7 months ago #2 by Developer Machines
What do you meant "active widget", does it mean - has focus? Is it possible to reproduce the issue on our demo examples?
Last edit: 7 years 7 months ago by Developer Machines.

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

More
7 years 6 months ago #3 by Aaron Shelley
So what was happening was QTitanDataGrid registers the 'Delete' key as a global shortcut. So when I try and add my own keyPressEvents for my widgets to handle the 'Delete' key press. QTitanDataGrid eats the key if I have a QTitanDataGrid widget active. I ended up removing the problem code.

This is found in QtnGridTableView.cpp (4224)
 m_actions.insert(DeleteRowAction, addActionToWidget(grid(), create_menu_icon(":res/grid_clear_btn.png"), Grid::tr(QtnGridRemoveRowString), this, SLOT(slot_removeRow()), QKeySequence::Delete));

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

More
7 years 6 months ago #4 by Developer Machines
We can get access to the m_actions from view. If this case you will be able to configure these actions as you need.Does it solution will suit you?

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

More
7 years 5 months ago #5 by Aaron Shelley
That could be useful, yes.

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.139 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 )