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
#3
(May-13-2020, 09:04 PM)deanhystad Wrote: 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.

Thanks for your suggestion. No, I have not, but it is certainly worth looking at it. How would you suggest clearing the old values then?
Reply


Messages In This Thread
RE: Help: Replace widgets in a QFrame on Combobox change - by mart79 - May-14-2020, 05:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  event driven coding PyQt6 on Combobox change merrittr 3 2,137 May-03-2023, 03:35 AM
Last Post: merrittr
  [PyQt] QWidgetAction of QFrame not showing in menu malonn 4 2,049 Sep-22-2022, 10:49 PM
Last Post: malonn
  [PyQt] How can I sync Combobox index to other combobox index? nickzsche 2 2,418 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