Hi everybbody,
i facing a small trouble using the QStandardItemModel class. Here is the example code:
Qt Code:
numRow = 3883439; numCol = 23;To copy to clipboard, switch view to plain text mode
when i call new the program crash. If numRow is < 2900000 is working fine otherwise no;a least with 3000000 is no working, with middle values I am not sure, but i think this show my point.
I suppose is a memory allocation problem. I have implemented if_condition to check the values of numRow and numCol before the calling of new to avoid the crash, but i would like to know whay is thi happening an if there is a way to catch error like this type in QT, and if exist wich it is? or how to know the limit for the memory allocation of each class?,
cause in the documentation of the class I did not see any specification for the limits for row and cols.
Thank for the Help
Bookmarks