Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Looking for example of resizable windows and also multi-column list views
QtWS25 Last Chance

Looking for example of resizable windows and also multi-column list views

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 301 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jonwil
    wrote on last edited by
    #1

    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)

    Pl45m4P 1 Reply Last reply
    0
    • J jonwil

      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)

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @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:

      • https://doc.qt.io/qt-5/qwidget.html#windowModality-prop

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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 ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • J Offline
          J Offline
          jonwil
          wrote on last edited by jonwil
          #4

          Thanks, QTableView is definitely what I need.
          And I will look at QLayout and friends for my resizing needs.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved