Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
buffer.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QApplication>
#include <QBuffer>
#include <QPalette>
+ Include dependency graph for buffer.cpp:

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]
 

Function Documentation

◆ bytearray_ptr_ctor_snippet()

static void bytearray_ptr_ctor_snippet ( )
static

[3]

[3]

Definition at line 50 of file buffer.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function:

◆ main_snippet()

static void main_snippet ( )
static

[0]

[0]

Definition at line 8 of file buffer.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ read_datastream_snippets()

static void read_datastream_snippets ( )
static

[2]

[2]

Definition at line 36 of file buffer.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ setBuffer_snippet()

static void setBuffer_snippet ( )
static

[4]

[4]

Definition at line 63 of file buffer.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ write_datastream_snippets()

static void write_datastream_snippets ( )
static

[1]

[1]

Definition at line 24 of file buffer.cpp.

Referenced by main().

+ Here is the caller graph for this function: