Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I just acquired Microsoft Visual studio 2013 for my college so you know what environment I'm using. I have never done any visual elements with c++, I have with many other easy languages such as LUA via the iPad or python, so on and so forth. Main question is, where do I start, what libraries do I use. Just some direction would be a huge help.
Thanks Guys,
Rain Terminal
Qt is a mature C++ library for cross-platform GUI development.
There is no standard way to create a GUI with C++.
Since you are on Visual Studio and Windows, you can use the methods offered by the system, functions like CreateWindow etc. There are plenty of examples online, Google it.
Visual Studio also offers the so called MFC (you have to start a new C++ project as MFC), that allow easy development of GUI by interacting directly with GUI elements (similar to Delphi IDE). But this is all for Windows only.
If you are looking for a cross-platform alternative, there is Qt as mentioned before.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm sorry if the question is stupid and naive but still: how one can/should develop gui apps for windows in VS using native c++? I'd like to avoid using CLR and .NET stuff in the project. There are 2 obvious way: use heavy and monstrous MFC or code using API without any visual support, which seems also a bad choice for tricky ui. I wonder if there are other ways to create gui in VS?
You can use Win32 API which is a bit more complicated or use other external libraries that are easier such as gtk, wxWidgets, QT and others, but Win32 API is better because you will understand the operation of the windows and not have to download any library, but usually the codes made with Win32 API are higher than those made with external libraries. Using Win32 API you need to create the window class, event loop and other manually way.
I think QT is the easiest because the interfaces are created in graphical environments.
See these:
http://qt-project.org/
http://www.gtk.org/
And this tutorial about QT:
http://zetcode.com/gui/qt4/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to make a graphical application using Visual Studio 2010. I am trying to use C++ and have the app run natively on windows 7 straight out of an exe. Please give me some suggestions for what libraries to include as well as general concepts or a help document for it.
I know the question is broad, but I am only looking for broad answers.
Thanks
The "basement of everything" is the windows "hello world"
and all the windows API and related usage.
You can easily start from here.
If you are interested in other platforms, the equivalent base forn *nix (and linux-) derived systems are the X11 API.
There are then framework libraries that wrap both Windows or X API exposing a same consistent interface, like
WxWidget
GTK
Qt
FLTK
Nana
Some are easier, some more complete, some other even overkill.
But it's mostly all about taste.
VC++ provides Windows Forms for GUI development and GDI+ for 2D graphics, built-in and full-fledged. What more do you need ?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
OK, C++ noob here asking a very nooby question (sorry) but whenever I write my basic programs (helloworld etc.) they always appear in a command prompt window. I want to make proper windows like in Word and other programs. I know it is possible to do this because of all the programs I use every day. But how do I do this in C++? For all the Java veterans out there, I want it to be like a JFrame, but the C++ equivalent.
C++ doesn't have a UI library out of the box, so you need to choose one.
Popular options would be MFC (under Windows/Visual C++) or Qt (with quite a lot additional libraries and features, working on many platforms).
Since you mention Word, it appears that you're on the Windows platform.
Then consider starting with e.g. the Lessons in Windows API Programming (C++) hands-on tutorial.
There are also a great many other tutorials on the net, and books to buy. I just picked the one that I was most familiar with, as the author. Regarding books, the classic book on programming the Windows API is Petzold's "Windows Programming", but I seem to recall that the latest version is for Windows 8 and in C# (earlier version were C/C++).
The tutorial leads you through how to get started with creating window programs using the Windows API (Application Program Interface) direcetly.
This is fairly language independent, but the language used in the tutorial is C++. C++ doesn't have standard library support for GUI stuff. The idea in C++ is that you're free to use whatever third party libraries that you want, or create them, such as the Windows API.
This is highly platform dependent. You can use a GUI cross-platform library, like QT, or use native mechanisms. Under Windows you can use the WinAPI and MFC.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking to write some simple GUI applications in C or C++, and am stuck for choice between the cross-platform toolkits. Keep in mind that I am developing in Ubuntu, preferably without an IDE, and preferably with good cross-platform support.
What are the pros and cons of some of these toolkits? Which have you had the best experience with?
So far, I've looked into Qt, GTK+ and wxWidgets.
I have experience with Qt and wxWidgets. Both are OK for simple GUI applications, but Qt looks more professional. I like that it keeps GUI definition code in separate files (like in .NET WinForms designer), and it is not mixed with our own code. Qt Creator is good IDE which may be used also for developing non-Qt C/C++ applications.
In Ubuntu, both Qt and wxWidgets are available in the repository, and can be installed by standard way, without building the source.
I have a friend that is programming 3D Game Engine and he is using and recommending wxWidgets. On the other hand I have some friends developing applications for Nokia Phones, and they are using QT, and recommending it too. The answer is - choose what fits you best. ;]
since both Qt and wxWidgets have been recommended, I have only one more I know enough to recommend: Clutter. It's more of a widget toolkit, rendered in OpenGL.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I currently develop many applications in a Qt heavy C++/Python environment on Linux, porting to PC/Mac as needed. I use Python embedded in C++ as well as in a stand alone GUI. Qt is used fro xml parsing/event handling/GUI/threading and much more. Right now all my Python work is in PyQt and I wanted to see how everyone views PySide. I'm interested because it is in house and as such should support more components with hopefully better integration. What are your experiences?
I know this has been asked before, but I want to revive the conversation.
We were recently thinking about using PySide, but we haven't found any information about whether it is supported by py2exe. That's why we kept to PyQt. If you need to develop for Windows, it's safer to use good ol' PyQt :-)
As of PySide 1.0 beta (Qt 4.7.1), there is an official Windows installer that works. It doesn't include QtDesigner and other tools, only uic.
PySide currently does not run on Windows, which limits your capability. If you were developing on Linux and needed to avoid pure GPL, then PySide is a candidate.
From an API standpoint, I find the signal/slots capability feels more "Pythonic".