Results 1 to 1 of 1

Thread: QTabWidget cuts off QX11EmbedContainer a little bit?

  1. #1
    Join Date
    May 2012
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTabWidget cuts off QX11EmbedContainer a little bit?

    Hello everybody,

    So I have a QTabWidget that houses two other widgets, a QX11EmbedContainer and a regular QWidget.

    The problem I'm having is that the tabs at the top cut off the top of the widgets they are displaying:

    QTabWidget_cuts_off.png

    Hopefully this isn't a major problem.
    I tried making both the QTabWidget and its childs bigger using setFixedSize(), but the children keep sticking to the top of their parent.

    Qt Code:
    1. QX11EmbedContainer *container;
    2. QWidget *wd;
    3. QTabWidget *livePlayTab;
    4.  
    5. livePlayTab = new QTabWidget ( this );
    6. livePlayTab -> setFixedSize ( 320, 320 );
    7. livePlayTab -> setTabPosition ( QTabWidget::North );
    8.  
    9.  
    10. container = new QX11EmbedContainer ( livePlayTab );
    11. container -> setFixedSize ( 320, 240 );
    12. container -> show();
    13.  
    14. wd = new QWidget ( livePlayTab );
    15. wd -> setFixedSize ( 320, 240 );
    16. wd -> show();
    17.  
    18. livePlayTab -> addTab ( container, "Live Display" );
    19. livePlayTab -> addTab ( wd, "Playback" );
    To copy to clipboard, switch view to plain text mode 

    livePlayTab is inside a few other QGridLayouts, if that helps at all.

    Putting the tabs in the south position isn't as appealing..

    Does anyone know how I fix this problem?

    EDIT: I think I need to look in the QStyleOptionTabWidgetFrame docs, am I right?
    Last edited by dsab123; 12th July 2012 at 20:59.

Similar Threads

  1. QX11EmbedContainer problem
    By Martin42 in forum Qt Programming
    Replies: 17
    Last Post: 16th May 2011, 14:25
  2. Axis yLeft cuts of numbers
    By sun in forum Qwt
    Replies: 17
    Last Post: 9th October 2009, 21:36
  3. QX11EmbedContainer into a QSplitter (qt 4.4.3)
    By giancarlo in forum Qt Programming
    Replies: 5
    Last Post: 20th December 2008, 22:33
  4. QX11EmbedContainer Problems
    By GuS in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2008, 17:28
  5. QGraphicsPixmapItem cuts off when zoomed
    By abbapatris in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2008, 15:05

Tags for this Thread

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.