Category: Qt

Qt how to add torch / flash in your phone

Are you getting QCameraExposure is not found??? Then goto your project file and add the following: CONFIG += mobility MOBILITY += contacts messaging multimedia systeminfo # Self-signing capabilities symbian:TARGET.CAPABILITY += NetworkServices ReadUserData WriteUserData LocalServices UserEnvironment // in header file QCamera *qcam; QCameraFlashControl *qcamflash; QCameraExposure *qcamexp; // in cpp file qcam = new QCamera(); qcamexp =

Continue Reading →

loading C++ libs in linux with Qt

1) Create ur qt project. 2) include all the header files in your project. 3) Use appropriate namespaces 4) Important part: linking against your libraries In your .pro file, use : LIBS += -L”/home/test/Desktop/test-build-desktop/” -lLibrary1 -lLibrary2 Here library1 and 2 are the names of the libraries i link against. 5) Now from the command prompt

Continue Reading →

Making a .sis file for Nokia [download makesis and Comdlg32.ocx]

The easiest way to create a .sis file would be to use the tool makesis. You can download the tool from here: http://www.kmdarshan.com/makesis/Makesis_v1.0_by_Gip.rar http://www.kmdarshan.com/makesis/Makesis_v1.0.zip Also you would need to download this dll, and put it in your C:WindowsSystem32 for this tool to work. you can download the dll here: http://www.kmdarshan.com/makesis/Comdlg32.zip good luck packaging.

Continue Reading →

Using Qtimer instead of Sleep

Sample code to use Qtimer in Qt instead of Sleep if you want a stoppage in your code: slideShowtimer = new QTimer(this); selectedPicture = 0; //QTimer::singleShot(5000, this, SLOT(slideShowHelper())); connect(slideShowtimer, SIGNAL(timeout()), this, SLOT(slideShowHelper())); slideShowtimer->start(1000);

Continue Reading →