Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Help with QTextEdit.
Forum Updated to NodeBB v4.3 + New Features

Help with QTextEdit.

Scheduled Pinned Locked Moved General and Desktop
28 Posts 4 Posters 14.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    azr79
    wrote on last edited by
    #9

    Line 39!!!!

    @CONFIG += help@

    got to be removed from this file and add it into your .pro file, try to recompile then.

    Azr79

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MASTER260
      wrote on last edited by
      #10

      But the reason I added it there is because it seems Visual Studio doesn't support pro files...

      1 Reply Last reply
      0
      • A Offline
        A Offline
        azr79
        wrote on last edited by
        #11

        I think that you got to generate it with qmake.exe and add it in your links, i'll search more infos for later, stand by mate

        Azr79

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #12

          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.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • A Offline
            A Offline
            azr79
            wrote on last edited by
            #13

            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
            -> qmake

            after 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

            Azr79

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MASTER260
              wrote on last edited by
              #14

              Thanks, but after doing qmake, this happened:

              http://i55.tinypic.com/ivzpcp.png

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #15

                A couple of warnings - nothing to worry about. What happens after running nmake?

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  azr79
                  wrote on last edited by
                  #16

                  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.

                  Azr79

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MASTER260
                    wrote on last edited by
                    #17

                    [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.)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      azr79
                      wrote on last edited by
                      #18

                      why not using QtCreator? There is no problems with it, because already configured for qt projects....

                      Azr79

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MASTER260
                        wrote on last edited by
                        #19

                        [quote author="Azr79" date="1303944734"]why not using QtCreator? There is no problems with it, because already configured for qt projects....[/quote]
                        The problem is it doesn't seem to be friendly with what I'm trying to do.

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          giesbert
                          wrote on last edited by
                          #20

                          Do you have your old vcproj file stored somewhere?
                          If you want to add a lib in MSVS, use the MSVS way, even for Qt libs:

                          open project settinbs, go to linker --> input page and add the file

                          Nokia Certified Qt Specialist.
                          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #21

                            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.

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MASTER260
                              wrote on last edited by
                              #22

                              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

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #23

                                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?

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  MASTER260
                                  wrote on last edited by
                                  #24

                                  [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.)

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    goetz
                                    wrote on last edited by
                                    #25

                                    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!

                                    http://www.catb.org/~esr/faqs/smart-questions.html

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      MASTER260
                                      wrote on last edited by
                                      #26

                                      1st of all, sorry it's taken me months to reply? Anyways, Volker, can I just have the actual files from when you 1st successfully compiled it as described in your 1st posst? I know I won't be able to use Visual Studio.

                                      1 Reply Last reply
                                      0
                                      • G Offline
                                        G Offline
                                        goetz
                                        wrote on last edited by
                                        #27

                                        Sorry, I did not keep the files for that long.

                                        http://www.catb.org/~esr/faqs/smart-questions.html

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          MASTER260
                                          wrote on last edited by
                                          #28

                                          [quote author="Volker" date="1312234572"]Sorry, I did not keep the files for that long.[/quote]

                                          It's okay, I think I might've found something else I can do. Than you, though!

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved