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

main.cpp error

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 801 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 last edited by MFrost
    #1

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

    alt text

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

        alt text

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MFrost
          wrote on 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 last edited by
            #5

            alt text

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MFrost
              wrote on last edited by
              #6

              What should I change to correctly implement Dialog?

              alt text

              1 Reply Last reply
              0
              • Chris KawaC Offline
                Chris KawaC Offline
                Chris Kawa
                Lifetime Qt Champion
                wrote on 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 last edited by
                  #8

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

                  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