91
Internet / Re: Dooble releases-Qt6
« Last post by Paul Smedley on November 30, 2024, 10:18:04 am »Afaik Dave is using the original source, ie https://github.com/textbrowser/dooble/blob/master/Source%2Fdooble_main.cc
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
Well, I've tried adding the code in various places that seemed early enough in the process, mostly in dooble_main.cc and even right after QApplication::processEvents(); in dooble.cc and no luck.
Guess going to have to read up on how Qt initializes unless Paul has an idea.
dooble_main.cc was my guess....How to set this up?
OK, if HMQ_CURRENT resolves to the number '1', try plugging in a '1' for now, i.e.: WinSetCp(1, 1208);
(I should know how to do a new-style cast but that bit of knowledge escapes me currently.)
Well, I've tried adding the code in various places that seemed early enough in the process, mostly in dooble_main.cc and even right after QApplication::processEvents(); in dooble.cc and no luck.
Guess going to have to read up on how Qt initializes unless Paul has an idea.
How to set this up?
OK, if HMQ_CURRENT resolves to the number '1', try plugging in a '1' for now, i.e.: WinSetCp(1, 1208);
(I should know how to do a new-style cast but that bit of knowledge escapes me currently.)
How to set this up?
I have NFI about this stuff.Given all this, I would strongly, strongly recommend implementing this fix in Dooble itself and *not* in QT6 since other QT6-based apps may handle their titlebars differently. To do so, add the following code to Dooble early in its processing: probably right after it initializes the QT6 framework and no later than after it creates its first window (the primary thread's message queue has to exist for this to have any effect). This should only be used on the very first thread.Code: [Select]WinSetCp(HMQ_CURRENT, 1208);
#ifdef Q_OS_OS2
#define INCL_WINCOUNTRY
#include <os2.h>
HMQ hmq;
#endif
Dies with,K:/work/dooble-dry/Source/dooble_main.cc: In function 'int main(int, char**)':
K:/work/dooble-dry/Source/dooble_main.cc:432:12: error: 'HMQ_CURRENT' was not declared in this scope; did you mean 'FILE_CURRENT'?
432 | WinSetCp(HMQ_CURRENT, 1208);
Found this in pmwin.h,#define HMQ_CURRENT ((HMQ)1)
which dies with,K:/work/dooble-dry/Source/dooble_main.cc:55:36: error: use of old-style cast to
'HMQ' {aka 'long unsigned int'} [-Werror=old-style-cast]
55 | #define HMQ_CURRENT ((HMQ)1)
| ^
K:/work/dooble-dry/Source/dooble_main.cc:432:12: note: in expansion of macro 'HM
Q_CURRENT'
432 | WinSetCp(HMQ_CURRENT, 1208);
| ^~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors