Doc: Add doc to Graphics View Flow Layout example
Change-Id: Id3965d099222607cee4252bbb33c6a1e9c17765a Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
43918feb4a
commit
e9dc2f1783
@ -36,5 +36,17 @@
|
|||||||
|
|
||||||
\image graphicsflowlayout-example.png
|
\image graphicsflowlayout-example.png
|
||||||
|
|
||||||
See the \l{Flow Layout Example} for a corresponding widget-based example.
|
This example uses a Graphics View to display the widget, which is a more
|
||||||
|
customizable approach than displaying the flow layout in the application
|
||||||
|
window (See \l {Flow Layout Example}).
|
||||||
|
|
||||||
|
Graphics View Flow Layout snippet:
|
||||||
|
|
||||||
|
\snippet graphicsview/flowlayout/main.cpp 1
|
||||||
|
|
||||||
|
Flow Layout Example snippet:
|
||||||
|
|
||||||
|
\snippet layouts/flowlayout/main.cpp 1
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
** $QT_END_LICENSE$
|
** $QT_END_LICENSE$
|
||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
//! [1]
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@ -68,3 +68,4 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
//! [1]
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
** $QT_END_LICENSE$
|
** $QT_END_LICENSE$
|
||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
//! [1]
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
@ -59,3 +59,4 @@ int main(int argc, char *argv[])
|
|||||||
window.show();
|
window.show();
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
//! [1]
|
||||||
|
BIN
src/widgets/doc/images/graphicsflowlayout.png
Normal file
BIN
src/widgets/doc/images/graphicsflowlayout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
Loading…
Reference in New Issue
Block a user