Python Forum
[PyQt] Qtableview adapte size to
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Qtableview adapte size to
#3
Thank you (again) for your help. When executing your code, it displays the Qtableview in another window.
And I also have this error message in terminal.
Error:
QLayout: Attempting to add QLayout "" to Window1 "", which already has a layout
Window1 is the name of my MainWindow class :

 class Window1(QMainWindow):
    
    def __init__(self):
        super().__init__()
        
        self.initUI()
        
               
    def initUI(self):  
You are right, I plan to add stuff in the bottom but what if I don't want the other widgets to fit with main window ? they will be hidden by Qtableview ? And if it put a Qframe, that I add to layout manager, since I don't add geometry, will it share the place equaly with the tableview ?
Reply


Messages In This Thread
Qtableview adapte size to - by WBPYTHON - Mar-22-2020, 06:51 PM
RE: Qtableview adapte size to - by deanhystad - Mar-22-2020, 08:27 PM
RE: Qtableview adapte size to - by WBPYTHON - Mar-22-2020, 10:03 PM
RE: Qtableview adapte size to - by deanhystad - Mar-23-2020, 01:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQt5 QTableView SQLite : edit cell HeinKurz 2 2,460 Mar-27-2023, 10:41 AM
Last Post: HeinKurz
  [PyQt] QStyledItemDelegate and QTableView malonn 1 1,686 Feb-07-2023, 07:15 PM
Last Post: malonn
  [PyQt] QTableView set header labels HeinKurz 2 6,965 Jan-23-2023, 08:46 AM
Last Post: HeinKurz
  [PyQt] Determine whether text in QTableView cell is fully visible or not random_nick 0 1,013 Oct-27-2022, 09:29 PM
Last Post: random_nick
  [PyQt] QTableView: scroll to top cell of the screen random_nick 2 2,898 Oct-08-2022, 12:29 AM
Last Post: random_nick
  [PyQt] [Solved]Add a Blank Row To QTableView Extra 3 5,633 Oct-02-2022, 04:53 PM
Last Post: Extra
  How to update the list of a combo box in a QTableView panoss 10 6,322 Feb-05-2022, 03:24 PM
Last Post: panoss
  [PyQt] How to Copy-Paste a table from Office apps to QTableView? Vittorio 5 7,327 Aug-05-2021, 11:14 AM
Last Post: Axel_Erfurt
  [Tkinter] Trying to change font size w/o changing button size python63 3 9,923 Aug-05-2020, 01:04 AM
Last Post: Larz60+
  [PyGUI] Showing text in QTableView sequence 0 3,096 Jan-20-2019, 05:00 PM
Last Post: sequence

Forum Jump:

User Panel Messages

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