Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. [SOLVED]Project something not working
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Project something not working

Scheduled Pinned Locked Moved Brainstorm
6 Posts 2 Posters 2.0k 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.
  • L Offline
    L Offline
    LargoPlanet4
    wrote on last edited by
    #1

    Hello!

    I don't know why, but after start debugging not working my project just show the project menu.

    Why? Please help!

    My project: https://www.dropbox.com/sh/dxsiz2pyrpnay32/c5Uc0emH-L

    Thank you!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      I would suggest to fix all warnings that you have during the build.
      Then it may become more clear where the error is.

      Couple things that I see immediately
      First, add to you .pro file
      @
      CONFIG += c++1
      @

      Second, C++ does not support multiple returns like you put it Paklikeveres::kartyaosztas()

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LargoPlanet4
        wrote on last edited by
        #3

        I wrote in the .pro file:
        @
        CONFIG += c++1
        @

        and delete multiple returns, but still not work.

        Errors:
        https://www.dropbox.com/s/ce6sm0aahv25loh/Képernyőfotó 2014-04-19 - 9.38.50.png

        https://www.dropbox.com/s/p2lnfpduhbe38pf/Képernyőfotó 2014-04-19 - 9.43.45.png

        I try run this project one older save, but I get same errors, in turn not in errors.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LargoPlanet4
          wrote on last edited by
          #4

          Problem solved.

          Wrong code:

          @
          for(int i = 0; i <= 15-1; i++)
          {
          mapper->setMapping(jpakli[i], i);
          connect(jpakli[i], SIGNAL(clicked()), mapper, SLOT(map()));
          }
          @

          without the for loop is not error.

          second problem was:

          In the jatek file have one QPushButton jpakli[ 15 ] array and the for loop tried new buttons to 20. (sorry my wrong English language)

          Thank you!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andreyc
            wrote on last edited by
            #5

            Glad it works now.

            In my message I made a typo. It should be c++11
            @
            CONFIG += c++11
            @

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LargoPlanet4
              wrote on last edited by
              #6

              I corrected in the .pro file. Thank you!

              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