Warning message when change mimimumSize

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
6 posts • Page 1 of 1
kusey
Posts:15
Joined: Wed May 04, 2011 3:27 pm

Warning message when change mimimumSize

Post by kusey »

I use a script, which controls the minimum size of an object

[img]C:\\Users\\KuseyAS.TNT\\Desktop\\script.jpg[/img]

and get a warning that incompatible datatypes:

[img]C:\\Users\\KuseyAS.TNT\\Desktop\\Warning.jpg[/img]

everything is working, but why i got this message?

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

Re: Warning message when change mimimumSize

Post by leoknipp »

Hello,

We cannot see the warning message.
If the warning message is displayed in the logviewer please copy the text and paste it to the posting.

Best Regards
Leopold Knipp
Senior Support Specialist

kusey
Posts:15
Joined: Wed May 04, 2011 3:27 pm

Re: Warning message when change mimimumSize

Post by kusey »

Code: Select all

WCCOAui      (2), 2016.09.06 16:48:24.055, CTRL, WARNING,    11, Datatype conversion incorrect - incompatible datatypes, 
    Module: Vision_1
    Panel: C:\\ZheleschikovAV\\tnAES3\\panels\\tnAES_main_v2.4.xml []
    Object: 2 named: "RESIZE_SLIDER" of type: SLIDER
    Script: Slide
    Library: C:\\ZheleschikovAV\\tnAES3\\scripts\\libs\\tnAES_view.ctl
    Line: 938, minimumSize, 0 | 384, ... -> QSize

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

Re: Warning message when change mimimumSize

Post by mkoller »

I can't see your images.
Can you paste your code, please. Or attach the panel

kusey
Posts:15
Joined: Wed May 04, 2011 3:27 pm

Re: Warning message when change mimimumSize

Post by kusey »

Code is very simple:

Code: Select all

Slide (int value)
{
  this.minimumSize(100, 200 + value);
}

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

Re: Warning message when change mimimumSize

Post by mkoller »

I think this is due to the fact that minimumSize and maximumSize are also QWidget properties (that is: they also exist in a non-WinCC_OA Qt application QWidget object), so our code passes the value not only to our implementation of these properties but then also tries to set the std. QWidget property, which is wrong.
The message does not occur in the upcoming 3.15, so it was already fixed.
You can ignore the message in 3.14

6 posts • Page 1 of 1