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. Split view of QTextEdit or QTabWidget
Forum Updated to NodeBB v4.3 + New Features

Split view of QTextEdit or QTabWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k Views 2 Watching
  • 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
    LauraB
    wrote on last edited by LauraB
    #1

    Hi everyone,

    I was wondering how splitting view is done.
    For example, in QtCreator, we can split the view horizontally or vertically and we can also split within an already splitted view.
    Since I'm developing an editor myself, I wanted to add this feature.

    For now, I have a QTabWidget with a bunch of QTextEdit* .

    I just need some pointers/ideas, not necessarily a complete solution.

    Thanks a lot

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

      hi
      First step could be to split the tab in 2
      you can use
      http://doc.qt.io/qt-5/qsplitter.html#details

      If you want to allow splitting of already split "tabs" then it will become complicated.

      So since you already used tabs what is the design goal?

      1 Reply Last reply
      1
      • L Offline
        L Offline
        LauraB
        wrote on last edited by
        #3

        Hi, thanks for answering.

        Let's say you have 3 documents opened in the QTabWidget : DocA, DocB, DocC. I want to be able to split view, let's say vertically, so I can either have DocA and DocB simultaneously on screen, or even better, DocA twice at different cursor location.

        I'm gonna look further into the link you gave me. Thanks

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

          Hi,

          In that case, you should take a look at Qt Creator's sources for inspiration.

          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

          • Login

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