Registered Member
|
Does anyone know how to center a KDE window either in the constructor or in before widget->show() is run in main()?
I tried this,
But it gives me an error at "KApplication::desktop()",
|
KDE Developer
|
This is telling you it does not know about QDesktopWidget. Easy to solve, just:
Pino Toscano
|
Administrator
|
You need to #include <QDesktopWidget> for the given code to compile. You may also need QRect.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]