Please see the title :dry:
It troubled me very much.
Does Wincc OA support QtQuick controls?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Does Wincc OA support QtQuick controls?
We don't support it directly. What you can do is to implement an ewo which creates a QQuickWidget, which can then load a qml file.
However we do not deliver all the qml components/libraries from Qt which will be needed when you want to use QtQuick controls, so
you would have to deliver them on your own.
However we do not deliver all the qml components/libraries from Qt which will be needed when you want to use QtQuick controls, so
you would have to deliver them on your own.
- jiaofueric
- Posts:18
- Joined: Wed Oct 31, 2018 7:40 am
Re: Does Wincc OA support QtQuick controls?
Thanks a lot , Sir
I tried it according your method But it still doesn't work
Attach my code...
thank you for your help
BR
Eric
I tried it according your method But it still doesn't work
Attach my code...
Code: Select all
//.h
#include
#include
class MyWidget : public QWidget
{
Q_OBJECT
public:
MyWidget(QWidget *parent);
signals:
protected:
private:
QQuickWidget *myQmlWidget;
};
//.cpp
EWO_PLUGIN( myQml )
MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
{
this->myQmlWidget = new QQuickWidget();
QUrl url("qrc:/firstQml.qml");
// myQmlWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
myQmlWidget->setSource(url);
QVBoxLayout *myLayout = new QVBoxLayout(this);
myLayout->addWidget(myQmlWidget);
this->setLayout(myLayout);
}
BR
Eric
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Does Wincc OA support QtQuick controls?
I once implemented such an ewo as a prototype. Find it attached here.
This code can also use datapoint values to act on properties. https://www.winccoa.com/fileadmin/image ... /Quick.zip
This code can also use datapoint values to act on properties. https://www.winccoa.com/fileadmin/image ... /Quick.zip
- Attachments
-
- Quick.zip
- (5.69 KiB) Downloaded 303 times
- jiaofueric
- Posts:18
- Joined: Wed Oct 31, 2018 7:40 am
Re: Does Wincc OA support QtQuick controls?
Thank you very much ,Sir
But I can't download it now
The server return information as below:
Not Found
The requested URL /images/fbfiles/files/Quick.zip was not found on this server.
Please see the attached....
Could you send it wo my email?
my email is : jch@lailibai.com
BR
Eric
But I can't download it now
The server return information as below:
Not Found
The requested URL /images/fbfiles/files/Quick.zip was not found on this server.
Please see the attached....
Could you send it wo my email?
my email is : jch@lailibai.com
BR
Eric

- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Does Wincc OA support QtQuick controls?
I have uploaded it again.
- jiaofueric
- Posts:18
- Joined: Wed Oct 31, 2018 7:40 am
Re: Does Wincc OA support QtQuick controls?
It Works
Thank you Sir
Thank you Sir
- jiaofueric
- Posts:18
- Joined: Wed Oct 31, 2018 7:40 am
Re: Does Wincc OA support QtQuick controls?
Copy that
Thanks a lot
:cheer: :cheer: :cheer: :cheer: :cheer:
Thanks a lot
:cheer: :cheer: :cheer: :cheer: :cheer: