Results 1 to 6 of 6

Thread: Tabs in titlebar (like Google Chrome)

  1. #1
    Join Date
    Feb 2007
    Location
    Italy
    Posts
    69
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Tabs in titlebar (like Google Chrome)

    Hello,
    I'm wondering: is it possible with Qt to have a window titlebar which can contain tabs, just like Google Chrome does?
    Google chrome also doesn't use a default decoration, how is it made? I know that on Linux Chrome uses GTK, but what about Qt?

    Thanks!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabs in titlebar (like Google Chrome)

    Chrome just looks like a fancy tab widget.
    Just think of a window without title bar and colored tab widget

  3. #3
    Join Date
    Feb 2007
    Location
    Italy
    Posts
    69
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Tabs in titlebar (like Google Chrome)

    Right. Sorry but I found out about QSplashScreen after posting :S

    Shall I use a QSplashScreen for having a window without title bar or is it sufficient to use FramelessWindowHint as window flag?

    When I'll have time, I'll try to implement this fancy tab widget I'm just gathering ideas for now.

    Thanks!

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabs in titlebar (like Google Chrome)

    QSplashScreen is for startup screens. It is like a pop up window.
    You can have frameless hint with a QWidget.

  5. #5
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: Tabs in titlebar (like Google Chrome)

    But, how about resize window with FramelessWindowHint ??

  6. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Tabs in titlebar (like Google Chrome)

    you have to re-implement the mouseMoveEvents (with Press and release combination) and move/resize the windows. This is the single significant reason not to do it. It involves complex coding and what we gain is re-invent the wheel, which is already provided by your OS.

Similar Threads

  1. Mac titlebar buttons Issue.
    By kaushal_gaurav in forum Qt Programming
    Replies: 5
    Last Post: 9th July 2009, 21:45
  2. TitleBar color
    By chethana in forum General Programming
    Replies: 1
    Last Post: 14th November 2008, 17:20
  3. QMainWindow with no titlebar in OSX
    By xgoan in forum Qt Programming
    Replies: 3
    Last Post: 22nd February 2007, 12:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.