Invalid use of non-static member function
Jeronimo last edited by A Former User
Hi i am doing one little example to capture some pictures improved by me.
captura = QScreen::grabWindow(QApplication::desktop()->winId());
But show me this:
invalid use of non-static member function
I think QApplication::desktop()->winId() is outdate?
kenchan last edited by
grabWindow is not a static function of QScreen. hence the error.
you need to get the screen from the application object and then grab it.
koahnig last edited by
Jeronimo last edited by Jeronimo
Solved thx for the documentation!