Ask Your Question

Revision history [back]

Change width of trackbar

Hi,

is there a way to influence the width of the trackbars? My trackbars go from 0 - 500 but the width is to small to increment e.g. by 1

The code is something like that:

cv::namedWindow(tb_win_name_win, CV_WINDOW_NORMAL);
cv::resizeWindow(tb_win_name_win, 500, 700);
cv::createTrackbar(string("R a_u"), tb_win_name_win, &auIR, alpha_slider_max, on_trackbar, &(param_map[0]));

And I get this: image description