Results 1 to 3 of 3

Thread: QGroupBox title truncated on both sides

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    37
    Thanked 53 Times in 40 Posts

    Default QGroupBox title truncated on both sides

    hello guys,
    I have a problem regarding title of QGroupBox. I have created a class which inherits QGroupBox. This class just manages the children widgets and doesn't do any painting. I just call base constructor like this.
    Qt Code:
    1. PropertyBox::PropertyBox(const QString& title, QWidget *parent) : QGroupBox(title,parent)
    2. {
    3. layout = new QGridLayout(this);
    4. adjustSize();
    5. lastRow = 0;
    6. }
    To copy to clipboard, switch view to plain text mode 

    I could never figure out why the title of this QGroupBox is always truncated. I thought the problem was with qt and experimented with a sample example containing QGroupBox. But to my astonishment the QGroupBox was displayed properly. I also removed all *.setFont()'s from the app but it doesn't help. Even i tried with placing adjustSize() at varios places but this didnt help. You can have a look of the image attached which describes my problem.
    So please can you peple help me solve this problem.
    Attached Images Attached Images

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.