Qt custom widgets

Find and share HowTos to various installations / configurations!
20 posts • Page 2 of 2
mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Qt custom widgets

Post by mkoller »

Yes, it's using openGL. It's based on http://doc.qt.io/QtDataVisualization/

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: Qt custom widgets

Post by bhavna »

Hi,

OS: Windows 7
WinCCOA 3.11+SP1

I have a similar query. I have attached an image of CRO traces being displayed using some other software. I want to display similar plots in WINCCOA panel. Is it possible using already given widgets or I need to use QT custom widget and make an EWO ?

Regards,
Bhavna Image

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Qt custom widgets

Post by leoknipp »

Hello,

we cannot see the attached image. Maybe the upload failed.

Best Regards
Leopold Knipp
Senior Support Specialist

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: Qt custom widgets

Post by bhavna »

Hi,
I have tried to attached the file(CRO.png) again. But somehow it is not getting displayed in the message. Pls suggest.

Regards,
Bhavna Image https://www.winccoa.com/fileadmin/image ... es/cro.jpg
Attachments
cro.jpg

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: Qt custom widgets

Post by amitgolhani »

Hi Bhavna,

If you are planning to use amplitude and time division plot and planning to display peak-peak and other details similar to CRO then you need to prepare your own CRO widget. You may explore trend widget and check if it can meet your basic CRO requirements.

Best Regards,
Amit Golhani

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: Qt custom widgets

Post by bhavna »

Thank you Amit,

I have already checked for such widget in WINCCOA. I could not find something that could plot 4 arrays (waveform of 400 element each) over a timeline/sample number. These waveforms are read from CRO eevry second over TCP/IP.

I will try EWO with QTcustom plot widget.

Regards,
Bhavna

Andorhal
Posts:127
Joined: Wed Nov 12, 2014 8:04 am

Re: Qt custom widgets

Post by Andorhal »

Hello.

There seems to be a problem with the image upload functionality, you can upload the image as file.
You may look at my post here:

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: Qt custom widgets

Post by bhavna »

Thanks. I could upload it as file.

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: Qt custom widgets

Post by amitgolhani »

Hello,

Can we use SVG based Qt custom widgets to prepare EWO? We are planning to use to SVG for animation, and to control SVG animation we will add controls in widget.

Best Regards,
Amit Golhani

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Qt custom widgets

Post by mkoller »

You can of course paint SVG images inside your class::paintEvent(), if that's what you mean.
(e.g. we do this in the DialGauge.ewo. We use QSvgRenderer to render the SVG into a QPixmap and paint the pixmap inside the paintEvent, which is faster than always rendering the SVG in paintEvent())

20 posts • Page 2 of 2