Python Forum
[PyQt] How do I display the DB table I will choose from the QComboBox in QTableWidget
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] How do I display the DB table I will choose from the QComboBox in QTableWidget
I have several DB tables and I have written the names of these tables into the combobox, but I cannot call any table I selected from the combobox. In addition, when calling the DB Table, I have a lineedit where I write the date first and a button to perform the operation. Is there any way I can do this?

as an example:

= DB tables =
A, B, C, D ,E

= GUI =
Combobox ( A, B, C, D, E in DB table names )


By the way, I can assign individual buttons and list them, but it would be nicer to be able to list by selecting them from the combobox. So a separate button for table A - B - C - D - E
Please show your code.
(Aug-05-2021, 09:43 AM)Larz60+ Wrote: Please show your code.

Ok, I solved the problem. I realized that I made a small mistake... now I can get the result I want to do

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] QTableWidget print problem JokerSob 8 2,900 Jan-28-2022, 06:08 PM
Last Post: Axel_Erfurt
  Displaying database info in QTableWidget thewolf 6 2,958 Apr-03-2021, 02:49 PM
Last Post: thewolf
  [PyQt] Help: check content of combobox in horizontal header of QTableWidget mart79 1 2,195 Jul-26-2020, 06:18 PM
Last Post: deanhystad
  [PyQt] display content from left to right in QComboBox or QLineEdit mart79 2 1,519 May-30-2020, 04:38 PM
Last Post: Axel_Erfurt
  QComboBox doesn't display selection as long as it has not lost the focus Meaulnes 3 1,766 May-07-2020, 03:42 PM
Last Post: Meaulnes
  [PyQt] Add validation (regex) to QTableWidget cells mart79 0 1,969 May-05-2020, 12:51 PM
Last Post: mart79
  Which GUI should I choose ? Matprog49 2 1,606 Apr-25-2020, 02:12 PM
Last Post: Matprog49
  QComboBox for PyQt code gvin47 3 1,422 Apr-22-2020, 04:01 PM
Last Post: gvin47
  [PyQt] QTableWidget stylesheet error mart79 3 3,974 Feb-26-2020, 04:54 PM
Last Post: Denni
  [PyQt] Pyqt5: How do you make a button that adds new row with data to a Qtablewidget YoshikageKira 6 4,976 Jan-02-2020, 04:32 PM
Last Post: Denni

Forum Jump:

User Panel Messages

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