How to add status line under QTableView ?
-
Hello,
my application contains QTableView derived class responsible for displaying network connections in realtime. There is used model/view mechanism and my model is derived from QAbstractTableModel.
I'd like to add status line in right bottom corner displaying number of all connections.What is the simplest way to do it ?
I was not successful with adding QLabel because it covers table content. I had idea to create modeless dialog and place QTableView derivate into it but I prefer more simple way if exist.
What do you recommend ?
-
@PetQter said in How to add status line under QTableView ?:
I'd like to add status line in right bottom corner displaying number of all connections.
What is the simplest way to do it ?
I was not successful with adding QLabel because it covers table content.
Use a
QVBoxLayout
. Add yourQTableView
andQLabel
to the layout.https://doc.qt.io/qt-5/qtwidgets-layouts-basiclayouts-example.html