Python Forum
PyQt5, QtSql: connection to database does not work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5, QtSql: connection to database does not work
#5
Connection names are used to manage connections, not to select a database. When you open a connection it first checks if there is a connection using the same name. If there is, it shuts down the existing connection before opening the new. If you ever want to have multiple connections open at the same time you'll need to provide unique names for each connection. I don't think this option is used often.
Reply


Messages In This Thread
RE: PyQt5, QtSql: connection to database does not work - by deanhystad - Jan-12-2023, 05:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PyQt5 form not displaying my data from SQLite3 Database Linuxdesire 2 5,125 Jan-10-2023, 09:51 PM
Last Post: gradlon93
  [PyQt] [Solved]Make certain columns Un-editable in QtSql Extra 7 3,363 May-28-2022, 05:19 PM
Last Post: Extra
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,946 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [PyQt] How to print a QtSql.QSqlQuery() from python ThunderBlitz 0 5,049 Mar-22-2017, 01:07 PM
Last Post: ThunderBlitz

Forum Jump:

User Panel Messages

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