Help with QTextEdit.
-
You can use the "Visual Studio Add-in":http://qt.nokia.com/downloads/visual-studio-add-in to manage the mapping between .pro files and Visual Studio project files. The manual is "here":http://doc.qt.nokia.com/vs-add-in-1.1.7/index.html.
-
OK, here is the deal:
You have to generate a .pro file with 'Qt command prompt' (look into qt root folder)
Start Qt Command prompt and enter following commands:-> cd c:\Folder\of\your\project\ (directory that contains Visual studio's project file)
-> qmake -project
-> qmakeafter these commands look into your project folder, you'll see some auto generated files and folders, and .pro file will be there, just edit it however you want.
If you want to compile just continue with the following command:
-> make -
Thanks, but after doing qmake, this happened:
-
[quote author="Azr79" date="1303931305"]Is your project compiled?
By the way, use preferably directories without spaces for your projects, very important!
Ex.: c:\Dev\Qt_Projects\This_is_a_very_bad_game
Never use spaces, compilator might show you some errors.[/quote]Well, it's never compiled succesfully since everything in ths thread's happened... (Not to be rude.)
-
Open the Visual Studio command shell and run:
@
cd c:\path\to\your\project
qmake -project
@Then install the Visual Studio add in (link mentioned earlier) and restart VS, if you did not before.
Then open Visual Studio.
Then open menu Qt / Qt Options and check if your Qt version is listed there. If not, add it!
Now create a new solution, open Menu Qt / Open qt project file (.pro) and select the newly created .pro from the first step.
Your setup is basically complete now.
OR
Create a new solution, add a new project and select one of the Qt4 project templates (Qt4 Application most likely) and just add your source, header and ui files.
In both cases, it might help if you start in a fresh new directory, where you copy in just the .h, .cpp, .ui files before calling qmake -project or creating the new Qt4 project.
-
Well, I made a pro, except it still got the same error after I added the CONFIG += help
However, I noticed that the pro was in place of the vcxproj, a.k.a. the Visual Studio Solution. Also, I noticed that the pro already contained CONFIG += [a bunch of stuff] help [another bunch of stuff] This seems to indicate that the CONFIG += help... was already there...
So, it doesn't seem to be the problem. Any more help? Thanks for all the help so far, BTW. (Not to be rude.)
Thnk you,
M260 -
[quote author="Volker" date="1304027822"]If you just change the .pro and do nothing else, the VS project is not changed. What about the steps mentioned in my previous comment?[/quote]
Well, I've already done all that - unless you really think I should just start a new project & re-add everything... (Not to be rude.) -
I would try to start from scratch in a fresh, empty directory. Just copy the sources (h, cpp, ui). Make a directory without spaces in it to eliminate this problem. Then run qmake -project and import the .pro with the VS addin.
Be sure you have setup the Qt versions in the addin!