Results 1 to 3 of 3

Thread: resize qtabbar tab

  1. #1
    Join Date
    May 2008
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default resize qtabbar tab

    i am using QTabBar, How to set the size of each tab.

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: resize qtabbar tab

    I haven't done this by I would try the following things:
    1. reimplementing sizeHint() as it is recommended in the docs.
    2. play with the tabs layout properties.
    3. play with tabs geometry (derived from QWidget)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    May 2008
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: resize qtabbar tab

    using stylesheet somehow its possible to resize tab size, but it doesnt meet all. So
    i tried with tabsizehint and paintevent, but couldnt figured out...
    my each tab will look like a rectangle shape.......like
    QPoint(60, 0),
    QPoint(150, 0),
    QPoint(160, 35),
    QPoint(70, 35),
    QPoint(60, 0)

    plz, any help is appreciating....this task spinning me.....

Similar Threads

  1. Replies: 1
    Last Post: 10th August 2008, 18:55
  2. Replies: 2
    Last Post: 22nd January 2008, 16:10
  3. QGraphicsScene / QGraphicsView speed after resize
    By themolecule in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2007, 23:46
  4. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

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.