Forum
Sign Up
× DataGrid for Qt.C++

ASSERT(false) in QtnGridGraphics

12 years 4 months ago #1 by Stefan
ASSERT(false) in QtnGridGraphics was created by Stefan
I am getting an assert when clicking on the filter icon in the header row of a grid. The assert is in QtnGridGraphics.cpp:2447. The comment says unsupported Qt version.
Q_ASSERT(false); //Unsuported Qt version, use private header directly. Use QT_INCLUDE_PRIVATE_H define.

The reason why the assert is happening is because of this:
if (version == "4.7.0" || version == "4.7.1" || version == "4.7.2" || version == "4.7.3")...

I'm on version 4.7.4, so I take it it's not supported. Could I just add "version == 4.7.4" to this code and rebuild? Or is there a new version coming out soon that will deal with this?

Stefan

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

  • Stefan
  • Stefan's Avatar Topic Author
12 years 4 months ago #2 by Stefan
Replied by Stefan on topic ASSERT(false) in QtnGridGraphics
I added
version == "4.7.4"
in QtnGridGraphics.cpp and rebuilt all and it seems to work now.

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

  • Stefan
  • Stefan's Avatar Topic Author
12 years 3 months ago #3 by Developer Machines
Other way to build the source code of the QitanDataGrid with the Qt private headers. To do that you need uncomment define QT_INCLUDE_PRIVATE_H in the begining of the file QtnGridGraphics.cpp or specify this define in project file.

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