Python Forum
[PyQt] Pyqt5: How do you make a button that adds new row with data to a Qtablewidget
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Pyqt5: How do you make a button that adds new row with data to a Qtablewidget
#5
(Dec-31-2019, 10:19 PM)Denni Wrote: Okay first you are approaching this in the wrong manner... the data in a QTreeView or QTreeWidget should be stored within your code within a List or Dictionary and any and all manipulation you are doing to the data occurs to this in code List/Dictionary -- then whenever you want you simply update the QTreeView/QTreeWidget with your data.

Either that or you let them add a row to the QTreeView and edit its contents directly but either way the behind the scenes functionality is taking place within your List/Dictionary -- you are just implementing the Editing slightly differently is all.

I understand that but my problem is I don't how to script the data into the QTablewidget because it doesn't display at all if I do so.
Reply


Messages In This Thread
RE: Pyqt5: How do you make a button that adds new row with data to a Qtablewidget - by YoshikageKira - Jan-01-2020, 12:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Make A PyQt5 Progress Bar Run While Executing A Function rcwildabeast 1 286 Apr-26-2024, 02:18 AM
Last Post: menator01
  PyQt5 form not displaying my data from SQLite3 Database Linuxdesire 2 5,034 Jan-10-2023, 09:51 PM
Last Post: gradlon93
  [Tkinter] Trying to add data into a shelf from a submit button TWB 8 1,916 Jan-06-2023, 11:30 PM
Last Post: TWB
  [Tkinter] how to make label or button not visible with the place method? nowayj63 2 2,927 Jan-03-2023, 06:29 PM
Last Post: Yoriz
Question [Tkinter] How to make split button? teknixstuff 2 1,106 Jan-03-2023, 06:21 PM
Last Post: Yoriz
  Can't get tkinter button to change color based on changes in data dford 4 3,488 Feb-13-2022, 01:57 PM
Last Post: dford
  [PyQt] QTableWidget print problem JokerSob 8 4,853 Jan-28-2022, 06:08 PM
Last Post: Axel_Erfurt
  [Tkinter] Make my button text update? Skata100 1 2,071 Aug-07-2021, 05:37 AM
Last Post: deanhystad
  [PyQt] How do I display the DB table I will choose from the QComboBox in QTableWidget JokerSob 2 2,356 Aug-05-2021, 03:00 PM
Last Post: JokerSob
  Displaying database info in QTableWidget thewolf 6 5,374 Apr-03-2021, 02:49 PM
Last Post: thewolf

Forum Jump:

User Panel Messages

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