Getting started with Kinect + OpenNI + Qt on Windows 7 - qt

I would like to write a simple application using Kinect, OpenNI and Qt on Windows 7.
I have installed OpenNI, NITE, the SensorKinect driver, Qt Creator and Visual Studio 2010. Now, is there a tutorial, guide, or a simple base application where I could start from?

Since I'm not sure if you want to use C++, C# or VB, I'll try to give the places that helped me get started. I use C#.
To know the concepts and how it works, I suggest reading this: http://openni.org/Documentation/ProgrammerGuide.html
For an easier start, you could use Nui.Vision from Vangos Pterneas, read this tutorial: http://www.codeproject.com/Articles/169161/Kinect-and-WPF-Complete-body-tracking.aspx
There are some WinForms samples for .NET, check the tutorials on OpenNI.org (the C# .NET ones).

Personally I would use the Microsoft Drivers at http://kinectforwindows.org
There are several video tutorials that are very good that go along with these binaries found here:
http://channel9.msdn.com/coding4fun/kinect/
This is where I would start for beginners:
http://www.microsoft.com/en-us/kinectforwindows/resources/
This being said, you can't use OpenNI and Kinect For Windows. Only one or the other.

Related

Development of Qt app using MSVC source code

Is there anyway that we an use visual studios source code into Qt source code? to develop a application on image processing.
i had a program on visual studio but i don't understand how to use that code in Qt 5.
can anyone please tell me how can we use it
Thank you in advance
actually, it depends how is your project.
if you previous project is C++ and design good. UI just a present layer, it should not be heavy work.
but if your image processing logic are strong related to MFC, you might spend lots of time on your migration.

Has anyone ported a standard toolkit onto pepper?

I was wondering if anyone has ported a standard toolkit like gdk (gtk), qt (kde) or fltk to the pepper api? Or written a cross platform api that includes pepper? I would like to write my code to work with both X11 and nacl.
There is a QT port here: http://qt-project.org/wiki/Qt_for_Google_Native_Client
It looks like it hasn't been updated in a year, though, so it may have some rough edges.

Develop VSPackage (VSX) using VC++ ? Need reference materials and links

I have a requirement where I need to extend or customize the Visual Studio using Visual Studio SDK using C++ or VC++. I have fallen out of luck and have found all the book, blogs and msdn customizing Visual Studio using C#. Need help to share me links and books on customization of VS using C++.
Regards
John.
Help appreciated !!!
Visual Studio 2005 SDK comes with few samples (FigPkg, BscPrj, MyCPrj) demonstrating extending VS using native C++. It's a good way to start.
Newer versions of SDK don't contain this samples. But VSx COM API has not changed too much. Learning internals of different non-C++ projects (MPF, MPF For Projects, VisualD) can also help you better understand how VS-extensions work.

Any really modern, good-looking desktop apps that are developed with PyQt/PySide?

I have started using Python for web development recently, it's kinda cool;
I have seen programs that are developed in QT/C++, which is good enough in terms of esthetics;
I have just noticed the new PySide project (which brings LGPL Qt license to Python and it doesn't support Windows yet).
In view of the above, I see the possibility of using Python + PyQt/PySide to develop cross platform apps in the future :) but I have several doubts right now:
Can PyQty/PySide be used to develop really complex/modern UI? Can somebody give me some points to have a look at some nice-looking screenshots of apps that are developed in Python+QT?
What about the performance of using Python + QT for a desktop app?
Thanks in advance!
Can PyQty/PySide be used to develop really complex/modern UI?
Desktop applications come in all sorts of varieties -- some nicely laid out, some extremely customized with virtually no semblance to a standard application for that OS. The same can be done with Qt/PyQt/PySide. As Alex said, there should be no visible difference between an application written with PyQt/PySide versus one written with Qt in C++. Any program written with Qt4 (using bindings or not) will, by default, look like a standard modern application.
Of course, there are features of recent Windows releases (and likely some on Mac OS X) that aren't supported immediately and by default in Qt, but you can almost always write some custom platform specific code for those situations where said features are truly important.
Can somebody give me some points to have a look at some nice-looking screenshots of apps that are developed in Python+QT?
The best and most open source program that I know of and which is written with PyQt, is Eric -- a Python based IDE.
What about the performance of using Python + QT for a desktop app?
For most applications the performance difference between a C++ Qt application and a PyQt application are not noticible. But if you really need performance, you can write certain parts of the application in C++ and make bindings available in Python so you can integrate the two.
TortoiseHg was re-designed using Qt and PyQt for its 2.0 release.
Here is one of several posted screenshots:
There is no aesthetic difference between the look and feel of C++ based Qt, and the PyQt and PySide wrappers on top of it. I use basically no desktop GUI apps so I couldn't point you to any implemented with any of these language/toolkit combos, but if you like the former, you'll be hard put to distinguish it in any way from the latter.
A bit late but for the record, apps such as Skype, GoogleEarth or the recent versions of VLC (media player & more) used the Qt libs.

Can you create a setup.exe in qt to install your app on a client computer

I have created a desktop app and now I need to install in on a client's computer.
However, the client would like to have a wizard to install. Like Visual Studio setup project allows you to add an installer.
Does Qt allow you to create an installer or do I need to use a 3rd party installer like InstallShield or Wise?
You should use the Qt Installer Framework :
http://doc.qt.io/qtinstallerframework/ifw-overview.html
I use Inno and like it a lot. I've tried a few others and this one worked well for me. (and free)
You definitely need a third party installer. A few good ones have already been mentioned. If you decide to go with a paid solution bitrock's installer is a perfect choice and they are also Qt centric and their main business is around Qt.
As an open source alternative I would suggest NSIS
If you only target Windows, you can use WiX (Windows Installer XML), which can be integrated into Visual Studio and MSBuild, so relatively easy to use. It's free and produces valid MSI files, which may be a requirement anyway.
If you rather need a simple wizard setup, give InnoSetup a try.
I think better to use a third party software like installshield. They are optimized for the packaging purpose and provide much customizable options.
If you have Visual Studio already, you can continue to use a setup project to distribute your application. The tools are built in. This is the technology that WiX "replaced" (more on that later), and it's what I do. It's not an ideal solution, but it gets me an MSI, which is how Windows software should be installed these days. Using InstallShield or something might be better, but to be honest I've never had a good experience with any third party installers. This is why I just stuck with the less-than-ideal setup project; it beats spending a lot on expensive, ugly and often frustrating third party installer creation tools. In short, it's a very pragmatic solution, and pragmatic solutions make sense.
As for WiX: I really don't recommend it at all. It seems like a great idea, but after a few months I found myself switching back to the setup projects. Even though he's been using WiX for a year more than I have been using setup projects, our WiX expert takes twice as long to get anything done. (He's a terrific programmer, too, just a bit blinded by open source.) You end up with thousands of copied text lines that you need to maintain. With a couple different projects, it becomes an unmaintainable mess.
I would not suggest attempting to build an installer in Qt yourself. In addition to having to get a lot of behavior just right, as a Qt application it will require the Qt libraries. Unless you statically link them, which is possible with the commercial edition (not LGPL) but difficult and not recommended. Plus then you'd be including two copies of the Qt libraries in your download.
Qt itself seems to use the nullsoft installer. That alone should tell you building your own is not a good idea. :)

Resources