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



  • 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.


  • Moderators

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


  • Qt Champions 2017

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.