1. How can I change resolution using QT4? A simple example will be appreciated. I must use Windows\Linux functions or is another way to do this?
2. I have "QImage *image" and I do:and when I compile \ run program everything is OK. The image is painted od Widget. When move everthing to another directory it works too. But when I copy files to another computer image->isNull() return true and of course I have black screen. I don't understand what I do wrong? On one computer everuthing is OK, simple Copy->Paste to another and it didn't workimage = new QImage("../Images/bMMenu.jpg");
if( image->isNull() ){
QMessageBox::about(this, tr("ERROR"),
tr(" I can't find bMMenu.jpg"));
}
Second computer is without QT. I copy also DLL's.
Bookmarks