Gopala Krishna
3rd October 2006, 14:26
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.
PropertyBox::PropertyBox(const QString& title, QWidget *parent) : QGroupBox(title,parent)
{
layout = new QGridLayout(this);
adjustSize();
lastRow = 0;
}
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.
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.
PropertyBox::PropertyBox(const QString& title, QWidget *parent) : QGroupBox(title,parent)
{
layout = new QGridLayout(this);
adjustSize();
lastRow = 0;
}
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.