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
#1
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 =
Lineedit
Combobox ( A, B, C, D, E in DB table names )
Button

Tablewidget

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
Reply
#2
Please show your code.
Reply
#3
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] choose checkbox devilonline 1 1,239 Feb-17-2023, 01:23 PM
Last Post: Axel_Erfurt
  [PyQt] QTableWidget print problem JokerSob 8 4,685 Jan-28-2022, 06:08 PM
Last Post: Axel_Erfurt
  Displaying database info in QTableWidget thewolf 6 5,181 Apr-03-2021, 02:49 PM
Last Post: thewolf
  [PyQt] Help: check content of combobox in horizontal header of QTableWidget mart79 1 3,267 Jul-26-2020, 06:18 PM
Last Post: deanhystad
  [PyQt] display content from left to right in QComboBox or QLineEdit mart79 2 2,250 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 3,149 May-07-2020, 03:42 PM
Last Post: Meaulnes
  [PyQt] Add validation (regex) to QTableWidget cells mart79 0 2,690 May-05-2020, 12:51 PM
Last Post: mart79
  Which GUI should I choose ? Matprog49 2 2,299 Apr-25-2020, 02:12 PM
Last Post: Matprog49
  QComboBox for PyQt code gvin47 3 2,051 Apr-22-2020, 04:01 PM
Last Post: gvin47
  [PyQt] QTableWidget stylesheet error mart79 3 6,326 Feb-26-2020, 04:54 PM
Last Post: Denni

Forum Jump:

User Panel Messages

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