Monthly Archives: July 2013

[Qt] How to set QLineEdit with numbers only

Qt has rather indirect way to control input type. “setInputMethodHints” is available, but QLine Widget ignores it. We need to use QReqExp class for defining “Regular Expressions” , below  is example of regular expression where QLineEdit only takes input in … Continue reading

Posted in Qt | 1 Comment

[Qt] How to cast objects in Qt

Qt has many advantages and sometimes C++ developer finds it difficult position to choose between standard C++ and Qt native calls. Here is good way to do casting between Qt objects and widget Use of qobject_cast() for casting objects  instead … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment