type cast from int to QString
I am a windows programmer looking to get started in Linux. I have chosen kdevelop and qt to design and code. How big is the learning curve when moving from a msdn enviroment to a Linux enviroment?
I could use any resourses for kdevelop and qt that anyone may have, I have a few already but you can never have enough. Now for the big question I am goofing with a turorial and I need to know how to type case from an int to a QString? Code:
#include <qlineedit.h> |
Got it if anyone else wants to know use QVariant like so:
Code:
#include <qlineedit.h> |
Whaaat? Just use the static function QString::number(yourInteger), which also works with doubles / longs etc....
|
All times are GMT -5. The time now is 03:43 PM. |