How to create windows GUI in visual studio? [closed] - c++

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/

Related

How do the cross-platform windows frameworks like Qt work? Are they wrappers around native API? [closed]

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 3 years ago.
Improve this question
Are QT/WxWidgets wrappers around respective native APIs' on linux, windows and Mac?
How are cross-platform windows framework built? How is cross-compiling done?
Thanks
Yes.
Sometimes they use lower level APIs to generate their own implementation of higher level APIs; like one that uses OpenGL to implement non-OS widget library. At other times they could adapt/reskin/modify OS widgets.
They are usually not cross-compiled. They just build and provide a similar API on multiple platforms, allowimg "client" code to compile with fewer changes on multiple platforms.

C++ Basics to Starting a very simple GUI [closed]

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.

Creating graphical programs using VC++ 2012 [closed]

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 ?

Console application with signals, threads and network, Qt or POCO [closed]

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 9 years ago.
Improve this question
I have to develop a console application interacting with a Qt Gui via IPC. I already have a good experience with the Qt framework, I am completely new to POCO. I also need a good SQLite wrapper.
What are the pros and cons of Qt vs Poco for my case ?
So far, I've listed:
Qt pros:
very good documentation
active community
in my case, experience
easy to use
cross platform
SQLite wrapper is nice
Easy threading via signals and slots (no need of mutexes)
Qt cons:
lack of integration with standard C++, everything works with Qt objects (QString, etc.)
Meta object compiler (MOC)
New developer must learn the Qt framework to code
Stick to GCC 4.2.1 on Mac instead of the latest clang shipped from now on with Mac
Must inherit from QObject to use signals, threads, etc.
Poco pros:
easy to use ?
faster for networking (Http in my case) ?
No need of MOC
builds with Clang seamlessly ?
cross-platform
easy threading ?
Poco cons:
lack of documentation !
small community
?
I hope Qt5 will be usable with clang, llvm on mac ?
I would very much appreciate your insight about this.
Thanks.

PyQt vs PySide comparison [closed]

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".