Card based tabs
-
Hello!
So as you may know I have been working on a web browser. I was wondering if it is possible to make a tab system like the google chrome iOS/mobile app where you click the 'tab' button and you see a view with a bunch of cards. Or Safari on iOS with its horizontal-scrolling windows. I am aware that this is probably insanely difficult, but I was wondering if anyone would be so kind as to tell me how I might acheive this.
Thanks! -
that shouldn't be that difficult.
create a plain QWidget and place it in a QScrolllArea
Create Thumbnails (QWidget::render() or QPixmap::grabWidget()) of your tab contents.
set the thumbnails on QLabels and add them to a layout of your choice on the plain QWidget in the QScrollArea
handle the clicks etc. on your labels
is that what you are looking for?
instead of using QLabels you could also create custom widgets for better handling and display features, etc.
Alternatively you can use a QGraphicsView which may enable you any visual effects and handling of the items...
I'm thinking of something similiar to "this":http://qt-project.org/forums/viewthread/4950, "this ":http://www.developer.nokia.com/Community/Wiki/Cover_Flow_With_Qt or "this":http://code.google.com/p/pictureflow/. -
yep it should be possible. See "this":http://qt-project.org/doc/qt-5.0/qtdesigner/designer-using-a-ui-file.html for more infos.
-
sure...see the "animation framework":http://qt-project.org/doc/qt-5.0/qtcore/animation-overview.html. (especially QPropertyAnimation)