Results 1 to 5 of 5

Thread: QLabel onto QTabWidget with Designer[Resolved it]

  1. #1
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QLabel onto QTabWidget with Designer[Resolved it]

    For some reasons I am unable to put a QLabel on a QTabWidget using Designer. I mean I can literal 'put' it there, and shows in preview, but does not show after runnning program. All other widgets show, though.
    Is there something I may have missed? Or only possible to do this coding by hand and not with Designer?
    Last edited by ksqt; 23rd February 2008 at 17:51. Reason: Resolved

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLabel onto QTabWidget with Designer

    Add a layout to the tab widget page after you put the label. And perhaps some spacers, depending on where you want it positioned.

  3. #3
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLabel onto QTabWidget with Designer

    It is already in a layout. It is alongside a spin box, and is only one word.
    I cannot see any label I put, no matter where onto the tabwidget. Visible in preview, though.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QLabel onto QTabWidget with Designer

    Quote Originally Posted by ksqt View Post
    I cannot see any label I put, no matter where onto the tabwidget. Visible in preview, though.
    Do you by any chance set application-wide style sheet, palette or something like that?
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    ksqt (23rd February 2008)

  6. #5
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLabel onto QTabWidget with Designer

    AAAhhh....Thanks...
    I had this
    ui.dockWidget->setBackgroundRole(QPalette:ark);
    and commented it out, and works now. Thanks very much for the hint. Appreciated.

Similar Threads

  1. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  2. Replies: 13
    Last Post: 15th December 2006, 11:52

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.