Sliding Image Item Selection Bar
-
Hello all. I am trying to make a paracord rope pattern weaving program. I am having difficulty figuring out how to accomplish/start this specific API/GUI function I have depicted (in red circle on image 1) in the images bellow. I am hoping someone might be able to help me figure out what I would need to do to get the basic functionality as shown bellow.
(image 2 above) I can figure out how to do the mutually exclusive feature as well as how to add images to button icons. but I don't know how to make this slide bar button selection feature. I can figure out the internal coding to make the button perform the desired functions but I don't know how to make this kind of API/GUI feature.Any help would be greatly appreciated. I am using Windows 10 and the program language is C++. Here is a picture of the compiler and versions I'm using.
-
Hello,
See these projects,
https://github.com/ThePBone/SlidingStackedWidget
This one seems good
https://github.com/keshavbhatt/QtApplicationIntroSlider
and this one too.Try these, It would fix your needs
-
@duck18 well, there isn't much magic to it,
I would suggest to use a ListView with the flow set to QListView::LeftToRight
place it in a horizontal layout and place a button left and right of the view .
The only thing missing now is a fitting delegate for your ListView -
@eyllanesc Thank you for the suggestion. I had come to the same conclusion after a complete day reading the qt documentation. no sleep was had but I at least now I have another person agreeing with me on a more solid path to follow in a circle ;)
-
@eyllanesc Thank you for the info. once I'm done reinstalling Qt I will try this out. I somehow messed up the Qt quick designer: libraries, minwig build and play feature and broke the form view display in designer. I have no idea what I did to it other the straight murder apparently lol. ironically the examples and tutorial files worked fine though. I think the problem was initially caused when I first (orthodoxically) installed it do to plain ignorance.
-
@Thank-You absolutely. so the main problem I ran into was my inability to understand what large amounts of there code did and having no success trying to follow that rabbit hole of information. I had gone down so many side paths of what each line and function did that I couldn't simple manipulate the examples to my desired goal. then (currently too) I am not able to find clear enough documentation on how to add a qml/QQuick UI element to a C++ widget based application using QQuickWidget. I very well may need help on that topic. but in the end the examples were similar to what I wanted but there particular Pagination like behaver was not what I was really looking for. but I will try to make this particular widget ui item in QML and add it to the widget based app.