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. Pointer to incomplete class type is not allowed
QtWS25 Last Chance

Pointer to incomplete class type is not allowed

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 8.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 18 Aug 2013, 17:14 last edited by
    #1

    I removed menu bar and now I want to add function to move window... I did it in QtCreator and works perfect... Now trying to do it on Visual Studio 2012, but always get errors... Don't know how to fix this "Pointer to incomplete class type is not allowed" this errors are about "event" -> grey color on image... I hope someone can help me... Spent whole day trying to find solution...

    !http://img153.imageshack.us/img153/265/yyw8.png(Error)!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 18 Aug 2013, 18:17 last edited by
      #2

      As a "golden" rule you should look at the problems from top down, since the major errors are first. The remainder may be just some subsequent issues vanishing when the first problems are solved. Assuming that the top error is frameGeometry is undefined, you should solve this first.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on 18 Aug 2013, 19:50 last edited by
        #3

        I solved Pointer to incomplete class type is not allowed (added #include <QMouseEvent>), but don't know how to solve frameGeometry and move...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Aug 2013, 21:34 last edited by
          #4

          The error is pretty explicit, these two functions don't exist in your class.

          So the real question here is: why did you subclass QMouseEvent ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on 18 Aug 2013, 21:58 last edited by
            #5

            Oh my god... I can't believe I spent whole day for damn easy thing...

            SGalast thank you for that.... I was including wrong libraries...

            By the way, how can I make this to be in use only for frame??? I have main window and frame on the top of the window... I'd like to move window around only with frame...

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 18 Aug 2013, 22:55 last edited by
              #6

              You're welcome !

              I'm sorry but I don't understand your last question

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on 18 Aug 2013, 23:09 last edited by
                #7

                Below is image of my app... This thing in back is frame and I added my buttons to it (exit, minimize)... Right now, I can my function works for whole window -> I can move window around if I press frame or just blue window... I'd like to set it to move around only when I press on frame

                !http://img547.imageshack.us/img547/2333/mk1i.png(Frame)!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 21 Aug 2013, 15:56 last edited by
                  #8

                  Did you try to discard the mouse events for the blue window ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on 21 Aug 2013, 17:02 last edited by
                    #9

                    How can I do that?????

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 21 Aug 2013, 19:38 last edited by
                      #10

                      You could install an event filter

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      9/10

                      21 Aug 2013, 17:02

                      • Login

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