QCustomPlot Discussion and Comments

For Visual Studio Add-in I don't have a .pro to add printsupportReturn to overview
January 11, 2014, 23:51
by Dave Jervis

I am using (just starting) to use the Qt Visual Studio Add-in as described here: http://www.bogotobogo.com/Qt/Qt5_Visual_Studio_Add_in.php but then I don't seem to have a Qt .pro file. I believe the Visual Studio project and solution files do that job. In the "Getting Started" QCustomPlot tutorial it says I need to add printsupport like this: QT += widgets printsupport. Without doing it I get 5 errors saying "Cannot open include file" 'QtPrintSupport": No such file or directory. How do I do that under Visual Studio? Thanks, Dave

February 2, 2014, 01:01
by DerManu

If you say you're just starting, I'd recommend using QtCreator to develop software with Qt, as it's a much better experience than Visual Studio. I've had quite a few people complaining that Qt with VS in general doesn't work as smoothly as with QtCreator (Which is no surprise, given that QtCreator was specifically made for Qt).
That said, I don't use Visual Studio myself and just use it to test releases (to make sure they run with MSVC and don't cause warnings/errors that don't appear with GCC), and thus can't give support. Please contact Visual Studio support for how to set up a project. My best guess is that you have to add $(QTDIR)\msvc2010\include\QtPrintSupport to your project includes (In the C/C++ settings of your project)

February 2, 2014, 18:46
by anonym

Hi,

@Dave Jervis, in VS: right click on Project name (in Solution Explorer), then QT Project Settings, then QT module and select Print Support

May 7, 2015, 04:35
by lucastamoios

anon,

I am very grateful. Your solution was simple, functional and objective.
I did this and the error was gone. Thank you very much!

April 19, 2016, 18:10
by wawa

Thx anonym! The solution works pretty good! [MVS2015 + QT5.6.0+QCustomplot 1.3.2]

May 21, 2016, 21:12
by Kryptand

Thank you so much Anon, I searched a couple days for a solution and this is just gold!

July 22, 2016, 15:25
by Evg

OOO Thx you so much too!!!!)))) I

November 16, 2017, 23:58
by Unlit

Thank you. It saved me.

February 6, 2018, 14:17
by Kromiss

Thank you so much Anon

June 6, 2018, 10:23
by NULL_FIELD

Thank you, anonym!
I spent 3 days on seaching for graphics plotting library!!! YOU save my ASS!!!
Love U <3<3<3

August 30, 2020, 11:13
by anonym

it works ,save my ASS!!!

June 29, 2021, 11:58
by anonym

For Visual Studio 2019 users - Select Extensions->Qt VS Tools->Qt Project Settings->(Configuration Properties->Qt Project Settings)->General->Qt Modules

If you click on the Qt Modules row you should be able to use an arrow to "<Select Modules...>" and there you will find Print Support.

May 9, 2024, 18:24
by Mike

Thank you, Dave. I've been looking for this solution for more than an hour.

AltStyle によって変換されたページ (->オリジナル) /