GUI in C++windows form GUI in C++
Page 1 of 1
12 Replies - 3887 Views - Last Post: 27 February 2010 - 09:02 PM
#1
GUI in C++
Posted 23 February 2010 - 07:35 PM
first of all, i and new to GUI and i would like to build a GUI with C++ language. and i have choose windows form to do it.
by make use of Visual C++, there are an easy job to create button, textbox and so on by just drag them into the GUI from the toolsbox.
however, i need help in how to make the pushbutton function as
when we press the button, it would allow us to choose a file from our computer directory.
anyone can tell me the code needed or show me any good reference site?
i have try to find in a lot of place, but i could not find any place which tell me directly what code to be used.
such as : textBox1->Text = "Hello from C++!"
Thank You so much~
Replies To: GUI in C++
#2
Re: GUI in C++
Posted 23 February 2010 - 08:17 PM
#3
Re: GUI in C++
Posted 24 February 2010 - 03:24 AM
#4
Re: GUI in C++
Posted 24 February 2010 - 03:36 AM
I haven't used this function, but it seems to do exactly what you need. There's also an example in c++.
#5
Re: GUI in C++
Posted 24 February 2010 - 04:56 AM
Anarion, on 24 February 2010 - 09:24 AM, said:
I agree, using wxWidgets means you can write cross platform code that you can port to iMacs, Linux, etc instead of being confined to Windows platforms
#6
Re: GUI in C++
Posted 24 February 2010 - 09:06 AM
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
#7
Re: GUI in C++
Posted 24 February 2010 - 09:13 AM
gnelkia, on 24 February 2010 - 03:06 PM, said:
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
I tend to use Code::Blocks as my main IDE
http://www.codeblocks.org/
and then instal wxPack
http://wxpack.source.../Main/Downloads
which includes wxWidgets and wxSmith (a GUI builder for wxWidgets)
#8
Re: GUI in C++
Posted 24 February 2010 - 07:49 PM
horace, on 24 February 2010 - 08:13 AM, said:
gnelkia, on 24 February 2010 - 03:06 PM, said:
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
I tend to use Code::Blocks as my main IDE
http://www.codeblocks.org/
and then instal wxPack
http://wxpack.source.../Main/Downloads
which includes wxWidgets and wxSmith (a GUI builder for wxWidgets)
Hi there, thank you for your information. i am downloading the wxpack.. can i know is that QT and wxpack are both lib for GUI in C++ ??
what should i do after i download it ?
thank you.
#9
Re: GUI in C++
Posted 24 February 2010 - 08:00 PM
gnelkia, on 24 February 2010 - 08:06 AM, said:
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.
#10
Re: GUI in C++
Posted 24 February 2010 - 08:17 PM
RH-00, on 24 February 2010 - 07:00 PM, said:
gnelkia, on 24 February 2010 - 08:06 AM, said:
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.
Thank you.
so i see.. QT sound like another standalone software for creating GUI than a lib for Visual C++.. am i right ?
Actually i have create a program in Visual C++.. for execute and processing the image for some output. it works nice in command prompt .. now i would like to move them into GUI...
is this can be done by using QT ?
#11
Re: GUI in C++
Posted 25 February 2010 - 02:59 AM
aniri, on 24 February 2010 - 02:36 AM, said:
I haven't used this function, but it seems to do exactly what you need. There's also an example in c++.
Thanks for the link.
i have read through the example and also the related references.. this is more to select a folder..
but actually i would like to prompt user for select a file..
thank you so much..
#12
Re: GUI in C++
Posted 25 February 2010 - 04:39 AM
RH-00, on 25 February 2010 - 05:30 AM, said:
gnelkia, on 24 February 2010 - 08:06 AM, said:
honestly i am new to GUI in C++... will consider deeply the suggestion. is that QT a special lib for GUI such as openCV lib for image ??
thanks all.. thank you so much..
No, Qt is an IDE, much like Code::Blocks, Visual Studio, or Dev-C++. It allows you to develop GUI applications with C++ far more easily than you could just using the Win32 API, with the added benefit of portability to other systems. For more information, check out the Qt homepage.
Just a little correction here, QT is not an IDE, it's a GUI framework
but it has an IDE named QT builder available to download. [ Link ]
#13
Re: GUI in C++
Posted 27 February 2010 - 09:02 PM
can anyone tell me how is this OpenFileDialog could be use ?
i have search on several website.. but the example code just not work on my program.. is there any special declaration needed ?
|
|

New Topic/Question
Reply





MultiQuote








|