Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: QTableWidget print problem
Post: RE: QTableWidget print problem

(Aug-05-2021, 09:15 PM)Axel_Erfurt Wrote: to style the borders: def handlePaintRequest(self, printer): tableFormat = QtGui.QTextTableFormat() tableFormat.setBorder(0.5) ...
JokerSob GUI 8 4,800 Aug-06-2021, 03:05 AM
    Thread: QTableWidget print problem
Post: RE: QTableWidget print problem

(Aug-05-2021, 08:57 PM)Axel_Erfurt Wrote: There is an example on github PyQt5 - Print paginated QTableWidget i hadn't seen this... i'll try it now i hope it works...thank you
JokerSob GUI 8 4,800 Aug-05-2021, 09:10 PM
    Thread: Can't neither setWindowFlags nor setFixedSize of a subwindow.
Post: RE: Can't neither setWindowFlags nor setFixedSize ...

(Aug-05-2021, 06:14 PM)JayCee Wrote: Hi, guys. My MDI application used to have all the code in one single file and everything worked, but now that I split the code I can't set the subwindow flags a...
JokerSob GUI 10 4,155 Aug-05-2021, 08:43 PM
    Thread: QTableWidget print problem
Post: QTableWidget print problem

I created a print button for the QTableWidget where I display the db data, but after the dialog window that appears, I get an error. my code is as below : def PrintPrinter(self): printer = QPrint...
JokerSob GUI 8 4,800 Aug-05-2021, 08:22 PM
    Thread: How do I display the DB table I will choose from the QComboBox in QTableWidget
Post: RE: How do I display the DB table I will choose fr...

(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
JokerSob GUI 2 2,326 Aug-05-2021, 03:00 PM
    Thread: How do I display the DB table I will choose from the QComboBox in QTableWidget
Post: How do I display the DB table I will choose from t...

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 line...
JokerSob GUI 2 2,326 Aug-05-2021, 03:38 AM
    Thread: App crashes when reopening a subwindow
Post: RE: App crashes when reopening a subwindow

line 140, in <module> ui.setupUi(MainWindow) line 15, in setupUi self.ui.mdiArea = QtWidgets.QMdiArea() AttributeError: 'Ui_MainWindow' object has no attribute 'ui' also ui = Ui_...
JokerSob GUI 13 5,099 Aug-03-2021, 04:21 AM
    Thread: App crashes when reopening a subwindow
Post: RE: App crashes when reopening a subwindow

(Aug-03-2021, 01:58 AM)JayCee Wrote: self.mdiArea = QtWidgets.QMdiArea() self.mdiArea.setGeometry(0, 0, 600, 400) self.mdiArea.setAutoFillBackground(True) self.mdiAre...
JokerSob GUI 13 5,099 Aug-03-2021, 02:47 AM
    Thread: Associating 2 Db Tables With Each Other
Post: Associating 2 Db Tables With Each Other

There is a problem I've been working on and I don't know how to do it. First of all, I will try to explain in order to form an idea: Imagine you have several cars or you have a rental car company.You...
JokerSob GUI 0 1,184 Aug-02-2021, 07:18 AM
    Thread: How to update selected data in combobox displaying DB data?
Post: RE: How to update selected data in combobox displa...

(Jul-30-2021, 06:57 PM)deanhystad Wrote: Have you tried writing a program that connects to the database, does a query and prints the result? Not a GUI program, just a console program. I would star...
JokerSob GUI 3 3,449 Aug-02-2021, 04:39 AM
    Thread: How to update selected data in combobox displaying DB data?
Post: RE: How to update selected data in combobox displa...

by the way i solved the above problem. now it works flawlessly. but I couldn't find where to mark as solved.
JokerSob GUI 3 3,449 Aug-02-2021, 04:31 AM
    Thread: How to update selected data in combobox displaying DB data?
Post: How to update selected data in combobox displaying...

I have buttons in the combobox where I view DB data so I can edit, delete, and update the data I selected. When I press the edit button of a db data I selected in Combobox, I transfer it to qlineedit,...
JokerSob GUI 3 3,449 Jul-30-2021, 01:59 PM

User Panel Messages

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