[Qt-interest] Centering the mainwindow
André Somers
andre at familiesomers.nl
Mon Feb 23 19:19:37 CET 2009
Hi,
"Stephen Jackson" <spjackson42 at gmail.com> schreef in bericht
news:43fef2450902201408t7d477586k2571732a935621d7 at mail.gmail.com...
> On Fri, Feb 20, 2009 at 9:05 PM, André Somers wrote:
>>> Surely, if you look at the source of QSplashScreen you will find your
>>> answer.
>>
>> It is actually not all that obvious. I checked, and I could not find it
>> in
>> there.
>
> If I view qsplashscreen.cpp and search for "center", I find the
> following code in the constructor.
> This code centres a QMainWindow as I thought was required. I'm sorry
> but I don't see why this isn't obvious to you, nor do I understand why
> this does not answer the original poster's question.
>
> I guess I must be overlooking something. Sorry.
No, I was the one that was overlooking something. I somehow managed to
completely miss that piece of code in the source of qsplashscreen. It was in
setPixmap in my version of Qt, not in the constructor, but I still should
have found it. I apologize.
André
More information about the Qt-interest-old
mailing list