Re: QLabel and QLCDNumber
1) You can create this lable in Qt Designer (call edit text window and put there needed words through Enter)
2)void QLCDNumber::display ( double num ) [slot]
Re: QLabel and QLCDNumber
This code said incompatible argoument
Code:
connect( slider1, SIGNAL(valueChanged(int)), SLOT (display(double) ));
Is there a fast way to resolve it?
Is possible rotate a QLabel?
Thanks
Re: QLabel and QLCDNumber
Quote:
Originally Posted by mickey
I have designed a label from desinger with a text eg. "cancel". Noew I'd like rotate it to vertical position. Is it possible?
As zlatko said, edit the content of the label in designer and insert a line break after each letter.
Or if you want to create it in code:
Code:
QLabel label
("C\na\nn\nc\ne\nl");
Quote:
Originally Posted by mickey
This code said incompatible argoument
Code:
connect( slider1, SIGNAL(valueChanged(int)), SLOT (display(double) ));
Parameter types must match. int does not match double :)
Re: QLabel and QLCDNumber
Quote:
Originally Posted by jpn
As zlatko said, edit the content of the label in designer and insert a line break after each letter.
Or if you want to create it in code:
Code:
QLabel label
("C\na\nn\nc\ne\nl");
I undestand this; but this above is different to rotate of 90 grades the label "Cancel"....
Isn't there a way to rotate qlabel? Thanks
Re: QLabel and QLCDNumber
I'm not sure but you can try reinplement drawContenst for your label and use QPainter::rotate