Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embeded collapsible sections #8

Open
rickykresslein opened this issue Jan 14, 2022 · 1 comment
Open

Embeded collapsible sections #8

rickykresslein opened this issue Jan 14, 2022 · 1 comment

Comments

@rickykresslein
Copy link

First of all, thanks so much to everyone who has contributed to this.
I would love to see a way to embed these collapsible sections within each other. I have tried to do this and it seems the outer section does not understand it needs to expand further when an inner section is expanded. Here is a screenshot of what I mean:
Section_Screen

@lightwolf
Copy link

lightwolf commented Nov 25, 2024

I found that adding:

qSection.h

protected:
  virtual bool event(QEvent* event) override;

qSection.cpp

bool qSection::event(QEvent* event)
{
  // This is required to cascade layout changes from child qSections  
  if (event->type() == QEvent::LayoutRequest)  
  {  
    updateHeights();    
  }  
  return QWidget::event(event);  
}

helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants