1
Internet / Re: Dooble releases-Qt6
« on: Today at 06:19:23 pm »
Looks like you haven't installed Paul's latest qos2.dll. You are right that they do display differently though, just not that different.
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#ifdef Q_OS_WINDOWS
QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL, true);
#endif
Tried adding Q_OS_OS2 to the ifdef, webgl crashed the browser when used. So read up on it, https://doc.qt.io/qt-6/windows-graphics.html.Meanwhile, Dave, can you give me a URL that points to your dooble_main.cc?
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.)
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
[H:\tmp]test
"\xE2\x82\xAC"
Ôé¼
"?"
"\xE2\x82\xAC"
Ôé¼
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test Page. ÀŽƒ </title>
</head>
<body>
<br>
</body>
</html>