![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QApplication>
#include <QBuffer>
#include <QPalette>
Go to the source code of this file.
Functions | |
static void | main_snippet () |
static void | write_datastream_snippets () |
static void | read_datastream_snippets () |
static void | bytearray_ptr_ctor_snippet () |
static void | setBuffer_snippet () |
int | main (int argc, char *argv[]) |
[2] | |
|
static |
[3]
[3]
Definition at line 50 of file buffer.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] ) |
[2]
[main_cpp]
[main.cpp body]
The main function for the string list model example.
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.
[0] //! [1]
[1]
[using a custom style]
[QApplication subclass]
[21]
[getter functions]
[0]
[3]
[4]
This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]
[0] [1]
[printing a custom type]
[printing a custom type] [storing a custom value]
[storing a custom value]
[retrieving a custom value]
[retrieving a custom value]
Definition at line 77 of file buffer.cpp.
References bytearray_ptr_ctor_snippet(), main_snippet(), read_datastream_snippets(), setBuffer_snippet(), and write_datastream_snippets().
|
static |
[0]
[0]
Definition at line 8 of file buffer.cpp.
Referenced by main().
|
static |
[2]
[2]
Definition at line 36 of file buffer.cpp.
Referenced by main().
|
static |
[4]
[4]
Definition at line 63 of file buffer.cpp.
Referenced by main().
|
static |
[1]
[1]
Definition at line 24 of file buffer.cpp.
Referenced by main().