I added a tab to the sales order screen through a script.
Is it possible to apply a styleSheet to it like backgroung color?
I tried the following and few other variations but nothing worked:
var newTab=toolbox.tabInsertTab(tablist,9,newPage, "Pricing");
I can add styling to a button through script without any problem:
newbutton.setStyleSheet("QPushButton {background-color: lime; }");
The debugger says:
Uncaught exception at salesOrder:23: TypeError: Result of expression 'newTab.setStyleSheet' [undefined] is not a function.
Everything I read indicate it is possible.
What am I doing wrong?
Thanks!