penFeed()
| The Following User Says Thank You to Copernicus For This Useful Post: | ||

Lets see... The QDeclarativeView is one way of loading QML components from a C++ object; its benefit is that it loads the QML directly into a QGraphicsView. (The QGraphicsView / QGraphicsScene is a QWidget mechanism used for displaying complex graphics.) There shouldn't be any need to tie QGraphicsView or QDeclarativeView to the main() method, so presumably there's something about how it's being used outside of the main() routine that is going wrong.QDeclarativeView view = new QDeclarativeView(parent);
| The Following User Says Thank You to Copernicus For This Useful Post: | ||
| The Following User Says Thank You to Copernicus For This Useful Post: | ||
int main()
{
while(TRUE)
{
waitForDBUSRequest();
processDBUSRequest();
}
}
void waitForDBUSRequest()
{
// listen for DBUS requests here
}
void processDBUSRequest()
{
QApplication app;
app.exec();
}
| The Following 2 Users Say Thank You to Copernicus For This Useful Post: | ||
| The Following User Says Thank You to bibek For This Useful Post: | ||