qt - Dockable window -- not maximise -


i have made gui contains dockable windows.

if click on maximize square on docable window comes out not occupies full screen of gui.

example if click syntax window not occupy full screen 

which property have change make docable window occupy full screen ?

please see attached image.enter image description here

you need create own titlebarwidget , set with:

void qdockwidget::settitlebarwidget ( qwidget * widget )

so able have many buttons want , maximize it. following code it:

qdockwidget *dockwidget = qobject_cast<qdockwidget*>(parentwidget()); dockwidget->showmaximized(); 

edit: keep 2 existing buttons functionality:

the docking done setfloating(bool ). so:

qdockwidget *dockwidget = qobject_cast<qdockwidget*>(parentwidget()); dockwidget->setfloating( !dockwidget->isfloating () ); 

for close, parent close() method work.

and, last edit, promise ;).

you need have title show on titlewidget:

and in windowtitle : qstring property of parent:


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -