Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    2
    4
    1096
    Loading More Posts
    • 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
      lhb007 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • L
          lhb007 last edited by

          Hi SGaist,

          I have figured it out and could implement my QMdiAre.

          Thanks

          1 Reply Last reply Reply Quote 0
          • L
            lhb007 last edited by

            Hi SGaist,

            I have figured it out and could implement my QMdiAre.

            Thanks

            1 Reply Last reply Reply Quote 0
            • First post
              Last post