Qt trial (1)
-If the language is incorrect, set this parameter.
Set lang = en_us
Cd "C: \ Documents ents and Settings \ Administrator"
C: \ qtsdk \ qtcreator \ bin \ qtcreator.exe
-Debugging when Vc is Compiler
Debug tools for Windows needs to be installed. After installation, restart QT creater.
-Write a simplest DialogProgramAnd add a message ing for the button.
Right-click, select go to slot, and select onclieked
InputCode
Void dialog: on_pushbutton_clicked ()
{
Qmessagebox msgbox;
Msgbox. settext ("the document has been modified .");
Msgbox. setinformativetext ("do you want to save your changes? ");
Msgbox. setstandardbuttons (qmessagebox: Save | qmessagebox: discard | qmessagebox: Cancel );
Msgbox. setdefaultbutton (qmessagebox: Save );
Int ret = msgbox.exe C ();
}
-Getting Started video
Http://qt.nokia.com/products-cn/developer-tools-1/tools-flipper/cross-platform-ide/