View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
Originally Posted by ahmadka View Post
Yes but I tried using QStandardItem once before, and the problem I faced was that nothing actually showed up on the screen !?

Full details on this problem are here: http://talk.maemo.org/showpost.php?p=732549&postcount=4
Looking at that again now - you appear to be creating the QStandarditemModel as a local variable (i.e. on the stack), so it will be destroyed when it goes out of context. I had a similar issue using PyQt. Have you tried creating it on the heap instead (i.e. QStandardItem *model = new QStandardItemModel(10,2))?
 

The Following User Says Thank You to Rob1n For This Useful Post: