sev75
30th May 2014, 19:39
Hi,
I have a QScrollArea "scrollMain" and I want to use a QScrollArea "scrollVertical" and a QScrollArea "scrollHorizontal" to control "scrollMain". You understand that "scrollVertical" and "scrollHorizontal" will contain headers for datas in "scrollMain".
I tried :
connect(ScrollArea1->verticalScrollBar(),valueChanged(int),ScrollArea2->verticalScrollBar(),setValue(int));
but I got "undefined functions" messages.
I tried to create my own functions without success.
It seems "value" parameter from verticalScrollBar() and horizontalScrollBar() are unreachable.
Do you have an issue?
Thanks
I have a QScrollArea "scrollMain" and I want to use a QScrollArea "scrollVertical" and a QScrollArea "scrollHorizontal" to control "scrollMain". You understand that "scrollVertical" and "scrollHorizontal" will contain headers for datas in "scrollMain".
I tried :
connect(ScrollArea1->verticalScrollBar(),valueChanged(int),ScrollArea2->verticalScrollBar(),setValue(int));
but I got "undefined functions" messages.
I tried to create my own functions without success.
It seems "value" parameter from verticalScrollBar() and horizontalScrollBar() are unreachable.
Do you have an issue?
Thanks