Posts by carlos alberto • 101 points
4 posts
-
1
votes1
answer75
viewsA: How to add a Qpushbutton to Qtablewidget?
To add a widget to a QTableWidget, we use the method setCellWidget same. Try to change this line self.table.setItem(current_row, 2, QTableWidgetItem(button)) for…
-
2
votes1
answer88
viewsA: How to get the current user in the HTML page to insert in the Flask Python database
The flask-login works with the current_user in global scope in the application, just as you use current_user in the template, you can use it in your route '/Uploader', just you import the…
-
0
votes1
answer52
viewsA: Pyside2 error when using Qwidget.render() method, how to bypass?
try to pass the parameters of the method surrender explicitly, try the following: painter = QPainter(p) painter.setRenderHint(QPainter.HighQualityAntialiasing) xscale = p.pageRect().width()/…
-
1
votes1
answer110
viewsA: How to keep the window created by Pyqt5 open?
is missing from the program, add the sys.exit(app.exec_()), thus: if __name__=='__main__': app=QApplication(sys.argv) ex=App() sys.exit(app.exec_())…