set qt c++ mainwindow always on bottom mac osx -
set qt c++ mainwindow always on bottom mac osx -
so trying set window/ mainwindow / application in qt on bottom (like bottom window) (so rainmeter somehow widgets), can't mac osx such things. i've tried whole
this->setwindowflags(qt::windowstaysonbottomhint);
but without luck. hints? illustration code amazing.
got bad news , news. bad news it's not implemented.
the news is: qt open source, can crack open , take know that. , if there's bug can submit fix. here's deal, in generic code qwidget::setwindowflags
in qwidget.cpp:9144 have this:
void qwidget::setwindowflags(qt::windowflags flags) { if (data->window_flags == flags) return; q_d(qwidget); if ((data->window_flags | flags) & qt::window) { // old type window and/or new type window qpoint oldpos = pos(); bool visible = isvisible(); setparent(parentwidget(), flags); // if both types windows or neither of them are, restore // old position if (!((data->window_flags ^ flags) & qt::window) && (visible || testattribute(qt::wa_moved))) { move(oldpos); } // backward-compatibility alter qt::wa_quitonclose attribute value when window recreated. d->adjustquitoncloseattribute(); } else { data->window_flags = flags; } }
so sets window_flags
. mac behavior of qwidget in qwidget_mac.mm.
and find no reference qt::windowstaysonbottomhint
in file. (you'll find qt::windowstaysontophint
though...)
i'll stop @ saying "not possible unless either patch qt, or otherwise go beneath qt".
patching qwidget_mac.mm
left exercise reader. :-)
c++ osx qt window
Comments
Post a Comment