Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to create a Tab layout like in Qt Creator?

    General and Desktop
    5
    11
    6435
    Loading More Posts
    • 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
      Xaser last edited by

      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 Reply Quote 0
      • T
        tobias.hunger last edited by

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

        1 Reply Last reply Reply Quote 0
        • L
          lfdm last edited by

          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 Reply Quote 0
          • X
            Xaser last edited by

            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 Reply Quote 0
            • G
              goetz last edited by

              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 Reply Quote 0
              • X
                Xaser last edited by

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

                I have edited the post thanks ^^

                1 Reply Last reply Reply Quote 0
                • T
                  tobias.hunger last edited by

                  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 Reply Quote 0
                  • X
                    Xaser last edited by

                    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 Reply Quote 0
                    • T
                      tobias.hunger last edited by

                      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 Reply Quote 0
                      • X
                        Xaser last edited by

                        That looks like it, thanks!

                        1 Reply Last reply Reply Quote 0
                        • D
                          dasun last edited by

                          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 Reply Quote 0
                          • First post
                            Last post