PDA

View Full Version : QWindow methods are undefined



jstarr
29th May 2018, 23:43
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?

Ginsengelf
30th May 2018, 08:15
Hi, please show us the "undefined external symbol errors".

Ginsengelf

jstarr
30th May 2018, 16:34
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.

d_stranz
30th May 2018, 22:20
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.