Results 1 to 5 of 5

Thread: Qtcreator sidebar

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

    Question Qtcreator sidebar

    I'm so impressed with qtcreator sidebar style. Black and gray combination. But I think they not use stylesheet for create like that. Who have sample code create a widget with style like that ?

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qtcreator sidebar

    look at the QtCreator sources - they are available for download from Qt Download site. They made their own style - ManhattanStyle - which is kind of proxy style as it uses default style for some controls. And the left side bar is QTabBar subclass (look for a FancyTabWidget in qt creator code).
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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

    Question Re: Qtcreator sidebar

    Yes. But I think is so hard for get the some code just for make style like that from qtcreator source

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qtcreator sidebar

    Quote Originally Posted by wirasto View Post
    Yes. But I think is so hard for get the some code just for make style like that from qtcreator source
    but did you look at this code? it's a bunch of QRects and QLinearGradients as I remember and subclassing QTabWidget and QTabBar is not so complicated - it is rater more simple than creating your own style...
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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

    Question Re: Qtcreator sidebar

    Of course. Actually, a few days before I post this question. I tried include manhattanstyle in my code. But I always get error code. Maybe I have not entered all the required header files.

    Hence, I want look a simple sample code. Maybe someone here has made it and want to share an example . Or ever written on his personal blog..

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.