Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Announcements
  4. Plugin that adds tabs to QtCreator
Forum Updated to NodeBB v4.3 + New Features

Plugin that adds tabs to QtCreator

Scheduled Pinned Locked Moved Announcements
34 Posts 18 Posters 33.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
    midi-pascal
    wrote on last edited by
    #20

    The plugin in its original version does not work for Creator 3.x
    You have to download the fork from github as indicated by Sperpheroth in an earlier post in this thread.
    For me it works perfectly (although with its knowned flaws).
    As a supplemental note, you must download the Creator sources and build it locally too to be able to build the plugin itself, and set two build environment variables (within Creator itself) to build it:
    Set QTC_BUILD to the path of the Creator build directory
    Set QTC_SOURCE to the path of the Creator sources directory

    All this because the plugin format changed completely from Creator 2.x to 3.x.

    I worked a bit on this plugin for Creator 3.3.0 and implemented the part to restore the tabs from the previous session on startup. Still testing it, though.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      midi-pascal
      wrote on last edited by
      #21

      The plugin sources for Qt Creator 3.3.0 with the last session restoration on startup are available here:
      https://github.com/midi-pascal/qtcreator-tabbededitor-plugin
      To build it (under Linux):

      • Download the sources
      • Open the project within Qt Creator 3.3.0
      • Set the two environment variables as I wrote in the previous post in the Project window, Build Environment (Details->Add)
      • Build the plugin
      • Locate libTabbedEditor.so
      • Copy it to the Qt subdirectory: Tools/QtCreator/lib/qtcreator/plugins/
      • Restart Creator
      • Enjoy!
      1 Reply Last reply
      0
      • M Offline
        M Offline
        midi-pascal
        wrote on last edited by
        #22

        The plugin sources for Qt Creator 3.3.0 with the last session restoration on startup are available here:
        https://github.com/midi-pascal/qtcreator-tabbededitor-plugin
        To build it (under Linux):

        • Download the sources
        • Open the project within Qt Creator 3.3.0
        • Set the two environment variables as I wrote in the previous post in the Project window, Build Environment (Details->Add)
        • Build the plugin
        • Locate libTabbedEditor.so
        • Copy it to the Qt subdirectory: Tools/QtCreator/lib/qtcreator/plugins/
        • Restart Creator
        • Enjoy!
        1 Reply Last reply
        0
        • B Offline
          B Offline
          bernhardberger
          wrote on last edited by
          #23

          Would someone be so kind to compile the tabbed editor plugin for me? QTC not having editor tabs really drives me nuts for years now.. unluckily I don't have any luck compiling it myself.. QtCreator 3.3 and on Windows..

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bernhardberger
            wrote on last edited by
            #24

            Would someone be so kind to compile the tabbed editor plugin for me? QTC not having editor tabs really drives me nuts for years now.. unluckily I don't have any luck compiling it myself.. QtCreator 3.3 and on Windows..

            1 Reply Last reply
            0
            • M Offline
              M Offline
              midi-pascal
              wrote on last edited by
              #25

              @bernhardberg

              Sorry, I cannot do that: I have no Windows box.
              However, it could be a good idea to specify which Windows version you are using if you expect someone to do this for you :-)
              Not sure a XP build would fit in a Windows 8 Qt Creator...

              Anyways I can certify the tabbed editor plugin is a major plus to Creator. I use it all day long and could not work without it now.

              Hope someone will do this for you :-)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                midi-pascal
                wrote on last edited by
                #26

                @bernhardberg

                Sorry, I cannot do that: I have no Windows box.
                However, it could be a good idea to specify which Windows version you are using if you expect someone to do this for you :-)
                Not sure a XP build would fit in a Windows 8 Qt Creator...

                Anyways I can certify the tabbed editor plugin is a major plus to Creator. I use it all day long and could not work without it now.

                Hope someone will do this for you :-)

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bernhardberger
                  wrote on last edited by
                  #27

                  whoops. It should read Windows 8 ;-) Yeah, as I said I'd really appreciate it if someone could give me a hand on this as I'm stuck on some questionable compile errors with Qt Creator and I actually would like to spend my limited free time on developing my OSS project rather than fix compile errors.. Editor Tabs would be just a very handy productivity enhancement as I think we all spend too much time browsing through open files rather than working..

                  I really don't get why Qt Creator doesn't support this ootb..

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bernhardberger
                    wrote on last edited by
                    #28

                    whoops. It should read Windows 8 ;-) Yeah, as I said I'd really appreciate it if someone could give me a hand on this as I'm stuck on some questionable compile errors with Qt Creator and I actually would like to spend my limited free time on developing my OSS project rather than fix compile errors.. Editor Tabs would be just a very handy productivity enhancement as I think we all spend too much time browsing through open files rather than working..

                    I really don't get why Qt Creator doesn't support this ootb..

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      midi-pascal
                      wrote on last edited by
                      #29

                      The answer to you last question can be found in Qt Creator FAQ.
                      In short: they do not want!

                      bq. Why does Qt Creator not use tabs for editors?
                      This question comes up from time to time, so we have considered it carefully. Here are our main reasons for not using tabs:
                      Tabs do not scale. They work fine if you have 5 to 6 editors open, they become cumbersome with 10, and if you need more horizontal space than the tab bar, the interface does not work at all.
                      Tabs do not adapt to your working set.
                      The common solution is to give the user the ability to reorder tabs. Now user has to manage tabs instead of writing code.
                      Tabs force you to limit the amount of open editors, because otherwise you get confused.
                      Consider the following use case: Developers want to switch editors.
                      In fact, developers do not want to switch editors, but might have to do so to accomplish their tasks. We need to figure out what the tasks are to provide developers with better ways to navigate while performing the tasks.

                      I cannot agree with the last sentence "developpers do not want to switch editors" because YES! I want to switch editors :-).

                      That's why I put some time time implementing the the tabs restoration from the last session in the tabbed editor plugin.

                      Why not give the choice to the developper?
                      If you do not want tabs, do not get the plugin
                      If you want tabs, install the plugin and use it

                      And most IDE's I know are tabbed editors, too!
                      But this is only my own opinion... :-(

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        midi-pascal
                        wrote on last edited by
                        #30

                        The answer to you last question can be found in Qt Creator FAQ.
                        In short: they do not want!

                        bq. Why does Qt Creator not use tabs for editors?
                        This question comes up from time to time, so we have considered it carefully. Here are our main reasons for not using tabs:
                        Tabs do not scale. They work fine if you have 5 to 6 editors open, they become cumbersome with 10, and if you need more horizontal space than the tab bar, the interface does not work at all.
                        Tabs do not adapt to your working set.
                        The common solution is to give the user the ability to reorder tabs. Now user has to manage tabs instead of writing code.
                        Tabs force you to limit the amount of open editors, because otherwise you get confused.
                        Consider the following use case: Developers want to switch editors.
                        In fact, developers do not want to switch editors, but might have to do so to accomplish their tasks. We need to figure out what the tasks are to provide developers with better ways to navigate while performing the tasks.

                        I cannot agree with the last sentence "developpers do not want to switch editors" because YES! I want to switch editors :-).

                        That's why I put some time time implementing the the tabs restoration from the last session in the tabbed editor plugin.

                        Why not give the choice to the developper?
                        If you do not want tabs, do not get the plugin
                        If you want tabs, install the plugin and use it

                        And most IDE's I know are tabbed editors, too!
                        But this is only my own opinion... :-(

                        1 Reply Last reply
                        0
                        • uCampaignU Offline
                          uCampaignU Offline
                          uCampaign
                          wrote on last edited by
                          #31

                          Hi, this is old thread but i've been working with another tabbed editor plugin for several months and it does help and is very useful. Having such an option for those who prefer it is not a bad thing, IMHO.

                          https://github.com/vseryakov/tabbededitor

                          1 Reply Last reply
                          1
                          • T tobias.hunger

                            There is Ctrl-K, Ctrl-Tab, Alt-Left/Right, the open documents pane, the dropdown list in the editor toolbar, all allowing you to switch between open documents.

                            So why waste space on tabs? All the other ways actually work for more than 5 or so files.

                            napajejenunedk0N Offline
                            napajejenunedk0N Offline
                            napajejenunedk0
                            wrote on last edited by
                            #32

                            @tobias.hunger Absolutely agree with Tobias. I usually arrange Windows' taskbar vertically on the left, so that more of the currently running programs ("tabs") could be visible at a time. So the already existing Qt creator opened documents viewer is far more convenient and as Tobias said space saving.

                            1 Reply Last reply
                            0
                            • mariakatosvichM Offline
                              mariakatosvichM Offline
                              mariakatosvich
                              wrote on last edited by mariakatosvich
                              #33

                              Also I would prefer to have an option to show tabbar only above editor (right side of the projects/outline/etc sidebar).Plugin does not work properly with spitted views. It shows several tabs for the same files in different splits which is confusing, but I don't know a proper solution.

                              I just wanted to try this, but apparently it no longer works. Upon startup I get an error that dependencies couldn't be resolved: "Core(3.0.0)" and "TextEditor(3.0.0)". Sounds like it just needs to be brought up to date?

                              Thanks
                              My Expertise - NFS server provisioning Kubernetes

                              "A pen in the hand of this president is far more dangerous than a gun in the hands of 200 million law-abiding citizens."

                              mrjjM 1 Reply Last reply
                              0
                              • mariakatosvichM mariakatosvich

                                Also I would prefer to have an option to show tabbar only above editor (right side of the projects/outline/etc sidebar).Plugin does not work properly with spitted views. It shows several tabs for the same files in different splits which is confusing, but I don't know a proper solution.

                                I just wanted to try this, but apparently it no longer works. Upon startup I get an error that dependencies couldn't be resolved: "Core(3.0.0)" and "TextEditor(3.0.0)". Sounds like it just needs to be brought up to date?

                                Thanks
                                My Expertise - NFS server provisioning Kubernetes

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #34

                                @mariakatosvich
                                it most likely need to be compiled with VS 2013.

                                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