PDA

View Full Version : Basic Qt Questions



BalaQT
15th August 2009, 17:16
hi all,
1) how to find the value of a variable , in debugging mode.
(like immediate window in vb6.0 or WATCHES)

2) how to apply HEX codes directly in QT CREATOR.
ex
im using the following code to set the window color stored db.
The value is in should be in HEXcode. but my db contains the corressponding DECIMAL CODE.

pal.setColor(win1->backgroundRole(),q.value(6).toInt());

i will store the hexcode in db. and i want to set the correspondin color to the form.

how to read the hexcode frm db and set the color in QT?

Thanks
Bala

giowck
15th August 2009, 18:13
hi all,
1) how to find the value of a variable , in debugging mode.
(like immediate window in vb6.0 or WATCHES)


in console you can get debug info with

qDebug() << yourVar;