Re: [Interest] Creating QML Component instances in C++

2012-04-02 Thread Gabriel M. Beddingfield
On 04/02/2012 12:36 PM, Unai IRIGOYEN wrote: > So try adding: > obj->setProperty("parent", QVariant::fromValue(this)); That did the trick! Thanks! -gabriel ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/in

Re: [Interest] Creating QML Component instances in C++

2012-04-02 Thread Unai IRIGOYEN
Hi, I 'm not sure it' the solution to your problem but I do create object instances from delegates in one of my classes and the objects are visible. I don't have the code with me right now but the only difference I think there is from your code to mine is that I set the parent property of my newl

[Interest] Creating QML Component instances in C++

2012-04-01 Thread Gabriel M. Beddingfield
All: I'm trying to make a container, similar to GridView. I can set a delegate and create instances of them, but I can't seem to make them visible. What am I doing wrong? To illustrate my problem, I've set up a minimal example (attached) with a custom Component called "FourSquare." It's su