What's the best way to handle memory exhaustion with QTableWidget? Specifically, I'm creating a table widget where, based on user input, the number of rows can be more than memory can accomodate. QTableWidget::setRowCount doesn't seem to throw std::bad_alloc. What's the best course of action here? Use Symbian leaves and traps? Any Symbian calls are being made by Qt so the leaves should get converted by Qt to C++ exceptions, right? Ideally, the best solution would be to generate only those rows viewable in the display (ala iOS UITableView) but there doesn't seem to be much support for that as far as I can see. I'd rather not put in a hard fixed limit. Is there example code somewhere?