Archive for the 'qt' Category

20
May
09

qt images


Why won’t Qt show jpg images when you move an exe from one computer to another? I’ve stumbled upon this problem today at work. The solution was to convert my resources to bmp.

Does anyone have any idea why this happened?

14
May
09

Qt and QtUiLoader in QtCreator


If you want to use QtUiLoader in your project, you should make sure you’re in Release mode and that you’ve added the following line to your .pro file:


CONFIG += uitools

I tried to build the same thing in Debug mode, but QtCreator couldn’t link against the library.

06
May
09

transparent widget background in qt


Here’s how you set a widget not to have a background :


widget->setAttribute(Qt::WA_NoSystemBackground,true);

This one came in handy today with some labels.




Blog Stats

  • 216,787 hits