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. Need Help for tabs in title bar
Forum Updated to NodeBB v4.3 + New Features

Need Help for tabs in title bar

Scheduled Pinned Locked Moved General and Desktop
18 Posts 4 Posters 8.9k Views 1 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.
  • Chris KawaC Offline
    Chris KawaC Offline
    Chris Kawa
    Lifetime Qt Champion
    wrote on last edited by
    #6

    What I'm saying is that if you manage to create such a portable and flexible widget a lot of people might thank you :)

    The reality is that it's such an app-specific task, that there is very little gain in generalizing it into a widget. Some apps draw there menus(Photoshop), some tabs(Google chrome), there is this Office started trend of putting there differently shaped "start buttons" (Firefox, 3DS Max) or even animations and many many other things.

    At the end of the day the app ends up with drawing and handling input in it's own manner anyway. To generalize it you would have to allow for drawing on something like QPixmap and then under the covers draw part of it on a client area widget and part on the border in a platform specific way. This might or might not be less efficient than drawing directly using OS api facilities. There is also question of user input behavior which you would have to translate into some common events, which are often not really that common between OSes. Some OSes don't even have frames if you think about it. What then? You would have to assure some sane fallback.
    All that rarely comes close to looking "native".

    It's a broad subject, and to some degree all apps that do that have some issues with it. Some do it better, some worse, some are deliberately non-portable but in my experience nobody nailed it yet.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pramod85
      wrote on last edited by
      #7

      ok. I will try to do that as soon as my project is done. Now for my own problem. I got one application from KDE called rekonq. It is light web browser. It has similar layout (tabs in title bar) in its latest version 2.0 as i need to implement . And best part is it is implemented using qt.
      I am trying to understand the source code. Still it will be better if someone land a hand in it.
      Please.
      I will also trying to understand chromium web browser code.
      I hope i will get good results soon.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pramod85
        wrote on last edited by
        #8

        What do u think about ribbon ui ? it can be widget ?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #9

          Sure. You can even buy an "implementation":http://www.devmachines.com/qtitanribbon-overview.html of it for Qt. I've run some tests with it, and it seems to work nicely.

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #10

            I might be wrong but weren't there some MS restrictions as to where you can use ribbon ui? E.g. not in MS competing products (text editors, data sheets etc.)?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #11

              There are. See the comment on the bottom of the page I linked to:
              [quote]Remarks on the licensing Ribbon UI
              If you create an application that uses QtitanRibbon components, you must agree to a licensing agreement with Microsoft for the Ribbon UI before you can deploy your application. You receive no rights in the Ribbon UI from Developer Machines. You can request a license from Microsoft at http://msdn.microsoft.com/en-us/office/aa973809/.[/quote]

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pramod85
                wrote on last edited by
                #12

                Thank u Andre for your expert Guidance. Can you help me on my problem. I still haven't solve it completely.
                Please

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #13

                  You'll have to be more specific on what your (remaining) problems are than that to get usable answers...

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pramod85
                    wrote on last edited by
                    #14

                    ok
                    I am developing a document reader application for my college project using QT.
                    For that i trying to achieve the user interface same as chrome ( having tabs in title bar with new tab button and each tab has its own tool bar). I am trying to achieve this in cross platform manner so that i can develop and deploy the application on Windows, Mac os x and Linux.
                    this is my problem that how can i do this using qt ?

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #15

                      As you were told before: there is no cross-platform way to do this. Drawing in the client-area (as it is called on windows at least) is not supported by Qt.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Pramod85
                        wrote on last edited by
                        #16

                        Thank u for answer. I am changing my layout as i don't have enough time to implement it effectively. Instead of drawing tabs on window border i am drawing them inside the window as i draw in following frame
                        ":https://picasaweb.google.com/102226343931302605620/January242013#5837056419679280498
                        is this will be cross platform with qt ?

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          Pramod85
                          wrote on last edited by
                          #17

                          ":https://picasaweb.google.com/102226343931302605620/January242013#5837056419679280498

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            andre
                            wrote on last edited by
                            #18

                            Sure, that should be easy to get cross platform. As long as you use normal widgets and don't do OS specific code, it should be completely cross platform.

                            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