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. How to have multiple tabs to open every new file in editor

How to have multiple tabs to open every new file in editor

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.1k 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.
  • M Offline
    M Offline
    moyin
    wrote on last edited by
    #1

    Hi, Actually i have designed an simple editor , till now i'm addressing a common Qtextedit for edit,cut,paste,undo,redo actions. but now the requirement is like i should have new tab with qtextedit for individual file.
    any one can help me in this regard.

    raven-worxR 1 Reply Last reply
    0
    • M moyin

      Hi, Actually i have designed an simple editor , till now i'm addressing a common Qtextedit for edit,cut,paste,undo,redo actions. but now the requirement is like i should have new tab with qtextedit for individual file.
      any one can help me in this regard.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @moyin
      use a QTabWidget and place a QTextEdit inside it for each added tab.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

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

        Hi
        You can just use a tab widget and place Qtextedit on those.
        Also need to have the concept of active QTextedit and not just the one you are using now.
        You can just use a pointer or what else you find easy.

        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