Search found 6 matches

by regon
Sat Jul 06 2024 5:36 am
Forum: Developers
Topic: Migrating VTK
Replies: 3
Views: 525

Re: Migrating VTK

Thank you very much for helping me solve the problem.

I encountered a new problem, Q_DECLARE_FLAGS macro is not defined.

Code: Select all


Define	               Sample	Description
Q_DECLARE_FLAGS	  —	        Unchanged in CS

https://www.copperspice.com/docs/cs_overview/m_macros_metaobj.html
by regon
Wed Jul 03 2024 7:01 pm
Forum: Developers
Topic: Migrating VTK
Replies: 3
Views: 525

Migrating VTK

[ Moved from another Post ] I'm trying to make the vtk library depend on copperspice instead of qt. I'm running into the following issues: 1. I selected vulkan when compiling copperspice from source, and when I tried to link with vtk, an error occurred. So I unselected vulkan, will this have any eff...
by regon
Wed Jul 03 2024 10:07 am
Forum: Developers
Topic: Signal overload
Replies: 2
Views: 258

Re: Signal overload

Thank you for your answer.

[ Moved new questions to another topic "Migrating VTK" ]
by regon
Tue Jul 02 2024 2:25 pm
Forum: Developers
Topic: Signal overload
Replies: 2
Views: 258

Signal overload

Hi barbara, how do I connect two overloaded signals to my application? Example 1: class QComboBox:{ GUI_CS_SIGNAL_1(Public, void currentIndexChanged(int index)) GUI_CS_SIGNAL_OVERLOAD(currentIndexChanged, (int), index) GUI_CS_SIGNAL_1(Public, void currentIndexChanged(const QString &text)) GUI_CS...
by regon
Wed Apr 10 2024 7:53 am
Forum: Developers
Topic: Conversion between QJsonObject and QVariantMap
Replies: 2
Views: 3861

Conversion between QJsonObject and QVariantMap

QVariant json_to_variant() { QJsonObject t_json; t_json["111"] = 111; t_json["222"] = 222; QJsonObject root; root["root"] = t_json; auto t_map = root.toVariantMap(); QVariant t_var = t_map; return t_var; } QVariant t_var = json_to_variant(); QJsonObject t_root = t_var....
by regon
Wed Apr 03 2024 4:54 pm
Forum: Developers
Topic: Questions about SIGNAL
Replies: 1
Views: 1483

Questions about SIGNAL

What is the difference between the CS_SIGNAL_1 macro and the CS_SIGNAL_2 macro? When I only want to use CS_SIGNAL_1, the compiler gives an error. This question has puzzled me for three days。 :shock: