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 create a Tab layout like in Qt Creator?
QtWS25 Last Chance

How to create a Tab layout like in Qt Creator?

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 7.0k Views
  • 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.
  • X Offline
    X Offline
    Xaser
    wrote on last edited by
    #1

    Hi!

    I just played around a bit with the Qt Designer and wondered whether it would be possible to create a Tab "Widget" which looks very similiar to the Qt Creator itself, i.e. you have a big bar with icons on the left side from which you can select. Till now i only managed to do this with Buttons, however the style of the buttons is quite "fixed" and doesn't quite look as good. Any ideas on how to achieve this desired layout?

    Regards,
    Xaser

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Check creators code... it is available "here":http://qt.gitorious.org/qt-creator.

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

        Hey Xaser!

        Have you tried achieving this simply with a toolbar to which you set the position on the left anchor and forbid it to move?

        That would be my first guess. You can always get the Qt Creator source code from the download page and dig through the code.

        Regards,
        -Damien

        Damien LEFEVRE - http://www.lfdm.net

        1 Reply Last reply
        0
        • X Offline
          X Offline
          Xaser
          wrote on last edited by
          #4

          Hey thanks for the Tipp to use the sourcecode - i didn't even know it was available. I looked through it and already located the icons in the ProjectExplorer Plugin. However i'm still busy scanning the code of the plugin for the referenzes to the icons or to any GUI code regarding this menu bar - and i just can't find anything.

          Can maybe somebody lead me to the right track?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Please stick to English in the general forums - it's our lingua franca here :-) We have a "German language subforum":/forums/viewforum/30/ if you want to discuss in German, though.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • X Offline
              X Offline
              Xaser
              wrote on last edited by
              #6

              Whupsy ^^ Got confused jumping between the two language forums :)

              I have edited the post thanks ^^

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                Sorry, I am not sure which widget you were actually referring to, so providing more accurate information on where to find it is kind of difficult:-)

                1 Reply Last reply
                0
                • X Offline
                  X Offline
                  Xaser
                  wrote on last edited by
                  #8

                  Well in Qt Creator you have that dark bar with icons on the left side where you can switch between the main modes, welcome, edit, design and so on. I wish to create something like that.

                  Regards,
                  Xaser

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #9

                    I think that is src/plugins/coreplugin/fancytabwidget.cpp.

                    I never had to touch that part of the code, so I might be wrong though:-)

                    1 Reply Last reply
                    0
                    • X Offline
                      X Offline
                      Xaser
                      wrote on last edited by
                      #10

                      That looks like it, thanks!

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dasun
                        wrote on last edited by
                        #11

                        I know this is very old thread. Please let me know, Can I use this widget in my commercial LGPL licence project?

                        1 Reply Last reply
                        0

                        • Login

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