Search found 451 matches

by barbara
Wed Apr 10 2024 3:43 pm
Forum: Developers
Topic: Wrong conversion between QJsonObject and QVariantMap
Replies: 1
Views: 19

Re: Wrong conversion between QJsonObject and QVariantMap

Thank you for reporting this issues. We will add this as a unit test and make any changes which are required.
by barbara
Fri Apr 05 2024 12:50 am
Forum: Issues
Topic: QListWidgetItem->setHidden(true) doesn't really hide
Replies: 2
Views: 58

Re: QListWidgetItem->setHidden(true) doesn't really hide

In order to hide a QListWidgetItem you need to add the item before calling setHidden(). We will enhance the API documentation to provide this information.

Code: Select all

QListWidgetItem *item = new QListWidgetItem("Item Text");
listView->addItem(item);
item->setHidden(true);

Barbara
by barbara
Thu Apr 04 2024 6:13 pm
Forum: Journal Discussion
Topic: New GUI Examples
Replies: 0
Views: 55

New GUI Examples

We now have 43 blog entries on the CopperSpice Journal. Pattern matching using QRegularExpression Displaying currency, numbers, and dates using the selected Locale Retrieve the Operating System Name and Version Command Line Parsing with Optional Arguments Command Line Parsing and Displaying Help Tab...
by barbara
Thu Apr 04 2024 6:02 pm
Forum: Developers
Topic: Questions about SIGNAL
Replies: 1
Views: 41

Re: Questions about SIGNAL

In order to declare a SIGNAL you must provide both CS_SIGNAL_1() and CS_SIGNAL_2() . Each macro is responsible for a different part of the signal implementation. This link to our CS Overview documentation shows some sample macros and how to handle overloaded signals. https://www.copperspice.com/docs...
by barbara
Thu Mar 28 2024 7:32 pm
Forum: Issues
Topic: QString documentation issue
Replies: 3
Views: 87

Re: QString documentation issue

An alias is not a typedef. Calling an alias a typedef gets you into all kinds of trouble. The following text was copied directly from cppreference, which is a trusted site for interpreting the C++ standard. "A type alias declaration introduces a name which can be used as a synonym for the type...
by barbara
Wed Mar 27 2024 5:46 pm
Forum: Issues
Topic: Qt::CaseInsensitive no longer working
Replies: 5
Views: 83

Re: Qt::CaseInsensitive no longer working

CopperSpice currently requires C++17 and we are moving to C++20 this year. We are continually migrating the code base to a more modern version of the language. However, our team is careful when making changes which will affect our user base. I can assure you we have changed some enums to enum classe...
by barbara
Tue Mar 26 2024 4:02 am
Forum: Issues
Topic: Qt::CaseInsensitive no longer working
Replies: 5
Views: 83

Re: Qt::CaseInsensitive no longer working

We took another look at this and I noticed you are missing the second parameter. The API shows three parameters with the second and third having default values. If you want to pass Qt::CaseInsensitive for the third parameter you must pass 0 (default value) for the second parameter. When all three pa...
by barbara
Mon Mar 25 2024 3:37 am
Forum: Issues
Topic: QString documentation issue
Replies: 3
Views: 87

Re: QString documentation issue

As you mentioned, the following code can be found in the file "src/core/string/qstring8.h". It is part of the definition for the QString8 class. using difference_type = std:ptddiff_t; using size_type = std::ptrdiff_t; Both of these line declare a Type Alias which consists of an (A) identif...
by barbara
Fri Mar 01 2024 3:56 am
Forum: Enhancements
Topic: Enh Rqst 1.4.1: warn when functions are not documented
Replies: 1
Views: 134

Re: Enh Rqst 1.4.1: warn when functions are not documented

If you want to check for functions/methods which exist in the Source code but were not documented, please make sure the following tags are set correctly in your project file. Build Configuration Extract All - off Hide undocumented members - off Messages Warn about undocumented members - on Can you g...
by barbara
Thu Feb 22 2024 8:43 pm
Forum: Issues
Topic: Documentation - QNetworkAccessManager
Replies: 2
Views: 133

Re: Documentation - QNetworkAccessManager

The changes to the CsNetwork header files was available in the CS Overview migration documentation. We understand users may not have known about this information. I just made a change to the API documentation which explains these file name changes. Everything is located on one page since this has oc...