Results 1 to 4 of 4

Thread: QWindow methods are undefined

  1. #1
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Question QWindow methods are undefined

    I get undefined external symbol errors for the methods of the QWindow class. My .pro file contains:


    QT += core
    QT += gui
    QT += widgets

    What do I need to do to get QWindow's methods defined?

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    515
    Thanks
    12
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QWindow methods are undefined

    Hi, please show us the "undefined external symbol errors".

    Ginsengelf

  3. #3
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QWindow methods are undefined

    I decided to try copying some lines from the Makefile of one of the sample projects to my Makefile. Then it built without error. I deleted the added lines two or three at a time to see which one(s) mattered. It ended up that I deleted the five lines I had added, getting me exactly back to where I had been, and it STILL builds without error. So I no longer have the messages, and I have no clue as to what the problem was.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QWindow methods are undefined

    Perhaps you didn't run qmake after making the initial changes to your .pro file, in which case the Makefiles would have been incorrect from the outset. In any case, hand-editing Makefiles is a bad idea, since qmake will regenerate them if the .pro file is changed.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Custom QWindow add widgets
    By Tuxedo in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2017, 10:58
  2. [SOLVED] Depth buffer in QWindow?
    By rainbowgoblin in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2014, 00:29
  3. example using Qwindow
    By PstdEr in forum Qt Programming
    Replies: 4
    Last Post: 14th June 2013, 14:31
  4. QWindow does not hav getOpacity function?
    By awfan in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2013, 11:28
  5. Parenting QWindow...
    By roomie in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 10:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.