PDA

View Full Version : QDialogButtonBox text not painted



kshi
8th January 2011, 01:41
Hi, All,

I am using Qt 4.7.1, it's cross compiled to an ARM9 linux (arm-none-linux-gnueabi) platform. Everything seem to be working fine. the browser built on it works well. Just one tricky little problem, the texts in button boxes are missing, such as "Ok", "Cancel", etc. But the texts in the other widgets are fine, such as QPushButton, etc.

I checked QDialogButtonBox, unlike QPushButton, I can't find paintEvent in it or its ancesters. But I believe it must be some where, I probably missed something some where.

Can some one give me a hint on this?

Thanks a lot,

Sam

Added after 50 minutes:

well, it's fixed, turns out the Tr(buttonText) in buttonbox somehow doesn't work.

Sam