Forwarding to meego-dev From: [email protected] [mailto:[email protected]] On Behalf Of Pai, Cary Sent: Thursday, April 14, 2011 10:14 AM To: [email protected] Subject: [MeeGo-SDK] Can MTF application use QWidget?
Hi, All,
I have created a MTF application, but when I run the application with the
QPushButton add into MApplicationPage, it will have the segmentation fault, why
MTF can't add the QWidget based item? The code I wrote are as below :
int main(int argc, char *argv[])
{
MApplication a(argc, argv);
MApplicationWindow w;
MApplicationPage p;
QPushButton* but = new QPushButton("test");
p.scene()->addWidget(but);
p.appear(&w);
w.show();
return a.exec();
}
Since the p.scene() is QGraphicsScene why it will have the error on runtime?
Best Regards.
Intel Software & Service Group
[cid:[email protected]]
B1 #205 Tun-Hwa North Rd, Taipei, Taiwan
Desk
+886-2-2514-4603
Mobile
+886-987-369-617
E-Mail
[email protected]<mailto:[email protected]>
<<inline: image001.jpg>>
_______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
