I feel cheated.
Hi @chrtsi and welcome to the forums.
Why do you feel cheated?
Re: Trying to justify commercial cost...
I discovered QT when looking for a replacement for MFC. I ordered the book ($46.00), got it and download the Public License version. Surprise # 1 - The Public License Version doesn't work with Visual Studio. I then went to see about a Commercial License. WOW!! - $450 a month! That's outrageous by any standard. I feel like somebody owes me $46.00. This is "Bait and switch" in it's finest form. Note, I have to wait 10 minutes between posts due to the board rules...
What book would that be ?
What version of Qt did you install ?
What version of Visual Studio are you using ?
What exact error is that ?
Free VS Commercial license has no influence on the Visual Studio support.
Surprise # 1 - The Public License Version doesn't work with Visual Studio.
The (L)GPL version of Qt does work with Visual Studio. http://blog.qt.io/blog/2018/02/26/qt-visual-studio-tools-2-2-0-released/
Alternatively, you can use the Visual Studio compiler in the (free) Qt Creator IDE.
... and it has been working with Visual Studio since ages.
@SGaist C++ GUI Programming with QT 4, Second Edition.
Page 590 - Installing Qt/Windows - 2nd paragraph.
"The GPL version of Qt will not work with Visual C++, so if you do not already have MinGW installed.....".
I notice none of you addresses the monthly price....
C++ GUI Programming with QT 4, Second Edition.
The book is from 2008! I've been using Qt 4.8 (open source) with Visual Studio 2010 without problems. You also get a complete installer with MinGW, ready to use. And also note, that most of Qt is LGPL nowadays, which gives you even more freedom to develop closed source programs with it.
I notice none of you addresses the monthly price....
Because there is no monthly price if accept the LGPL resp. GPL. Where else do you get that?
Honestly, I don't understand your problem. If you don't want to use the open source version, well you have to pay. But that applies to all professional products, doesn't it?
I don't have a problem with paying. I already pay for several products. My problem is that price of $450+ per MONTH is unreasonable. I develop and sell commercial software, so the closed source model is what I prefer. Thank you for the information about LGPL for QT. That "may" solve my problem. I apparently got ripped on the book as well.
Just as note: some Add-On modules like QtCharts are only GPL, so you should avoid them in closed source software.
My problem is that price of $450+ per MONTH is unreasonable.
Please note that this is a user forum and 99% of us have no relationship with the Qt Company, so there's nothing we can do about. Please contact their sales people for more information about discounts.
Most of what was written for Qt 4 is still relevant for Qt 5 therefore that book is not useless. However for the installation part, double checking with the Supported Platofrm page in Qt's documentation isn't a bad idea.
I downloaded and installed 5.11 of Qt (about a 5 hour process). Now I'm trying example 1 of the book, which starts with #include <QApplication>. VS can't find that. Anybody know what I'm supposed to put in my "include"project settings? I found the \Qt\5.11.1\winrt_armv7_msvc2017\include\qtwidgets folder, but that blows up on the next included .h file with: 1>c:\qt\5.11.1\winrt_armv7_msvc2017\include\qtwidgets\qapplication.h(43): fatal error C1083: Cannot open include file: 'QtWidgets/qtwidgetsglobal.h': No such file or directory, like it's looking for another qtwidgets folder.
Any quidance would be appreciated.
Never mind responding. I find this product too frustrating to work with. I had a simple question, and I feel like I'm never going to get the answer after 8 hours of screwing with it. If anybody wants the book, send an Email to firstname.lastname@example.org. If you send me the shipping container, postage paid, I'll give you the book for free. I won't have any use for it.
Unless you are targeting an ARM based device, why did you install that version ?
Since you are targetting desktop computer, then install one of the desktop version of Qt. You can find the full list here in Qt's documentation.
Did you took a look at the Qt for Windows page of Qt's documentation ?
If you want to use Visual Studio directly in place of Qt Creator. Then take a look at the Qt Visual Studio Tools developed exactly for that purpose.
I installed that version because it isn't clear to somebody new which version to install. I'm sure that somebody with a history with Qt would have installed the correct one. Specifically, a blog reference above referred to that version as having enhancements for Visual Studio.
Those of you with a history with this product are, I'm sure, very happy with it. We who are seeing it for the first time are naturally confused. Lots of versions, very little guidance in the install information. I, who was simply looking for a replacement for MFC, really don't have the time to try to figure this thing out.
I'm sure that will get me some nasty comments. Oh well, I can live with it. As I said before, anybody who wants the book for free (pay the postage), you're welcome to it.
We don't do nasty comments here! We just wish you well in the decision you have made :)
Apparently nobody is interested in the book. Thanks for your comments.
Would you consider using Qt Creator for Qt development? (This isn't at all being said nasty-like, just in case)
I'd encourage you to at least get into Creator to see the example projects.
I feel your sentiment as I came from Microsoft land but I too never actually got MSVC / Qt project going - I got close but honestly... by the time I got my head around signals and slots and how it all worked - I'd begun to not only live with but like Qt Creator.
Something worth trying for before just giving up
(clearly we think so - we are still here).
Now I'm trying example 1 of the book, which starts with #include <QApplication>. VS can't find that. Anybody know what I'm supposed to put in my "include"project settings?
Sorry, but this is one of the things that you cannot just transfer from a Qt4 book to Qt5. Modules have been introduced, so QtWidgets are not the default and your project must explicitly specify that it wants to use it. Using a Qt5 book for learning to program with Qt5 is definitely preferable.