Looking for example of resizable windows and also multi-column list views
-
I have a program (closed source) written in QT5 that supports plugins that are also written with QT to extend the program.
One of the APIs this program exposes to the plugins creates an empty top-level window (more specifically a QWidget) that you can do stuff with. (the idea being that its the base for your own UI for your plugin)Most of the in-built windows in this application let you resize the window and the controls get resized or moved as well. Is there an example out there showing how I can achieve something similar (i.e. listen for some sort of window resize event and then adjust the controls as appropriate). Oh and is there a way to make such a top-level window modal (i.e. create the window with the above mentioned API then set some flag to make the window modal)
Also is there an example out there of how to do a multi-column list view? (not sure even what search term to plug into the QT documentation to find the right class)
-
@jonwil said in Looking for example of resizable windows and also multi-column list views:
Is there an example out there showing how I can achieve something similar (i.e. listen for some sort of window resize event and then adjust the controls as appropriate)
Isn't this exactly what a
QLayout
(and each of its subclasses) does?According to you modal window question:
-
Hi,
@jonwil said in Looking for example of resizable windows and also multi-column list views:
Also is there an example out there of how to do a multi-column list view? (not sure even what search term to plug into the QT documentation to find the right class)
Isn't that a QTableView ?