Forum
Sign Up
× DataGrid for Qt.C++

AttributeError: 'GridViewBase' object has no attribute 'addBand'

2 weeks 3 days ago #1 by shucongcong
Subject: AttributeError: 'GridViewBase' object has no attribute 'addBand' when running BandedTableView.py with QtitanDataGrid 10.0.0 (PySide6 6.12.0, Windows x64)

Environment:

QtitanDataGridInstaller10.0.0_PySide6_Qt6.12.0Win_x64.exe

PySide6 6.12.0

Python 3.10

Windows 11 24H2

Example script: pyside612examples/grid/BandedTableView/BandedTableView.py

Description:
Running the official BandedTableView.py example fails at line 74 with the following traceback:

text
AttributeError: 'DevMachines.QtitanGrid.GridViewBase' object has no attribute 'addBand'
File "...\BandedTableView.py", line 74, in __init__
characteristicsBand = view.addBand("Characteristics")
File "...\BandedTableView.py", line 373, in <module>
w = Window()
The view object returned is of type GridViewBase, which does not expose the addBand method. addBand is only available on GridBandedTableView. It appears the view type is not being set to BandedTableView before addBand is called, or the example script is missing the required setViewType call for this version.

Expected behavior:
The example should create a GridBandedTableView view so that addBand() is available, and the script should run without errors.

Question:
Is this a known issue with QtitanDataGrid 10.0.0 + PySide6 6.12.0 on Windows? If not, could you confirm the correct way to instantiate a Banded Table View in Python (e.g., the proper setViewType call or constructor argument) so that the official example works as shipped? If the example script itself needs updating for this version, please provide the corrected version.

Additional context:
A minimal PySide6 GUI test (QApplication + QLabel) runs successfully in the same environment, so the PySide6/Qt platform plugin setup is functional. The failure is specific to the QtitanDataGrid BandedTableView example.

This report states the error clearly, gives the full environment, explains the likely cause (view type not set to BandedTableView), and asks for either a confirmation of the known issue or the corrected example code.
Attachments:

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

More
2 weeks 1 day ago #2 by Developer Machines
Thank you for the bug-report, we have reproduced the issue. We will release an update shortly to fix it. We apologize for any inconvenience caused.

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

More
1 week 1 day ago #3 by Developer Machines
Please accept my apologies for any inconvenience caused. Kindly download either QtitanDataGrid 10.0.1 or QtitanSolution 2026.3.1, as these versions include the fix for the Python binding issue you reported.

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