Python Forum
[PyQt] Help: Replace widgets in a QFrame on Combobox change
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Help: Replace widgets in a QFrame on Combobox change
#2
Have you tried QStackedWidget or QStackedLyout? Instead of repopulating one frame you create different views that are all mapped to the same place in the window. It is kind of like using a QTabWidget without the tabs. As for clearing the fields of old values, that is much easier than tearing down and rebuilding a layout.
Reply


Messages In This Thread
RE: Help: Replace widgets in a QFrame on Combobox change - by deanhystad - May-13-2020, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  event driven coding PyQt6 on Combobox change merrittr 3 2,279 May-03-2023, 03:35 AM
Last Post: merrittr
  [PyQt] QWidgetAction of QFrame not showing in menu malonn 4 2,171 Sep-22-2022, 10:49 PM
Last Post: malonn
  [PyQt] How can I sync Combobox index to other combobox index? nickzsche 2 2,489 Jan-03-2022, 12:29 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020