Re: [Qt-creator] 回复: How to add custom property type to the designer?

2018-04-03 Thread Jaroslaw Kobus
No, uic is not extensible.


From: Jarvis <390246...@qq.com>
Sent: Tuesday, April 3, 2018 10:34:33 AM
To: Jaroslaw Kobus
Subject: 回复: [Qt-creator] How to add custom property type to the designer?

OK,thanks. QT is there an example of uic extension(plugin)?

-- 原始邮件 --
发件人: "Jaroslaw Kobus";
发送时间: 2018年4月3日(星期二) 下午4:28
收件人: "Jarvis"<390246...@qq.com>;"qt-creator";
主题: Re: [Qt-creator] How to add custom property type to the designer?


Yes, QDesigner supports only types it knows. However, the list of known types 
is quite large.


Taking into account that uic needs to convert an xml based property values into 
the C++ code, it wouldn't be easily possible without any plugin architecture / 
extension system of uic.


From: Qt-creator  on 
behalf of Jarvis <390246...@qq.com>
Sent: Friday, March 23, 2018 12:41:37 PM
To: qt-creator
Subject: [Qt-creator] How to add custom property type to the designer?

Hello,I want to add custom property type to the designer.

I'm trying to do that:


struct TestType
{
int x;
int y;
};
Q_DECLARE_METATYPE(TestType)

class ...
{
Q_OBJECT
Q_PROPERTY(TestType Test
   READ Test
   WRITESetTest)
...
};


But the property do not appear in the designer.

Property type can only be Qt's own?(and Q_ENUM、Q_FLAGS)
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] How to add custom property type to the designer?

2018-04-03 Thread Jaroslaw Kobus
Yes, QDesigner supports only types it knows. However, the list of known types 
is quite large.


Taking into account that uic needs to convert an xml based property values into 
the C++ code, it wouldn't be easily possible without any plugin architecture / 
extension system of uic.


From: Qt-creator  on 
behalf of Jarvis <390246...@qq.com>
Sent: Friday, March 23, 2018 12:41:37 PM
To: qt-creator
Subject: [Qt-creator] How to add custom property type to the designer?

Hello,I want to add custom property type to the designer.

I'm trying to do that:


struct TestType
{
int x;
int y;
};
Q_DECLARE_METATYPE(TestType)

class ...
{
Q_OBJECT
Q_PROPERTY(TestType Test
   READ Test
   WRITESetTest)
...
};


But the property do not appear in the designer.

Property type can only be Qt's own?(and Q_ENUM、Q_FLAGS)
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] The clangbackend process has finished unexpectedly and was restarted.

2018-04-03 Thread Ivan Donchevskii
Hi!

I also saw that clang-tidy can break code model in some files. If you want to 
fix clang-tidy you can try to run it with the same flags as a standalone tool.

Then if clang-tidy standalone also breaks you can try to fix it. If not  please 
report at bugreports.qt.io and ideally provide a minimal code example - we will 
try to fix the issue in clang code model.


Regards,

Ivan


From: Qt-creator  on 
behalf of timur.kris...@gmail.com 
Sent: Thursday, March 29, 2018 12:58:30 PM
To: qt-creator
Subject: [Qt-creator] The clangbackend process has finished unexpectedly and 
was restarted.

Hi,

When enabling some clang-tidy checks (notably modernize-*) in Qt
Creator 4.6.0, I get the following, repeatedly:

2018-03-29T12:55:55 Clang Code Model: Error: The clangbackend process
has finished unexpectedly and was restarted.

Is there a way to debug what exactly is the problem?

Thanks,
Timur
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator