Search found 257 matches

by seasoned_geek
Thu Dec 17 2020 5:49 pm
Forum: Developers
Topic: QString::lastNIdexOf( QRegularExpression)
Replies: 2
Views: 4742

Re: QString::lastNIdexOf( QRegularExpression)

That's what I will end up having to do, but one should consider the potential size of an object which may or may not be in memory. If the object is memory mapped to disk one could have to parse many gigs to obtain something that is less than twenty bytes in from the end. The proposed solution works ...
by seasoned_geek
Wed Dec 16 2020 2:33 pm
Forum: User Support
Topic: Can't convert const *char to QChar32
Replies: 2
Views: 8591

Re: Can't convert const *char to QChar32

I know nothing about Object Pascal. What I can tell you about is C++, at least a bit. inline void copyPWideStringToQString(PWideString ps, QString &qs) { qs.setUtf16((ushort *)unicodeOfPWideString(ps), lengthOfPWideString(ps)); } The first thing you have to do is look at the doc. https://www.cop...
by seasoned_geek
Wed Dec 16 2020 2:11 pm
Forum: User Support
Topic: Proper method of appending QChar to QByteArray
Replies: 2
Views: 7004

Re: Proper method of appending QChar to QByteArray

Thank you for your response. We strongly suggest you do use PepperMill and then fix any code you decide should be improved. This will save you a good deal of time and energy. This is OpenSource. Saving time wasn't really the goal. I still have to look at everything. Having one black box magically co...
by seasoned_geek
Sun Dec 13 2020 7:57 pm
Forum: Developers
Topic: QString::lastNIdexOf( QRegularExpression)
Replies: 2
Views: 4742

QString::lastNIdexOf( QRegularExpression)

All, Stumbled into this today. Qt 4.8 had int lastIndexOf(const QRegExp & rx, int from = -1) const int lastIndexOf(QRegExp & rx, int from = -1) const In porting some code I believed the method existed in CopperSpice but now used QRegularExpression. The compiler quickly proved that wrong. The...
by seasoned_geek
Sat Dec 12 2020 6:03 pm
Forum: User Support
Topic: Proper method of appending QChar to QByteArray
Replies: 2
Views: 7004

Proper method of appending QChar to QByteArray

I'm having brain spasm porting (someone else's) debugger code to CopperSpice so I can have a debugger that lets me look at a CopperSpice QString. Porting by hand, not using the tool, because I don't want to be riding in that car if it goes off the rails. Well, that and this needs some restructuring,...
by seasoned_geek
Wed Dec 09 2020 2:56 pm
Forum: User Support
Topic: If CopperSpice is/was really really ready now . . .
Replies: 0
Views: 8513

If CopperSpice is/was really really ready now . . .

The big stinky chunks have officially hit the fan in the Qt world. Commercial customers of Qt 5 have to buy a subscription license for Qt 6. Last time I looked at anything related to the "subscription license" the gist of it was "if you stop paying you have to pull your product from m...
by seasoned_geek
Thu Nov 12 2020 1:57 pm
Forum: Enhancements
Topic: OS/2 Back from the grave
Replies: 0
Views: 8469

OS/2 Back from the grave

Just stumbled into this and passing along. https://www.theregister.com/2017/05/19/new_version_of_os_2_arca_os_5/ Qt 3.x and Zinc used to be big on OS/2. https://www.arcanoae.com/arcaos/ I haven't dug in to see how current the C++ compiler is nor did I dig in to see if CopperSpice could be built 32-b...
by seasoned_geek
Wed Oct 07 2020 1:43 pm
Forum: Developers
Topic: animated gif on Linux
Replies: 0
Views: 7418

animated gif on Linux

I'm looking at the doc trying to use an animated gif for a busy indicator. This is usually simple. Couldn't figure out why not working on CopperSpice. qDebug() << "supported formats: " << QMovie::supportedFormats(); Ubuntu 20.04 LTS Choosing xcb gl-integration based on following priority (...
by seasoned_geek
Sat Oct 03 2020 6:16 pm
Forum: Developers
Topic: Valgrind Warnings
Replies: 0
Views: 7376

Valgrind Warnings

Just some things I stumbled on while running valgrind on a fork of Diamond. These appear to be leaks inside of CopperSpice in various places. These aren't all from the same valgrind run. They could be some normal valgrind confusion. It appears QTextDocumentLayout has a small memory leak ==59076== 4 ...
by seasoned_geek
Wed Sep 30 2020 9:51 pm
Forum: Developers
Topic: QFileDialogAppearance on Linux
Replies: 0
Views: 6748

QFileDialogAppearance on Linux

all, I tested this out on Fedora (current) and Ubuntu 20.04. This is what QFileDailog looks like. https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/09/file-dialog-1.png According to the doc it should be providing the "system file dialog" (or wording something like that). O...