Hello!
I'm trying to put a 200px text in a QPushButton, in Ubuntu X11 there isn't problem but when i crooscompile to linux embedded text is small. I'm using Qt 4.3.0.
Anyone know how to solve the problem?
I have tryied 2 ways, with next code, but not working :
way 1:
QPushButton temperature;
temperature.setFlat(true);
temperature.setText("300 degrees");
temperature.
setMaximumSize(QSize(291,
16777215));
temperature.setStyleSheet("border: 0; background-color: transparent; font: 200px; font-family: Ubuntu");
temperature.setFlat(true);
temperature.setText("300 degrees");
temperature.setMaximumSize(QSize(291, 16777215));
temperature.setStyleSheet("border: 0; background-color: transparent; font: 200px; font-family: Ubuntu");
To copy to clipboard, switch view to plain text mode
way 2:
font.
setFamily(QString::fromUtf8("Ubuntu"));
font.setPointSize(200);
font.setBold(true);
temperature.setFlat(true);
temperature.setText("300 degrees");
temperature.
setMaximumSize(QSize(291,
16777215));
temperature.setFont(font);
QFont font;
font.setFamily(QString::fromUtf8("Ubuntu"));
font.setPointSize(200);
font.setBold(true);
QPushButton temperature;
temperature.setFlat(true);
temperature.setText("300 degrees");
temperature.setMaximumSize(QSize(291, 16777215));
temperature.setFont(font);
To copy to clipboard, switch view to plain text mode
Bookmarks