is it possible? if yes how will i need to declare the class,object and include what headers in my initialization func of my mfc main class? thanks!![]()
is it possible? if yes how will i need to declare the class,object and include what headers in my initialization func of my mfc main class? thanks!![]()
Yes, but the question is why do you want to mix MFC and Qt?is it possible?
You better stay with one of the two all the way, mixing them is asking for trouble.
Qt is a library, just like any other (in general).if yes how will i need to declare the class,object and include what headers in my initialization func of my mfc main class?
So you will have to link to Qt.
As long as you don't use signals and slots, and really just use QSettings, you might get away with out the need to construct QCoreApplication object.
You will have to include <QSettings>.
For using QSettings, read here : QSettings.
There may come some other problems - you are welcome to try and see.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I'm having this problem when i try to #include <QSettings> in my application
1>c:\qt\4.6.2\include\qtcore\../../src/corelib/io/qsettings.h(45) : fatal error C1083: Cannot open include file: 'QtCore/qobject.h': No such file or directory
i checked the files in there and qobject.h is in QtCore folder, so whats what now? anyone help?
Yes.btw if i want to use QTimer too, there is the signal and slot needed for the handler
so i will need to create the QcoreApplication object?
the ../../ should not be in the path, the path is wrong.i checked the files in there and qobject.h is in QtCore folder, so whats what now? anyone help?
You didn't answer why you are mixing MFC and Qt?
Why not do everything in Qt?
Will save you a lot of trouble.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks