正如标题所示,我想知道是否可以通过SQL将QPushButton插入数据库?
connection = pymysql.connect(host = 'localhost',
user = 'root',
db = 'myDatabase',
cursorclass = pymysql.cursors.DictCursor)
cur = connection.cursor()
cur.execute("INSERT INTO myTable VALUES("%s"), [QPushButton("Click me!")])
答案 0 :(得分:2)
如果您使用make[1]: enter directory «/home/alexey/exercise/ex_makefile/source»
gcc -c -I./../include init_var1.c -o ../obj/init_var1.o
gcc -c -I./../include init_var2.c -o ../obj/init_var2.o
make[1]: out from directory «/home/alexey/exercise/ex_makefile/source»
来显示数据库,则需要将按钮添加到表格中的单元格中:
QTableWidget