Search found 452 matches
- Sat Apr 13 2024 7:08 pm
- Forum: Developers
- Topic: Conversion between QJsonObject and QVariantMap
- Replies: 2
- Views: 165
Re: Conversion between QJsonObject and QVariantMap
We have taken a look at your reported issue and we want to discuss what line 2 is really doing. Line 2 is taking a QVariantMap and storing it in a QVariant. If you call tmpVariant.typeName() it will return the data type of what the variant is storing. In this example code it is storing a QVariantMap...
- Wed Apr 10 2024 3:43 pm
- Forum: Developers
- Topic: Conversion between QJsonObject and QVariantMap
- Replies: 2
- Views: 165
Re: 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.
- Fri Apr 05 2024 12:50 am
- Forum: Issues
- Topic: QListWidgetItem->setHidden(true) doesn't really hide
- Replies: 2
- Views: 206
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.
Barbara
Code: Select all
QListWidgetItem *item = new QListWidgetItem("Item Text");
listView->addItem(item);
item->setHidden(true);
Barbara
- Thu Apr 04 2024 6:13 pm
- Forum: Journal Discussion
- Topic: New GUI Examples
- Replies: 0
- Views: 171
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...
- Thu Apr 04 2024 6:02 pm
- Forum: Developers
- Topic: Questions about SIGNAL
- Replies: 1
- Views: 54
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...
- Thu Mar 28 2024 7:32 pm
- Forum: Issues
- Topic: QString documentation issue
- Replies: 3
- Views: 106
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...
- Wed Mar 27 2024 5:46 pm
- Forum: Issues
- Topic: Qt::CaseInsensitive no longer working
- Replies: 5
- Views: 105
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...
- Tue Mar 26 2024 4:02 am
- Forum: Issues
- Topic: Qt::CaseInsensitive no longer working
- Replies: 5
- Views: 105
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...
- Mon Mar 25 2024 3:37 am
- Forum: Issues
- Topic: QString documentation issue
- Replies: 3
- Views: 106
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...
- Fri Mar 01 2024 3:56 am
- Forum: Enhancements
- Topic: Enh Rqst 1.4.1: warn when functions are not documented
- Replies: 1
- Views: 259
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...