Skip to main content
added 127 characters in body
Source Link
Dr Deo
  • 4.9k
  • 11
  • 47
  • 76

one problem i have always had with c++ is that unlike java, there are no standard gui libraries provided with the language. in summary if you want gui's in c++ you have to choose a library and there are many choices-
win32 api, mfc, winforms, and lately wfp(for .net developers). I wont say any more about these.
There is also qt which is provided by nokia. Personally i have tried win32 and mfc and qt and i prefer qt. To create your simple gui

  • 1. download qt for visual studio(google search)
  • 2. download the qt visual studio addin.This eases the pain of compiling qt apps in vs[download the addin here][1]
  • 3. create a new qt application from visual studio and use qt designer to add any user interface elements(widgets).
  • 4.Add your methods to the generated class to do your specific logic. If you need to say print some text eg to a line edit called myLineEdit, use some thing like this
ui.myLineEdit->setText("Hello world");

Gui development is wide. I hope this helps if you are in a hurry.

For a quick video introduction, you could also try ics video tutorials

one problem i have always had with c++ is that unlike java, there are no standard gui libraries provided with the language. in summary if you want gui's in c++ you have to choose a library and there are many choices-
win32 api, mfc, winforms, and lately wfp(for .net developers). I wont say any more about these.
There is also qt which is provided by nokia. Personally i have tried win32 and mfc and qt and i prefer qt. To create your simple gui

  • 1. download qt for visual studio(google search)
  • 2. download the qt visual studio addin.This eases the pain of compiling qt apps in vs[download the addin here][1]
  • 3. create a new qt application from visual studio and use qt designer to add any user interface elements(widgets).
  • 4.Add your methods to the generated class to do your specific logic. If you need to say print some text eg to a line edit called myLineEdit, use some thing like this
ui.myLineEdit->setText("Hello world");

Gui development is wide. I hope this helps if you are in a hurry.

one problem i have always had with c++ is that unlike java, there are no standard gui libraries provided with the language. in summary if you want gui's in c++ you have to choose a library and there are many choices-
win32 api, mfc, winforms, and lately wfp(for .net developers). I wont say any more about these.
There is also qt which is provided by nokia. Personally i have tried win32 and mfc and qt and i prefer qt. To create your simple gui

  • 1. download qt for visual studio(google search)
  • 2. download the qt visual studio addin.This eases the pain of compiling qt apps in vs[download the addin here][1]
  • 3. create a new qt application from visual studio and use qt designer to add any user interface elements(widgets).
  • 4.Add your methods to the generated class to do your specific logic. If you need to say print some text eg to a line edit called myLineEdit, use some thing like this
ui.myLineEdit->setText("Hello world");

Gui development is wide. I hope this helps if you are in a hurry.

For a quick video introduction, you could also try ics video tutorials

Source Link
Dr Deo
  • 4.9k
  • 11
  • 47
  • 76

one problem i have always had with c++ is that unlike java, there are no standard gui libraries provided with the language. in summary if you want gui's in c++ you have to choose a library and there are many choices-
win32 api, mfc, winforms, and lately wfp(for .net developers). I wont say any more about these.
There is also qt which is provided by nokia. Personally i have tried win32 and mfc and qt and i prefer qt. To create your simple gui

  • 1. download qt for visual studio(google search)
  • 2. download the qt visual studio addin.This eases the pain of compiling qt apps in vs[download the addin here][1]
  • 3. create a new qt application from visual studio and use qt designer to add any user interface elements(widgets).
  • 4.Add your methods to the generated class to do your specific logic. If you need to say print some text eg to a line edit called myLineEdit, use some thing like this
ui.myLineEdit->setText("Hello world");

Gui development is wide. I hope this helps if you are in a hurry.