Results 1 to 3 of 3

Thread: QGroupBox title truncated on both sides

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

    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

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

    Default Re: QGroupBox title truncated on both sides

    Hello all,
    Sorry , i posted the above without much experimentation. I tried to separate the above app from main app and tried qmake. It worked very well. Actually all other small parts(programs) of the main application have these problems when using custom Makefile. Even the menu width can't accomodate the whole text in it.
    So, I think there is some problem with the way I compile. Hence I tried hard to match the app's Makefile with that generated by qmake. But i couldn't solve this problem.
    I have attached the makefiles.
    Please help me.
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGroupBox title truncated on both sides


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.