|
-
May 15th, 2008, 05:19 PM
#1
DLL modeless dialog & QT big big problem
Hi all,
My application uses QT to render its interface but I recently encountered a big problem: my application loads a modeless dialog from an external mfc dll; because of mfc architecture PreTranslateMessage isn't called for my modeless dialog, so I thought forwarding the modeless dialog's messages would be the only solution, but now my problem rises:
QT don't support PreTranslateMessage.
I really need a great idea to solve this problem. Please help me.
-
May 16th, 2008, 02:51 AM
#2
Re: DLL modeless dialog & QT big big problem
Victor Nijegorodov
-
May 16th, 2008, 06:12 AM
#3
Re: DLL modeless dialog & QT big big problem
I think you can't help me without knowing QTs, however QT is a developer framework to design GUIs. It is cross-platform so you can have the same gui-feel on every os.
-
May 16th, 2008, 03:53 PM
#4
Re: DLL modeless dialog & QT big big problem
 Originally Posted by VictorN
What is "QT"?
http://trolltech.com/products/qt/
Viggy
-
May 17th, 2008, 12:10 AM
#5
Re: DLL modeless dialog & QT big big problem
Well, what is supposed to be done in PreTranslateMessage? Something specific that cannot be handled otherwise (I forgot the terms used in QT for events handling!)
-
May 17th, 2008, 07:54 AM
#6
Re: DLL modeless dialog & QT big big problem
I forgot the terms used in QT for events handling
Slots and Signals ?
It's true, QT doesn't have PreTranslate. I think you need to do your pretranslate stuff in MFC and split it in single events so you can trigger QT.
-
May 17th, 2008, 08:55 AM
#7
Re: DLL modeless dialog & QT big big problem
-
May 17th, 2008, 03:27 PM
#8
Re: DLL modeless dialog & QT big big problem
 Originally Posted by Skizmo
I think you need to do your pretranslate stuff in MFC and split it in single events so you can trigger QT.
Can you better explain what does this mean please?
-
May 17th, 2008, 03:52 PM
#9
Re: DLL modeless dialog & QT big big problem
My application uses QT to render its interface but I recently encountered a big problem: my application loads a modeless dialog from an external mfc dll; because of mfc architecture PreTranslateMessage isn't called for my modeless dialog, so I thought forwarding the modeless dialog's messages would be the only solution, but now my problem rises
Well, which library does exactly display the dialog box? MFC or QT?
What's the real issue? I mean if you can load modelless dialog box in MFC or QT, why you need mixing them?
-
May 19th, 2008, 03:21 PM
#10
Re: DLL modeless dialog & QT big big problem
Actually, I would think that mixing MFC and QT would defeat the purpose of using QT (not cross platform anymore!).
Viggy
-
May 24th, 2008, 06:00 PM
#11
Re: DLL modeless dialog & QT big big problem
Sorry for answering so late but I had some more problems.
I solved this way: I created a thread in the main QT application and loaded the mfc library with the main window as modal.
Modeless dialog with QT application was not an acceptable solution because it needed to implement a message pump dispatcher
This seems a more acceptable solution
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|