look under ring/documents/booksLibraryController.ring how to center the window.
You can see how PrimaryScreen was replaced also here
On 3/21/23, Irwin Rodriguez <rodrigu...@gmail.com
> Hi, I was using the trick below to center a window but got an error that
> says: *Calling Method without definition !: primaryscreen*
> [image: image.png]
> I'm looking at the source code and realized the method *primaryScreen
> belongs to* QGuiApplication* which inherits from *QCoreApplication* which
> inherits from *QObject *but *QDesktopWidget *isn't part of that inheritance
> chain because it comes from *qWidget *and that's why Ring is complaining
> Is there any alternative to center the window?
> You received this message because you are subscribed to the Google Groups
> "The Ring Programming Language" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ring-lang+...@googlegroups.com
> To view this discussion on the web visit