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. [SOLVED] How to create QMdiArea with multi type sub windows?

[SOLVED] How to create QMdiArea with multi type sub windows?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.3k 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.
  • L Offline
    L Offline
    lhb007
    wrote on last edited by
    #1

    I would like to design a QMdiArea as central widget capable of opening QTextEdit as well as QTableView windows. I use "MDI example":http://doc.qt.digia.com/4.6/mainwindows-mdi.html as my base line. This example is designed for opening and editing text files. How can I modify it to also open tableView windows?

    I'd like to be able to arrange windows in vertical and horizontal tile and cascade views and disable the File menu features for tabelView windows only.

    Thanks

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

      Hi,

      Technically you can add any widget type to a QMdiArea.

      To enable/disable stuff, you can use the aboutToActivate signal and check in the connect slot the type of the sender to update your GUI.

      Hope it helps

      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
      0
      • L Offline
        L Offline
        lhb007
        wrote on last edited by
        #3

        Hi SGaist,

        I have figured it out and could implement my QMdiAre.

        Thanks

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lhb007
          wrote on last edited by
          #4

          Hi SGaist,

          I have figured it out and could implement my QMdiAre.

          Thanks

          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