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. main.cpp error
Forum Update on Monday, May 27th 2025

main.cpp error

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 806 Views
  • 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.
  • M Offline
    M Offline
    MFrost
    wrote on 19 Apr 2018, 17:22 last edited by MFrost
    #1

    What can be wrong? I haven't even changed it!

    alt text

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 19 Apr 2018, 17:26 last edited by Chris Kawa
      #2

      Probably the magic of includes. The problem is likely in mainwindow.h. Maybe missing ; at the end of class declaration or unbalanced {}.

      1 Reply Last reply
      3
      • M Offline
        M Offline
        MFrost
        wrote on 19 Apr 2018, 17:29 last edited by
        #3

        alt text

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MFrost
          wrote on 19 Apr 2018, 17:31 last edited by
          #4

          I'm also trying to add Dialog, quite probably incorrectly.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MFrost
            wrote on 19 Apr 2018, 17:31 last edited by
            #5

            alt text

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MFrost
              wrote on 19 Apr 2018, 17:35 last edited by
              #6

              What should I change to correctly implement Dialog?

              alt text

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Chris Kawa
                Lifetime Qt Champion
                wrote on 19 Apr 2018, 17:35 last edited by
                #7

                Header seems ok, but it includes board.h and game.h. Look in those.

                Yes, the way you're adding the dialog is wrong. It won't even compile like that. But let's not mix issues. Start a new topic for the dialog.

                1 Reply Last reply
                3
                • M Offline
                  M Offline
                  MFrost
                  wrote on 19 Apr 2018, 17:38 last edited by
                  #8

                  Thank You!
                  There was indeed a missing "}" in game.h!

                  1 Reply Last reply
                  0

                  1/8

                  19 Apr 2018, 17:22

                  • Login

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