Important: Please read the Qt Code of Conduct -


  • I am wondering how one would create a widget that gives us something similar to a tabstrip and a scrollbar, but simply having the normal scroll buttons (top/bottom or left/right) but has a series of graphicsviews in the place of the scroll thumb and scrollbar track, and allows the programmer to set the maximum number of visible images on the track. The image that represents the current value should be highlighted (usually with a border around it) and unless the current value equal to something that would be impossible to center, current value's image would always be centered. I already know how to make most of this, I just don't know how to make a QPushButton look like a scroll button complete with glyph. So, how would you make the buttons look like scrollbar buttons, and follow themes and styles?

Log in to reply