set widget in layout fullscreen



  • I have a class that is a subclass of QWidget inside a QVBoxLayout and I implemented the double click method and I wanted to toggle that widget fullscreen, how can I do that?



  • Hi,

    You can check this post, it has the same implementation as per your requirement.

    Regards,
    Sam



  • The post you mentioned didn't help much as the guy wanted to put the parent class in fullscreen when the black widget is double clicked, in my case I want to put the black window in fullscreen, not the parent.

    Using his image as example:

    Double click: full screen, double click again: put it back where it was.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.