Results 1 to 3 of 3

Thread: Custom tab widget question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    17
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Custom tab widget question

    I would like to add widgets in the same horizontal line as the tab area on a QTabWidget. Qt has the API to add a small widget to the left or right hand side but there are a lot of size limits (only 1 button will fit for example).

    So I began mocking up a custom tab widget that mimics the QTabWidget but would allow any number of buttons to be entered in that same area, it works just fine but I can't figure out how to get the border to look like the normal QTabWidget. The border that goes up around the tab, and then down around the entire stacked widget. I posted an image where I added a border to the stack widget (just to show where it is at) and the QTabBar with some buttons.

    Any idea how to make the bordering look like the QTabWidget (or is there an easier way to get what I want without a custom tab widget)?
    How does the normal QTabWidget integrate the border of the QTabBar with the QStackedWidget to make it look like one seamless widget?
    Attached Images Attached Images

Similar Threads

  1. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  2. Replies: 1
    Last Post: 5th November 2006, 23:50
  3. Problem applying setWindowOpacity to a custom Widget
    By yellowmat in forum Qt Programming
    Replies: 8
    Last Post: 1st November 2006, 10:05
  4. Replies: 3
    Last Post: 12th April 2006, 08:20
  5. Replies: 4
    Last Post: 24th March 2006, 22:50

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.