This file is indexed.

/usr/share/qt5/doc/qtquick/qquickitem.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickitem.cpp -->
  <title>QQuickItem Class | QtQuick 5.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li>Qt 5.2</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li><a href="qtquick-module.html">C++ Classes</a></li>
<li>QQuickItem</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#custom-scene-graph-items">Custom Scene Graph Items</a></li>
<li class="level2"><a href="#custom-qpainter-items">Custom QPainter Items</a></li>
</ul>
</div>
<h1 class="title">QQuickItem Class</h1>
<!-- $$$QQuickItem-brief -->
<p>The QQuickItem class provides the most basic of all visual items in <a href="qtquick-index.html">Qt Quick</a>. <a href="#details">More...</a></p>
<!-- @@@QQuickItem -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QQuickItem&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += quick</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qtquick-item.html">Item</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qquickframebufferobject.html">QQuickFramebufferObject</a> and <a href="qquickpainteditem.html">QQuickPaintedItem</a>.</p>
</td></tr></table><ul>
<li><a href="qquickitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qquickitem-itemchangedata.html">ItemChangeData</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qquickitem-updatepaintnodedata.html">UpdatePaintNodeData</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#Flag-enum">Flag</a></b> { ItemClipsChildrenToShape, ItemAcceptsInputMethod, ItemIsFocusScope, ItemHasContents, ItemAcceptsDrops }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#Flag-enum">Flags</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#ItemChange-enum">ItemChange</a></b> { ItemChildAddedChange, ItemChildRemovedChange, ItemSceneChange, ItemVisibleHasChanged, ..., ItemRotationHasChanged }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#TransformOrigin-enum">TransformOrigin</a></b> { TopLeft, Top, TopRight, Left, ..., BottomRight }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qquickitem.html#activeFocus-prop">activeFocus</a></b> : const bool</li>
<li class="fn"><b><a href="qquickitem.html#activeFocusOnTab-prop">activeFocusOnTab</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#antialiasing-prop">antialiasing</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#baselineOffset-prop">baselineOffset</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#childrenRect-prop">childrenRect</a></b> : const QRectF</li>
<li class="fn"><b><a href="qquickitem.html#clip-prop">clip</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#enabled-prop">enabled</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#focus-prop">focus</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#height-prop">height</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#implicitHeight-prop">implicitHeight</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#implicitWidth-prop">implicitWidth</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#opacity-prop">opacity</a></b> : qreal</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qquickitem.html#parent-prop">parent</a></b> : QQuickItem *</li>
<li class="fn"><b><a href="qquickitem.html#rotation-prop">rotation</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#scale-prop">scale</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#smooth-prop">smooth</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#state-prop">state</a></b> : QString</li>
<li class="fn"><b><a href="qquickitem.html#transformOrigin-prop">transformOrigin</a></b> : TransformOrigin</li>
<li class="fn"><b><a href="qquickitem.html#visible-prop">visible</a></b> : bool</li>
<li class="fn"><b><a href="qquickitem.html#width-prop">width</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#x-prop">x</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#y-prop">y</a></b> : qreal</li>
<li class="fn"><b><a href="qquickitem.html#z-prop">z</a></b> : qreal</li>
</ul>
</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#QQuickItem">QQuickItem</a></b>(QQuickItem *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#dtor.QQuickItem">~QQuickItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#acceptHoverEvents">acceptHoverEvents</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::MouseButtons </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#acceptedMouseButtons">acceptedMouseButtons</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#activeFocusOnTab-prop">activeFocusOnTab</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#antialiasing-prop">antialiasing</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#baselineOffset-prop">baselineOffset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QQuickItem * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#childAt">childAt</a></b>(qreal<i> x</i>, qreal<i> y</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QQuickItem *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#childItems">childItems</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#childrenRect-prop">childrenRect</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#clip-prop">clip</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#contains">contains</a></b>(const QPointF &amp;<i> point</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCursor </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#cursor">cursor</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#filtersChildMouseEvents">filtersChildMouseEvents</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Flags </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#flags">flags</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#forceActiveFocus">forceActiveFocus</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#forceActiveFocus-2">forceActiveFocus</a></b>(Qt::FocusReason<i> reason</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#grabMouse">grabMouse</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#grabTouchPoints">grabTouchPoints</a></b>(const QVector&lt;int&gt; &amp;<i> ids</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#activeFocus-prop">hasActiveFocus</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#focus-prop">hasFocus</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#height-prop">height</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#implicitHeight-prop">implicitHeight</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#implicitWidth-prop">implicitWidth</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#inputMethodQuery">inputMethodQuery</a></b>(Qt::InputMethodQuery<i> query</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#enabled-prop">isEnabled</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#isFocusScope">isFocusScope</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#isTextureProvider">isTextureProvider</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#visible-prop">isVisible</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#keepMouseGrab">keepMouseGrab</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#keepTouchGrab">keepTouchGrab</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapFromItem">mapFromItem</a></b>(const QQuickItem *<i> item</i>, const QPointF &amp;<i> point</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapFromScene">mapFromScene</a></b>(const QPointF &amp;<i> point</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapRectFromItem">mapRectFromItem</a></b>(const QQuickItem *<i> item</i>, const QRectF &amp;<i> rect</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapRectFromScene">mapRectFromScene</a></b>(const QRectF &amp;<i> rect</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapRectToItem">mapRectToItem</a></b>(const QQuickItem *<i> item</i>, const QRectF &amp;<i> rect</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapRectToScene">mapRectToScene</a></b>(const QRectF &amp;<i> rect</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapToItem">mapToItem</a></b>(const QQuickItem *<i> item</i>, const QPointF &amp;<i> point</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mapToScene">mapToScene</a></b>(const QPointF &amp;<i> point</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QQuickItem * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#nextItemInFocusChain">nextItemInFocusChain</a></b>(bool<i> forward</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#opacity-prop">opacity</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QQuickItem * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#parent-prop">parentItem</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#polish">polish</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#height-prop">resetHeight</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#width-prop">resetWidth</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#rotation-prop">rotation</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#scale-prop">scale</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QQuickItem * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#scopedFocusItem">scopedFocusItem</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setAcceptHoverEvents">setAcceptHoverEvents</a></b>(bool<i> enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setAcceptedMouseButtons">setAcceptedMouseButtons</a></b>(Qt::MouseButtons<i> buttons</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#activeFocusOnTab-prop">setActiveFocusOnTab</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#antialiasing-prop">setAntialiasing</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#baselineOffset-prop">setBaselineOffset</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#clip-prop">setClip</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setCursor">setCursor</a></b>(const QCursor &amp;<i> cursor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#enabled-prop">setEnabled</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setFiltersChildMouseEvents">setFiltersChildMouseEvents</a></b>(bool<i> filter</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setFlag">setFlag</a></b>(Flag<i> flag</i>, bool<i> enabled</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setFlags">setFlags</a></b>(Flags<i> flags</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#focus-prop">setFocus</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#focus-prop">setFocus</a></b>(bool<i> focus</i>, Qt::FocusReason<i> reason</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#height-prop">setHeight</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#implicitHeight-prop">setImplicitHeight</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#implicitWidth-prop">setImplicitWidth</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setKeepMouseGrab">setKeepMouseGrab</a></b>(bool<i> keep</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#setKeepTouchGrab">setKeepTouchGrab</a></b>(bool<i> keep</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#opacity-prop">setOpacity</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#parent-prop">setParentItem</a></b>(QQuickItem *<i> parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#rotation-prop">setRotation</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#scale-prop">setScale</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#smooth-prop">setSmooth</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#state-prop">setState</a></b>(const QString &amp;)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#transformOrigin-prop">setTransformOrigin</a></b>(TransformOrigin)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#visible-prop">setVisible</a></b>(bool)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#width-prop">setWidth</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#x-prop">setX</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#y-prop">setY</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#z-prop">setZ</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#smooth-prop">smooth</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#stackAfter">stackAfter</a></b>(const QQuickItem *<i> sibling</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#stackBefore">stackBefore</a></b>(const QQuickItem *<i> sibling</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#state-prop">state</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSGTextureProvider * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#textureProvider">textureProvider</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> TransformOrigin </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#transformOrigin-prop">transformOrigin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#ungrabMouse">ungrabMouse</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#ungrabTouchPoints">ungrabTouchPoints</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#unsetCursor">unsetCursor</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#width-prop">width</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QQuickWindow * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#window">window</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#x-prop">x</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#y-prop">y</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#z-prop">z</a></b>() const</td></tr>
</table>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#update">update</a></b>()</td></tr>
</table>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#windowChanged">windowChanged</a></b>(QQuickWindow *<i> window</i>)</td></tr>
</table>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#childMouseEventFilter">childMouseEventFilter</a></b>(QQuickItem *<i> item</i>, QEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#classBegin">classBegin</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#componentComplete">componentComplete</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#dragEnterEvent">dragEnterEvent</a></b>(QDragEnterEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#dragLeaveEvent">dragLeaveEvent</a></b>(QDragLeaveEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#dragMoveEvent">dragMoveEvent</a></b>(QDragMoveEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#dropEvent">dropEvent</a></b>(QDropEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#event">event</a></b>(QEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#focusInEvent">focusInEvent</a></b>(QFocusEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#focusOutEvent">focusOutEvent</a></b>(QFocusEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#geometryChanged">geometryChanged</a></b>(const QRectF &amp;<i> newGeometry</i>, const QRectF &amp;<i> oldGeometry</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#heightValid">heightValid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#hoverEnterEvent">hoverEnterEvent</a></b>(QHoverEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#hoverLeaveEvent">hoverLeaveEvent</a></b>(QHoverEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#hoverMoveEvent">hoverMoveEvent</a></b>(QHoverEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#inputMethodEvent">inputMethodEvent</a></b>(QInputMethodEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#isComponentComplete">isComponentComplete</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#itemChange">itemChange</a></b>(ItemChange<i> change</i>, const ItemChangeData &amp;<i> value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#keyPressEvent">keyPressEvent</a></b>(QKeyEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#keyReleaseEvent">keyReleaseEvent</a></b>(QKeyEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b>(QMouseEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mouseMoveEvent">mouseMoveEvent</a></b>(QMouseEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mousePressEvent">mousePressEvent</a></b>(QMouseEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mouseReleaseEvent">mouseReleaseEvent</a></b>(QMouseEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#mouseUngrabEvent">mouseUngrabEvent</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#releaseResources">releaseResources</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#touchEvent">touchEvent</a></b>(QTouchEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#touchUngrabEvent">touchUngrabEvent</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#updateInputMethod">updateInputMethod</a></b>(Qt::InputMethodQueries<i> queries</i> = Qt::ImQueryInput)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSGNode * </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#updatePaintNode">updatePaintNode</a></b>(QSGNode *<i> oldNode</i>, UpdatePaintNodeData *<i> updatePaintNodeData</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#updatePolish">updatePolish</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#wheelEvent">wheelEvent</a></b>(QWheelEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qquickitem.html#widthValid">widthValid</a></b>() const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QQuickItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QQuickItem class provides the most basic of all visual items in <a href="qtquick-index.html">Qt Quick</a>.</p>
<p>All visual items in Qt Quick inherit from QQuickItem. Although a QQuickItem instance has no visual appearance, it defines all the attributes that are common across visual items, such as x and y position, width and height, <a href="qtquick-positioning-anchors.html">anchoring</a> and key handling support.</p>
<p>You can subclass QQuickItem to provide your own custom visual item that inherits these features.</p>
<a name="custom-scene-graph-items"></a>
<h3>Custom Scene Graph Items</h3>
<p>All visual QML items are rendered using the scene graph, a low-level, high-performance rendering stack, closely tied to OpenGL. It is possible for subclasses of QQuickItem to add their own custom content into the scene graph by setting the <a href="qquickitem.html#Flag-enum">QQuickItem::ItemHasContents</a> flag and reimplementing the <a href="qquickitem.html#updatePaintNode">QQuickItem::updatePaintNode</a>() function.</p>
<p><b>Warning:</b> It is crucial that OpenGL operations and interaction with the scene graph happens exclusively on the rendering thread, primarily during the <a href="qquickitem.html#updatePaintNode">updatePaintNode</a>() call. The best rule of thumb is to only use classes with the &quot;QSG&quot; prefix inside the <a href="qquickitem.html#updatePaintNode">QQuickItem::updatePaintNode</a>() function.</p>
<p>To read more about how the scene graph rendering works, see <a href="qtquick-visualcanvas-scenegraph.html#scene-graph-and-rendering">Scene Graph and Rendering</a></p>
<a name="custom-qpainter-items"></a>
<h3>Custom QPainter Items</h3>
<p>The QQuickItem provides a subclass, <a href="qquickpainteditem.html">QQuickPaintedItem</a>, which allows the users to render content using QPainter.</p>
<p><b>Warning:</b> Using <a href="qquickpainteditem.html">QQuickPaintedItem</a> uses an indirect 2D surface to render its content, either using software rasterization or using an OpenGL framebuffer object (FBO), so the rendering is a two-step operation. First rasterize the surface, then draw the surface. Using scene graph API directly is always significantly faster.</p>
</div>
<p><b>See also </b><a href="qquickwindow.html">QQuickWindow</a> and <a href="qquickpainteditem.html">QQuickPaintedItem</a>.</p>
<!-- @@@QQuickItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Flag$$$ItemClipsChildrenToShape$$$ItemAcceptsInputMethod$$$ItemIsFocusScope$$$ItemHasContents$$$ItemAcceptsDrops -->
<h3 class="flags"><a name="Flag-enum"></a>enum QQuickItem::<span class="name">Flag</span><br/>flags QQuickItem::<span class="name">Flags</span></h3>
<p>This enum type is used to specify various item properties.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemClipsChildrenToShape</tt></td><td class="topAlign"><tt>0x01</tt></td><td class="topAlign">Indicates this item should visually clip its children so that they are rendered only within the boundaries of this item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemAcceptsInputMethod</tt></td><td class="topAlign"><tt>0x02</tt></td><td class="topAlign">Indicates the item supports text input methods.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemIsFocusScope</tt></td><td class="topAlign"><tt>0x04</tt></td><td class="topAlign">Indicates the item is a focus scope. See <a href="qtquick-input-focus.html">Keyboard Focus in Qt Quick</a> for more information.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemHasContents</tt></td><td class="topAlign"><tt>0x08</tt></td><td class="topAlign">Indicates the item has visual content and should be rendered by the scene graph.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemAcceptsDrops</tt></td><td class="topAlign"><tt>0x10</tt></td><td class="topAlign">Indicates the item accepts drag and drop events.</td></tr>
</table>
<p>The Flags type is a typedef for <a href="">QFlags</a>&lt;Flag&gt;. It stores an OR combination of Flag values.</p>
<p><b>See also </b><a href="qquickitem.html#setFlag">setFlag</a>(), <a href="qquickitem.html#setFlags">setFlags</a>(), and <a href="qquickitem.html#flags">flags</a>().</p>
<!-- @@@Flag -->
<!-- $$$ItemChange$$$ItemChildAddedChange$$$ItemChildRemovedChange$$$ItemSceneChange$$$ItemVisibleHasChanged$$$ItemParentHasChanged$$$ItemOpacityHasChanged$$$ItemActiveFocusHasChanged$$$ItemRotationHasChanged -->
<h3 class="fn"><a name="ItemChange-enum"></a>enum QQuickItem::<span class="name">ItemChange</span></h3>
<p>Used in conjunction with <a href="qquickitem.html#itemChange">QQuickItem::itemChange</a>() to notify the item about certain types of changes.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemChildAddedChange</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">A child was added. <a href="qquickitem-itemchangedata.html#item-var">ItemChangeData::item</a> contains the added child.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemChildRemovedChange</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A child was removed. <a href="qquickitem-itemchangedata.html#item-var">ItemChangeData::item</a> contains the removed child.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemSceneChange</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The item was added to or removed from a scene. The <a href="qquickwindow.html">QQuickWindow</a> rendering the scene is specified in using <a href="qquickitem-itemchangedata.html#window-var">ItemChangeData::window</a>. The window parameter is null when the item is removed from a scene.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemVisibleHasChanged</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The item's visibility has changed. <a href="qquickitem-itemchangedata.html#boolValue-var">ItemChangeData::boolValue</a> contains the new visibility.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemParentHasChanged</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The item's parent has changed. <a href="qquickitem-itemchangedata.html#item-var">ItemChangeData::item</a> contains the new parent.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemOpacityHasChanged</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The item's opacity has changed. <a href="qquickitem-itemchangedata.html#realValue-var">ItemChangeData::realValue</a> contains the new opacity.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemActiveFocusHasChanged</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The item's focus has changed. <a href="qquickitem-itemchangedata.html#boolValue-var">ItemChangeData::boolValue</a> contains whether the item has focus or not.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::ItemRotationHasChanged</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The item's rotation has changed. <a href="qquickitem-itemchangedata.html#realValue-var">ItemChangeData::realValue</a> contains the new rotation.</td></tr>
</table>
<!-- @@@ItemChange -->
<!-- $$$TransformOrigin$$$TopLeft$$$Top$$$TopRight$$$Left$$$Center$$$Right$$$BottomLeft$$$Bottom$$$BottomRight -->
<h3 class="fn"><a name="TransformOrigin-enum"></a>enum QQuickItem::<span class="name">TransformOrigin</span></h3>
<p>Controls the point about which simple transforms like scale apply.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QQuickItem::TopLeft</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The top-left corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::Top</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The center point of the top of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::TopRight</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The top-right corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::Left</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The left most point of the vertical middle.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::Center</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The center of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::Right</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The right most point of the vertical middle.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::BottomLeft</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The bottom-left corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::Bottom</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The center point of the bottom of the item.</td></tr>
<tr><td class="topAlign"><tt>QQuickItem::BottomRight</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">The bottom-right corner of the item.</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#transformOrigin-prop">transformOrigin</a>() and <a href="qquickitem.html#transformOrigin-prop">setTransformOrigin</a>().</p>
<!-- @@@TransformOrigin -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$activeFocus-prop$$$hasActiveFocus -->
<h3 class="fn"><a name="activeFocus-prop"></a><span class="name">activeFocus</span> : const <span class="type">bool</span></h3>
<p>This read-only property indicates whether the item has active focus.</p>
<p>If activeFocus is true, either this item is the one that currently receives keyboard input, or it is a <a href="qml-qtquick-focusscope.html">FocusScope</a> ancestor of the item that currently receives keyboard input.</p>
<p>Usually, activeFocus is gained by setting <a href="qquickitem.html#focus-prop">focus</a> on an item and its enclosing <a href="qml-qtquick-focusscope.html">FocusScope</a> objects. In the following example, the <tt>input</tt> and <tt>focusScope</tt> objects will have active focus, while the root rectangle object will not.</p>
<pre class="qml">import QtQuick 2.0

<span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
    <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>

    <span class="type"><a href="qml-qtquick-focusscope.html">FocusScope</a></span> {
        <span class="name">focus</span>: <span class="number">true</span>

        <span class="type"><a href="qml-qtquick-textinput.html">TextInput</a></span> {
            <span class="name">id</span>: <span class="name">input</span>
            <span class="name">focus</span>: <span class="number">true</span>
        }
    }
}</pre>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasActiveFocus</b></span>() const</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#focus-prop">focus</a> and <a href="qtquick-input-focus.html">Keyboard Focus in Qt Quick</a>.</p>
<!-- @@@activeFocus -->
<!-- $$$activeFocusOnTab-prop$$$activeFocusOnTab$$$setActiveFocusOnTabbool -->
<h3 class="fn"><a name="activeFocusOnTab-prop"></a><span class="name">activeFocusOnTab</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item wants to be in tab focus chain. By default this is set to false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>activeFocusOnTab</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setActiveFocusOnTab</b></span>(bool)</td></tr>
</table>
<!-- @@@activeFocusOnTab -->
<!-- $$$antialiasing-prop$$$antialiasing$$$setAntialiasingbool -->
<h3 class="fn"><a name="antialiasing-prop"></a><span class="name">antialiasing</span> : <span class="type">bool</span></h3>
<p>This property specifies whether the item is antialiased or not.</p>
<p>Primarily used in Rectangle and image based elements to decide if the item should use antialiasing or not. Items with antialiasing enabled require more memory and are potentially slower to render.</p>
<p>The default is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>antialiasing</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAntialiasing</b></span>(bool)</td></tr>
</table>
<!-- @@@antialiasing -->
<!-- $$$baselineOffset-prop$$$baselineOffset$$$setBaselineOffsetqreal -->
<h3 class="fn"><a name="baselineOffset-prop"></a><span class="name">baselineOffset</span> : <span class="type">qreal</span></h3>
<p>Specifies the position of the item's baseline in local coordinates.</p>
<p>The baseline of a <a href="qml-qtquick-text.html">Text</a> item is the imaginary line on which the text sits. Controls containing text usually set their baseline to the baseline of their text.</p>
<p>For non-text items, a default baseline offset of 0 is used.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>baselineOffset</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaselineOffset</b></span>(qreal)</td></tr>
</table>
<!-- @@@baselineOffset -->
<!-- $$$childrenRect-prop$$$childrenRect -->
<h3 class="fn"><a name="childrenRect-prop"></a><span class="name">childrenRect</span> : const <span class="type">QRectF</span></h3>
<p>This property holds the collective position and size of the item's children.</p>
<p>This property is useful if you need to access the collective geometry of an item's children in order to correctly size the item.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>childrenRect</b></span>()</td></tr>
</table>
<!-- @@@childrenRect -->
<!-- $$$clip-prop$$$clip$$$setClipbool -->
<h3 class="fn"><a name="clip-prop"></a><span class="name">clip</span> : <span class="type">bool</span></h3>
<p>This property holds whether clipping is enabled. The default clip value is <tt>false</tt>.</p>
<p>If clipping is enabled, an item will clip its own painting, as well as the painting of its children, to its bounding rectangle. If you set clipping during an item's paint operation, remember to re-set it to prevent clipping the rest of your scene.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>clip</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClip</b></span>(bool)</td></tr>
</table>
<!-- @@@clip -->
<!-- $$$enabled-prop$$$isEnabled$$$setEnabledbool -->
<h3 class="fn"><a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item receives mouse and keyboard events. By default this is true.</p>
<p>Setting this property directly affects the <tt>enabled</tt> value of child items. When set to <tt>false</tt>, the <tt>enabled</tt> values of all child items also become <tt>false</tt>. When set to <tt>true</tt>, the <tt>enabled</tt> values of child items are returned to <tt>true</tt>, unless they have explicitly been set to <tt>false</tt>.</p>
<p>Setting this property to <tt>false</tt> automatically causes <a href="qquickitem.html#activeFocus-prop">activeFocus</a> to be set to <tt>false</tt>, and this item will longer receive keyboard events.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span>(bool)</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#visible-prop">visible</a>.</p>
<!-- @@@enabled -->
<!-- $$$focus-prop$$$hasFocus$$$setFocusbool$$$setFocusboolQt::FocusReason -->
<h3 class="fn"><a name="focus-prop"></a><span class="name">focus</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item has focus within the enclosing <a href="qml-qtquick-focusscope.html">FocusScope</a>. If true, this item will gain active focus when the enclosing <a href="qml-qtquick-focusscope.html">FocusScope</a> gains active focus.</p>
<p>In the following example, <tt>input</tt> will be given active focus when <tt>scope</tt> gains active focus:</p>
<pre class="qml">import QtQuick 2.0

<span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
    <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>

    <span class="type"><a href="qml-qtquick-focusscope.html">FocusScope</a></span> {
        <span class="name">id</span>: <span class="name">scope</span>

        <span class="type"><a href="qml-qtquick-textinput.html">TextInput</a></span> {
            <span class="name">id</span>: <span class="name">input</span>
            <span class="name">focus</span>: <span class="number">true</span>
        }
    }
}</pre>
<p>For the purposes of this property, the scene as a whole is assumed to act like a focus scope. On a practical level, that means the following QML will give active focus to <tt>input</tt> on startup.</p>
<pre class="qml"><span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
    <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>

    <span class="type"><a href="qml-qtquick-textinput.html">TextInput</a></span> {
          <span class="name">id</span>: <span class="name">input</span>
          <span class="name">focus</span>: <span class="number">true</span>
    }
}</pre>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasFocus</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFocus</b></span>(bool)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFocus</b></span>(bool<i> focus</i>, Qt::FocusReason<i> reason</i>)</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#activeFocus-prop">activeFocus</a> and <a href="qtquick-input-focus.html">Keyboard Focus in Qt Quick</a>.</p>
<!-- @@@focus -->
<!-- $$$height-prop$$$height$$$setHeightqreal$$$resetHeight -->
<h3 class="fn"><a name="height-prop"></a><span class="name">height</span> : <span class="type">qreal</span></h3>
<p>This property holds the height of this item.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>height</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHeight</b></span>(qreal)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>resetHeight</b></span>()</td></tr>
</table>
<!-- @@@height -->
<!-- $$$implicitHeight-prop$$$implicitHeight$$$setImplicitHeightqreal -->
<h3 class="fn"><a name="implicitHeight-prop"></a><span class="name">implicitHeight</span> : <span class="type">qreal</span></h3>
<p>Defines the natural width or height of the Item if no <a href="qquickitem.html#width-prop">width</a> or <a href="qquickitem.html#height-prop">height</a> is specified.</p>
<p>The default implicit size for most items is 0x0, however some items have an inherent implicit size which cannot be overridden, e.g&#x2e; Image, Text.</p>
<p>Setting the implicit size is useful for defining components that have a preferred size based on their content, for example:</p>
<pre class="qml"><span class="comment">// Label.qml</span>
import QtQuick 2.0

<span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    property <span class="type">alias</span> <span class="name">icon</span>: <span class="name">image</span>.<span class="name">source</span>
    property <span class="type">alias</span> <span class="name">label</span>: <span class="name">text</span>.<span class="name">text</span>
    <span class="name">implicitWidth</span>: <span class="name">text</span>.<span class="name">implicitWidth</span> <span class="operator">+</span> <span class="name">image</span>.<span class="name">implicitWidth</span>
    <span class="name">implicitHeight</span>: <span class="name">Math</span>.<span class="name">max</span>(<span class="name">text</span>.<span class="name">implicitHeight</span>, <span class="name">image</span>.<span class="name">implicitHeight</span>)
    <span class="type"><a href="qml-qtquick-image.html">Image</a></span> { <span class="name">id</span>: <span class="name">image</span> }
    <span class="type"><a href="qml-qtquick-text.html">Text</a></span> {
        <span class="name">id</span>: <span class="name">text</span>
        <span class="name">wrapMode</span>: <span class="name">Text</span>.<span class="name">Wrap</span>
        <span class="name">anchors</span>.left: <span class="name">image</span>.<span class="name">right</span>; <span class="name">anchors</span>.right: <span class="name">parent</span>.<span class="name">right</span>
        <span class="name">anchors</span>.verticalCenter: <span class="name">parent</span>.<span class="name">verticalCenter</span>
    }
}</pre>
<p><b>Note</b>: using <a href="qquickitem.html#implicitWidth-prop">implicitWidth</a> of Text or <a href="qml-qtquick-textedit.html">TextEdit</a> and setting the width explicitly incurs a performance penalty as the text must be laid out twice.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>implicitHeight</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setImplicitHeight</b></span>(qreal)</td></tr>
</table>
<!-- @@@implicitHeight -->
<!-- $$$implicitWidth-prop$$$implicitWidth$$$setImplicitWidthqreal -->
<h3 class="fn"><a name="implicitWidth-prop"></a><span class="name">implicitWidth</span> : <span class="type">qreal</span></h3>
<p>Defines the natural width or height of the Item if no <a href="qquickitem.html#width-prop">width</a> or <a href="qquickitem.html#height-prop">height</a> is specified.</p>
<p>The default implicit size for most items is 0x0, however some items have an inherent implicit size which cannot be overridden, e.g&#x2e; Image, Text.</p>
<p>Setting the implicit size is useful for defining components that have a preferred size based on their content, for example:</p>
<pre class="qml"><span class="comment">// Label.qml</span>
import QtQuick 2.0

<span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    property <span class="type">alias</span> <span class="name">icon</span>: <span class="name">image</span>.<span class="name">source</span>
    property <span class="type">alias</span> <span class="name">label</span>: <span class="name">text</span>.<span class="name">text</span>
    <span class="name">implicitWidth</span>: <span class="name">text</span>.<span class="name">implicitWidth</span> <span class="operator">+</span> <span class="name">image</span>.<span class="name">implicitWidth</span>
    <span class="name">implicitHeight</span>: <span class="name">Math</span>.<span class="name">max</span>(<span class="name">text</span>.<span class="name">implicitHeight</span>, <span class="name">image</span>.<span class="name">implicitHeight</span>)
    <span class="type"><a href="qml-qtquick-image.html">Image</a></span> { <span class="name">id</span>: <span class="name">image</span> }
    <span class="type"><a href="qml-qtquick-text.html">Text</a></span> {
        <span class="name">id</span>: <span class="name">text</span>
        <span class="name">wrapMode</span>: <span class="name">Text</span>.<span class="name">Wrap</span>
        <span class="name">anchors</span>.left: <span class="name">image</span>.<span class="name">right</span>; <span class="name">anchors</span>.right: <span class="name">parent</span>.<span class="name">right</span>
        <span class="name">anchors</span>.verticalCenter: <span class="name">parent</span>.<span class="name">verticalCenter</span>
    }
}</pre>
<p><b>Note</b>: using implicitWidth of Text or <a href="qml-qtquick-textedit.html">TextEdit</a> and setting the width explicitly incurs a performance penalty as the text must be laid out twice.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>implicitWidth</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setImplicitWidth</b></span>(qreal)</td></tr>
</table>
<!-- @@@implicitWidth -->
<!-- $$$opacity-prop$$$opacity$$$setOpacityqreal -->
<h3 class="fn"><a name="opacity-prop"></a><span class="name">opacity</span> : <span class="type">qreal</span></h3>
<p>This property holds the opacity of the item. Opacity is specified as a number between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0&#x2e;</p>
<p>When this property is set, the specified opacity is also applied individually to child items. This may have an unintended effect in some circumstances. For example in the second set of rectangles below, the red rectangle has specified an opacity of 0.5, which affects the opacity of its blue child rectangle even though the child has not specified an opacity.</p>
<table class="generic">
 <tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-item_opacity1.png" alt="" /></p></td><td ><pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
            <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
            <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        }
    }
}</pre>
</td></tr>
<tr valign="top" class="even"><td ><p class="centerAlign"><img src="images/declarative-item_opacity2.png" alt="" /></p></td><td ><pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">opacity</span>: <span class="number">0.5</span>
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
            <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
            <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        }
    }
}</pre>
</td></tr>
</table>
<p>Changing an item's opacity does not affect whether the item receives user input events. (In contrast, setting <a href="qquickitem.html#visible-prop">visible</a> property to <tt>false</tt> stops mouse events, and setting the <a href="qquickitem.html#enabled-prop">enabled</a> property to <tt>false</tt> stops mouse and keyboard events, and also removes active focus from the item.)</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>opacity</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOpacity</b></span>(qreal)</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#visible-prop">visible</a>.</p>
<!-- @@@opacity -->
<!-- $$$parent-prop$$$parentItem$$$setParentItemQQuickItem* -->
<h3 class="fn"><a name="parent-prop"></a><span class="name">parent</span> : <span class="type">QQuickItem</span> *</h3>
<p>This property holds the visual parent of the item.</p>
<p><b>Note: </b>The concept of the <i>visual parent</i> differs from that of the <i>QObject parent</i>. An item's visual parent may not necessarily be the same as its object parent. See <a href="qtquick-visualcanvas-visualparent.html">Concepts - Visual Parent in Qt Quick</a> for more details.</p><p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QQuickItem * </td><td class="memItemRight bottomAlign"><span class="name"><b>parentItem</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParentItem</b></span>(QQuickItem *<i> parent</i>)</td></tr>
</table>
<!-- @@@parent -->
<!-- $$$rotation-prop$$$rotation$$$setRotationqreal -->
<h3 class="fn"><a name="rotation-prop"></a><span class="name">rotation</span> : <span class="type">qreal</span></h3>
<p>This property holds the rotation of the item in degrees clockwise around its <a href="qquickitem.html#transformOrigin-prop">transformOrigin</a>.</p>
<p>The default value is 0 degrees (that is, no rotation).</p>
<table class="generic">
 <tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-rotation.png" alt="" /></p></td><td ><pre class="qml"><span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
    <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
    <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">x</span>: <span class="number">25</span>; <span class="name">y</span>: <span class="number">25</span>; <span class="name">width</span>: <span class="number">50</span>; <span class="name">height</span>: <span class="number">50</span>
        <span class="name">rotation</span>: <span class="number">30</span>
    }
}</pre>
</td></tr>
</table>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>rotation</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRotation</b></span>(qreal)</td></tr>
</table>
<p><b>See also </b>transform and <a href="qml-qtquick-rotation.html">Rotation</a>.</p>
<!-- @@@rotation -->
<!-- $$$scale-prop$$$scale$$$setScaleqreal -->
<h3 class="fn"><a name="scale-prop"></a><span class="name">scale</span> : <span class="type">qreal</span></h3>
<p>This property holds the scale factor for this item.</p>
<p>A scale of less than 1.0 causes the item to be rendered at a smaller size, and a scale greater than 1.0 renders the item at a larger size. A negative scale causes the item to be mirrored when rendered.</p>
<p>The default value is 1.0&#x2e;</p>
<p>Scaling is applied from the <a href="qquickitem.html#transformOrigin-prop">transformOrigin</a>.</p>
<table class="generic">
 <tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-scale.png" alt="" /></p></td><td ><pre class="qml">import QtQuick 2.0

<span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
    <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
    <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>

    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;green&quot;</span>
        <span class="name">width</span>: <span class="number">25</span>; <span class="name">height</span>: <span class="number">25</span>
    }

    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">x</span>: <span class="number">25</span>; <span class="name">y</span>: <span class="number">25</span>; <span class="name">width</span>: <span class="number">50</span>; <span class="name">height</span>: <span class="number">50</span>
        <span class="name">scale</span>: <span class="number">1.4</span>
    }
}</pre>
</td></tr>
</table>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>scale</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScale</b></span>(qreal)</td></tr>
</table>
<p><b>See also </b>transform and <a href="qml-qtquick-scale.html">Scale</a>.</p>
<!-- @@@scale -->
<!-- $$$smooth-prop$$$smooth$$$setSmoothbool -->
<h3 class="fn"><a name="smooth-prop"></a><span class="name">smooth</span> : <span class="type">bool</span></h3>
<p>This property specifies whether the item is smoothed or not.</p>
<p>Primarily used in image based items to decide if the item should use smooth sampling or not. Smooth sampling is performed using linear interpolation, while non-smooth is performed using nearest neighbor.</p>
<p>In Qt Quick 2.0, this property has minimal impact on performance.</p>
<p>By default is true.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>smooth</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSmooth</b></span>(bool)</td></tr>
</table>
<!-- @@@smooth -->
<!-- $$$state-prop$$$state$$$setStateconstQString& -->
<h3 class="fn"><a name="state-prop"></a><span class="name">state</span> : <span class="type">QString</span></h3>
<p>This property holds the name of the current state of the item.</p>
<p>If the item is in its default state, that is, no explicit state has been set, then this property holds an empty string. Likewise, you can return an item to its default state by setting this property to an empty string.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>state</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setState</b></span>(const QString &amp;)</td></tr>
</table>
<p><b>See also </b><a href="qtquick-statesanimations-states.html">Qt Quick States</a>.</p>
<!-- @@@state -->
<!-- $$$transformOrigin-prop$$$transformOrigin$$$setTransformOriginTransformOrigin -->
<h3 class="fn"><a name="transformOrigin-prop"></a><span class="name">transformOrigin</span> : <span class="type"><a href="qquickitem.html#TransformOrigin-enum">TransformOrigin</a></span></h3>
<p>This property holds the origin point around which scale and rotation transform.</p>
<p>Nine transform origins are available, as shown in the image below. The default transform origin is <tt>Item.Center</tt>.</p>
<p class="centerAlign"><img src="images/declarative-transformorigin.png" alt="" /></p><p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> TransformOrigin </td><td class="memItemRight bottomAlign"><span class="name"><b>transformOrigin</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTransformOrigin</b></span>(TransformOrigin)</td></tr>
</table>
<!-- @@@transformOrigin -->
<!-- $$$visible-prop$$$isVisible$$$setVisiblebool -->
<h3 class="fn"><a name="visible-prop"></a><span class="name">visible</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item is visible. By default this is true.</p>
<p>Setting this property directly affects the <tt>visible</tt> value of child items. When set to <tt>false</tt>, the <tt>visible</tt> values of all child items also become <tt>false</tt>. When set to <tt>true</tt>, the <tt>visible</tt> values of child items are returned to <tt>true</tt>, unless they have explicitly been set to <tt>false</tt>.</p>
<p>(Because of this flow-on behavior, using the <tt>visible</tt> property may not have the intended effect if a property binding should only respond to explicit property changes. In such cases it may be better to use the <a href="qquickitem.html#opacity-prop">opacity</a> property instead.)</p>
<p>If this property is set to <tt>false</tt>, the item will no longer receive mouse events, but will continue to receive key events and will retain the keyboard <a href="qquickitem.html#focus-prop">focus</a> if it has been set. (In contrast, setting the <a href="qquickitem.html#enabled-prop">enabled</a> property to <tt>false</tt> stops both mouse and keyboard events, and also removes focus from the item.)</p>
<p><b>Note: </b>This property's value is only affected by changes to this property or the parent's <tt>visible</tt> property. It does not change, for example, if this item moves off-screen, or if the <a href="qquickitem.html#opacity-prop">opacity</a> changes to 0.</p><p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isVisible</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setVisible</b></span>(bool)</td></tr>
</table>
<p><b>See also </b><a href="qquickitem.html#opacity-prop">opacity</a> and <a href="qquickitem.html#enabled-prop">enabled</a>.</p>
<!-- @@@visible -->
<!-- $$$width-prop$$$width$$$setWidthqreal$$$resetWidth -->
<h3 class="fn"><a name="width-prop"></a><span class="name">width</span> : <span class="type">qreal</span></h3>
<p>This property holds the width of this item.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>width</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWidth</b></span>(qreal)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>resetWidth</b></span>()</td></tr>
</table>
<!-- @@@width -->
<!-- $$$x-prop$$$x$$$setXqreal -->
<h3 class="fn"><a name="x-prop"></a><span class="name">x</span> : <span class="type">qreal</span></h3>
<p>Defines the item's x position relative to its parent.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>x</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setX</b></span>(qreal)</td></tr>
</table>
<!-- @@@x -->
<!-- $$$y-prop$$$y$$$setYqreal -->
<h3 class="fn"><a name="y-prop"></a><span class="name">y</span> : <span class="type">qreal</span></h3>
<p>Defines the item's y position relative to its parent.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>y</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setY</b></span>(qreal)</td></tr>
</table>
<!-- @@@y -->
<!-- $$$z-prop$$$z$$$setZqreal -->
<h3 class="fn"><a name="z-prop"></a><span class="name">z</span> : <span class="type">qreal</span></h3>
<p>Sets the stacking order of sibling items. By default the stacking order is 0.</p>
<p>Items with a higher stacking value are drawn on top of siblings with a lower stacking order. Items with the same stacking value are drawn bottom up in the order they appear. Items with a negative stacking value are drawn under their parent's content.</p>
<p>The following example shows the various effects of stacking order.</p>
<table class="generic">
 <tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-item_stacking1.png" alt="" /></p></td><td >Same <tt>z</tt> - later children above earlier children:<pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
    }
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
        <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
    }
}</pre>
</td></tr>
<tr valign="top" class="even"><td ><p class="centerAlign"><img src="images/declarative-item_stacking2.png" alt="" /></p></td><td >Higher <tt>z</tt> on top:<pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">z</span>: <span class="number">1</span>
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
    }
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
        <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
    }
}</pre>
</td></tr>
<tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-item_stacking3.png" alt="" /></p></td><td >Same <tt>z</tt> - children above parents:<pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
            <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
            <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        }
    }
}</pre>
</td></tr>
<tr valign="top" class="even"><td ><p class="centerAlign"><img src="images/declarative-item_stacking4.png" alt="" /></p></td><td >Lower <tt>z</tt> below:<pre class="qml"><span class="type"><a href="qml-qtquick-item.html">Item</a></span> {
    <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
        <span class="name">color</span>: <span class="string">&quot;red&quot;</span>
        <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        <span class="type"><a href="qml-qtquick-rectangle.html">Rectangle</a></span> {
            <span class="name">z</span>: -<span class="number">1</span>
            <span class="name">color</span>: <span class="string">&quot;blue&quot;</span>
            <span class="name">x</span>: <span class="number">50</span>; <span class="name">y</span>: <span class="number">50</span>; <span class="name">width</span>: <span class="number">100</span>; <span class="name">height</span>: <span class="number">100</span>
        }
    }
}</pre>
</td></tr>
</table>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>z</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZ</b></span>(qreal)</td></tr>
</table>
<!-- @@@z -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QQuickItem[overload1]$$$QQuickItemQQuickItem* -->
<h3 class="fn"><a name="QQuickItem"></a>QQuickItem::<span class="name">QQuickItem</span>(<span class="type">QQuickItem</span> *<i> parent</i> = 0)</h3>
<p>Constructs a <a href="qquickitem.html">QQuickItem</a> with the given <i>parent</i>.</p>
<!-- @@@QQuickItem -->
<!-- $$$~QQuickItem[overload1]$$$~QQuickItem -->
<h3 class="fn"><a name="dtor.QQuickItem"></a>QQuickItem::<span class="name">~QQuickItem</span>()<tt> [virtual]</tt></h3>
<p>Destroys the <a href="qquickitem.html">QQuickItem</a>.</p>
<!-- @@@~QQuickItem -->
<!-- $$$acceptHoverEvents[overload1]$$$acceptHoverEvents -->
<h3 class="fn"><a name="acceptHoverEvents"></a><span class="type">bool</span> QQuickItem::<span class="name">acceptHoverEvents</span>() const</h3>
<p>Returns whether hover events are accepted by this item.</p>
<p>The default value is false.</p>
<p>If this is false, then the item will not receive any hover events through the <a href="qquickitem.html#hoverEnterEvent">hoverEnterEvent</a>(), <a href="qquickitem.html#hoverMoveEvent">hoverMoveEvent</a>() and <a href="qquickitem.html#hoverLeaveEvent">hoverLeaveEvent</a>() functions.</p>
<p><b>See also </b><a href="qquickitem.html#setAcceptHoverEvents">setAcceptHoverEvents</a>().</p>
<!-- @@@acceptHoverEvents -->
<!-- $$$acceptedMouseButtons[overload1]$$$acceptedMouseButtons -->
<h3 class="fn"><a name="acceptedMouseButtons"></a><span class="type">Qt::MouseButtons</span> QQuickItem::<span class="name">acceptedMouseButtons</span>() const</h3>
<p>Returns the mouse buttons accepted by this item.</p>
<p>The default value is Qt::NoButton; that is, no mouse buttons are accepted.</p>
<p>If an item does not accept the mouse button for a particular mouse event, the mouse event will not be delivered to the item and will be delivered to the next item in the item hierarchy instead.</p>
<p><b>See also </b><a href="qquickitem.html#setAcceptedMouseButtons">setAcceptedMouseButtons</a>().</p>
<!-- @@@acceptedMouseButtons -->
<!-- $$$childAt[overload1]$$$childAtqrealqreal -->
<h3 class="fn"><a name="childAt"></a><span class="type">QQuickItem</span> * QQuickItem::<span class="name">childAt</span>(<span class="type">qreal</span><i> x</i>, <span class="type">qreal</span><i> y</i>) const</h3>
<p>Returns the first visible child item found at point (<i>x</i>, <i>y</i>) within the coordinate system of this item.</p>
<p>Returns 0 if there is no such item.</p>
<!-- @@@childAt -->
<!-- $$$childItems[overload1]$$$childItems -->
<h3 class="fn"><a name="childItems"></a><span class="type">QList</span>&lt;<span class="type">QQuickItem</span> *&gt; QQuickItem::<span class="name">childItems</span>() const</h3>
<p>Returns the children of this item.</p>
<!-- @@@childItems -->
<!-- $$$childMouseEventFilter[overload1]$$$childMouseEventFilterQQuickItem*QEvent* -->
<h3 class="fn"><a name="childMouseEventFilter"></a><span class="type">bool</span> QQuickItem::<span class="name">childMouseEventFilter</span>(<span class="type">QQuickItem</span> *<i> item</i>, <span class="type">QEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>Reimplement this method to filter the mouse events that are received by this item's children.</p>
<p>This method will only be called if <a href="qquickitem.html#filtersChildMouseEvents">filtersChildMouseEvents</a>() is true.</p>
<p>Return true if the specified <i>event</i> should not be passed onto the specified child <i>item</i>, and false otherwise.</p>
<p><b>See also </b><a href="qquickitem.html#setFiltersChildMouseEvents">setFiltersChildMouseEvents</a>().</p>
<!-- @@@childMouseEventFilter -->
<!-- $$$classBegin[overload1]$$$classBegin -->
<h3 class="fn"><a name="classBegin"></a><span class="type">void</span> QQuickItem::<span class="name">classBegin</span>()<tt> [virtual protected]</tt></h3>
<p>Derived classes should call the base class method before adding their own action to perform at classBegin.</p>
<!-- @@@classBegin -->
<!-- $$$componentComplete[overload1]$$$componentComplete -->
<h3 class="fn"><a name="componentComplete"></a><span class="type">void</span> QQuickItem::<span class="name">componentComplete</span>()<tt> [virtual protected]</tt></h3>
<p>Derived classes should call the base class method before adding their own actions to perform at componentComplete.</p>
<!-- @@@componentComplete -->
<!-- $$$contains[overload1]$$$containsconstQPointF& -->
<h3 class="fn"><a name="contains"></a><span class="type">bool</span> QQuickItem::<span class="name">contains</span>(const <span class="type">QPointF</span> &amp;<i> point</i>) const<tt> [virtual]</tt></h3>
<p>Returns true if this item contains <i>point</i>, which is in local coordinates; returns false otherwise.</p>
<p>This function can be overwritten in order to handle point collisions in items with custom shapes. The default implementation checks if the point is inside the item's bounding rect.</p>
<p>Note that this method is generally used to check whether the item is under the mouse cursor, and for that reason, the implementation of this function should be as light-weight as possible.</p>
<!-- @@@contains -->
<!-- $$$cursor[overload1]$$$cursor -->
<h3 class="fn"><a name="cursor"></a><span class="type">QCursor</span> QQuickItem::<span class="name">cursor</span>() const</h3>
<p>Returns the cursor shape for this item.</p>
<p>The mouse cursor will assume this shape when it is over this item, unless an override cursor is set. See the list of predefined cursor objects for a range of useful shapes.</p>
<p>If no cursor shape has been set this returns a cursor with the Qt::ArrowCursor shape, however another cursor shape may be displayed if an overlapping item has a valid cursor.</p>
<p><b>See also </b><a href="qquickitem.html#setCursor">setCursor</a>() and <a href="qquickitem.html#unsetCursor">unsetCursor</a>().</p>
<!-- @@@cursor -->
<!-- $$$dragEnterEvent[overload1]$$$dragEnterEventQDragEnterEvent* -->
<h3 class="fn"><a name="dragEnterEvent"></a><span class="type">void</span> QQuickItem::<span class="name">dragEnterEvent</span>(<span class="type">QDragEnterEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive drag-enter events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Drag and drop events are only provided if the <a href="qquickitem.html#Flag-enum">ItemAcceptsDrops</a> flag has been set for this item.</p>
<p><b>See also </b><a href="qml-qtquick-drag.html">Drag</a> and Drag and Drop.</p>
<!-- @@@dragEnterEvent -->
<!-- $$$dragLeaveEvent[overload1]$$$dragLeaveEventQDragLeaveEvent* -->
<h3 class="fn"><a name="dragLeaveEvent"></a><span class="type">void</span> QQuickItem::<span class="name">dragLeaveEvent</span>(<span class="type">QDragLeaveEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive drag-leave events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Drag and drop events are only provided if the <a href="qquickitem.html#Flag-enum">ItemAcceptsDrops</a> flag has been set for this item.</p>
<p><b>See also </b><a href="qml-qtquick-drag.html">Drag</a> and Drag and Drop.</p>
<!-- @@@dragLeaveEvent -->
<!-- $$$dragMoveEvent[overload1]$$$dragMoveEventQDragMoveEvent* -->
<h3 class="fn"><a name="dragMoveEvent"></a><span class="type">void</span> QQuickItem::<span class="name">dragMoveEvent</span>(<span class="type">QDragMoveEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive drag-move events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Drag and drop events are only provided if the <a href="qquickitem.html#Flag-enum">ItemAcceptsDrops</a> flag has been set for this item.</p>
<p><b>See also </b><a href="qml-qtquick-drag.html">Drag</a> and Drag and Drop.</p>
<!-- @@@dragMoveEvent -->
<!-- $$$dropEvent[overload1]$$$dropEventQDropEvent* -->
<h3 class="fn"><a name="dropEvent"></a><span class="type">void</span> QQuickItem::<span class="name">dropEvent</span>(<span class="type">QDropEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive drop events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Drag and drop events are only provided if the <a href="qquickitem.html#Flag-enum">ItemAcceptsDrops</a> flag has been set for this item.</p>
<p><b>See also </b><a href="qml-qtquick-drag.html">Drag</a> and Drag and Drop.</p>
<!-- @@@dropEvent -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QQuickItem::<span class="name">event</span>(<span class="type">QEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@event -->
<!-- $$$filtersChildMouseEvents[overload1]$$$filtersChildMouseEvents -->
<h3 class="fn"><a name="filtersChildMouseEvents"></a><span class="type">bool</span> QQuickItem::<span class="name">filtersChildMouseEvents</span>() const</h3>
<p>Returns whether mouse events of this item's children should be filtered through this item.</p>
<p><b>See also </b><a href="qquickitem.html#setFiltersChildMouseEvents">setFiltersChildMouseEvents</a>() and <a href="qquickitem.html#childMouseEventFilter">childMouseEventFilter</a>().</p>
<!-- @@@filtersChildMouseEvents -->
<!-- $$$flags[overload1]$$$flags -->
<h3 class="fn"><a name="flags"></a><span class="type"><a href="qquickitem.html#Flag-enum">Flags</a></span> QQuickItem::<span class="name">flags</span>() const</h3>
<p>Returns the item flags for this item.</p>
<p><b>See also </b><a href="qquickitem.html#setFlags">setFlags</a>() and <a href="qquickitem.html#setFlag">setFlag</a>().</p>
<!-- @@@flags -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> QQuickItem::<span class="name">focusInEvent</span>(<span class="type">QFocusEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive focus-in events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@focusInEvent -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn"><a name="focusOutEvent"></a><span class="type">void</span> QQuickItem::<span class="name">focusOutEvent</span>(<span class="type">QFocusEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive focus-out events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@focusOutEvent -->
<!-- $$$forceActiveFocus[overload1]$$$forceActiveFocus -->
<h3 class="fn"><a name="forceActiveFocus"></a><span class="type">void</span> QQuickItem::<span class="name">forceActiveFocus</span>()</h3>
<!-- @@@forceActiveFocus -->
<!-- $$$forceActiveFocus$$$forceActiveFocusQt::FocusReason -->
<h3 class="fn"><a name="forceActiveFocus-2"></a><span class="type">void</span> QQuickItem::<span class="name">forceActiveFocus</span>(<span class="type">Qt::FocusReason</span><i> reason</i>)</h3>
<!-- @@@forceActiveFocus -->
<!-- $$$geometryChanged[overload1]$$$geometryChangedconstQRectF&constQRectF& -->
<h3 class="fn"><a name="geometryChanged"></a><span class="type">void</span> QQuickItem::<span class="name">geometryChanged</span>(const <span class="type">QRectF</span> &amp;<i> newGeometry</i>, const <span class="type">QRectF</span> &amp;<i> oldGeometry</i>)<tt> [virtual protected]</tt></h3>
<p>This function is called to handle this item's changes in geometry from <i>oldGeometry</i> to <i>newGeometry</i>. If the two geometries are the same, it doesn't do anything.</p>
<p>Derived classes must call the base class method within their implementation.</p>
<!-- @@@geometryChanged -->
<!-- $$$grabMouse[overload1]$$$grabMouse -->
<h3 class="fn"><a name="grabMouse"></a><span class="type">void</span> QQuickItem::<span class="name">grabMouse</span>()</h3>
<p>Grabs the mouse input.</p>
<p>This item will receive all mouse events until <a href="qquickitem.html#ungrabMouse">ungrabMouse</a>() is called.</p>
<p><b>Warning:</b> This function should be used with caution.</p>
<!-- @@@grabMouse -->
<!-- $$$grabTouchPoints[overload1]$$$grabTouchPointsconstQVector<int>& -->
<h3 class="fn"><a name="grabTouchPoints"></a><span class="type">void</span> QQuickItem::<span class="name">grabTouchPoints</span>(const <span class="type">QVector</span>&lt;<span class="type">int</span>&gt; &amp;<i> ids</i>)</h3>
<p>Grabs the touch points specified by <i>ids</i>.</p>
<p>These touch points will be owned by the item until they are released. Alternatively, the grab can be stolen by a filtering item like Flickable. Use <a href="qquickitem.html#setKeepTouchGrab">setKeepTouchGrab</a>() to prevent the grab from being stolen.</p>
<p><b>See also </b><a href="qquickitem.html#ungrabTouchPoints">ungrabTouchPoints</a>() and <a href="qquickitem.html#setKeepTouchGrab">setKeepTouchGrab</a>().</p>
<!-- @@@grabTouchPoints -->
<!-- $$$heightValid[overload1]$$$heightValid -->
<h3 class="fn"><a name="heightValid"></a><span class="type">bool</span> QQuickItem::<span class="name">heightValid</span>() const<tt> [protected]</tt></h3>
<p>Returns whether the height property has been set explicitly.</p>
<!-- @@@heightValid -->
<!-- $$$hoverEnterEvent[overload1]$$$hoverEnterEventQHoverEvent* -->
<h3 class="fn"><a name="hoverEnterEvent"></a><span class="type">void</span> QQuickItem::<span class="name">hoverEnterEvent</span>(<span class="type">QHoverEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive hover-enter events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Hover events are only provided if <a href="qquickitem.html#acceptHoverEvents">acceptHoverEvents</a>() is true.</p>
<!-- @@@hoverEnterEvent -->
<!-- $$$hoverLeaveEvent[overload1]$$$hoverLeaveEventQHoverEvent* -->
<h3 class="fn"><a name="hoverLeaveEvent"></a><span class="type">void</span> QQuickItem::<span class="name">hoverLeaveEvent</span>(<span class="type">QHoverEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive hover-leave events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Hover events are only provided if <a href="qquickitem.html#acceptHoverEvents">acceptHoverEvents</a>() is true.</p>
<!-- @@@hoverLeaveEvent -->
<!-- $$$hoverMoveEvent[overload1]$$$hoverMoveEventQHoverEvent* -->
<h3 class="fn"><a name="hoverMoveEvent"></a><span class="type">void</span> QQuickItem::<span class="name">hoverMoveEvent</span>(<span class="type">QHoverEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive hover-move events for an item. The event information is provided by the <i>event</i> parameter.</p>
<p>Hover events are only provided if <a href="qquickitem.html#acceptHoverEvents">acceptHoverEvents</a>() is true.</p>
<!-- @@@hoverMoveEvent -->
<!-- $$$inputMethodEvent[overload1]$$$inputMethodEventQInputMethodEvent* -->
<h3 class="fn"><a name="inputMethodEvent"></a><span class="type">void</span> QQuickItem::<span class="name">inputMethodEvent</span>(<span class="type">QInputMethodEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive input method events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@inputMethodEvent -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type">QVariant</span> QQuickItem::<span class="name">inputMethodQuery</span>(<span class="type">Qt::InputMethodQuery</span><i> query</i>) const<tt> [virtual]</tt></h3>
<p>This method is only relevant for input items.</p>
<p>If this item is an input item, this method should be reimplemented to return the relevant input method flags for the given <i>query</i>.</p>
<p><b>See also </b>QWidget::inputMethodQuery().</p>
<!-- @@@inputMethodQuery -->
<!-- $$$isComponentComplete[overload1]$$$isComponentComplete -->
<h3 class="fn"><a name="isComponentComplete"></a><span class="type">bool</span> QQuickItem::<span class="name">isComponentComplete</span>() const<tt> [protected]</tt></h3>
<p>Returns true if construction of the QML component is complete; otherwise returns false.</p>
<p>It is often desirable to delay some processing until the component is completed.</p>
<p><b>See also </b><a href="qquickitem.html#componentComplete">componentComplete</a>().</p>
<!-- @@@isComponentComplete -->
<!-- $$$isFocusScope[overload1]$$$isFocusScope -->
<h3 class="fn"><a name="isFocusScope"></a><span class="type">bool</span> QQuickItem::<span class="name">isFocusScope</span>() const</h3>
<p>Returns true if this item is a focus scope, and false otherwise.</p>
<!-- @@@isFocusScope -->
<!-- $$$isTextureProvider[overload1]$$$isTextureProvider -->
<h3 class="fn"><a name="isTextureProvider"></a><span class="type">bool</span> QQuickItem::<span class="name">isTextureProvider</span>() const<tt> [virtual]</tt></h3>
<p>Returns true if this item is a texture provider. The default implementation returns false.</p>
<p>This function can be called from any thread.</p>
<!-- @@@isTextureProvider -->
<!-- $$$itemChange[overload1]$$$itemChangeItemChangeconstItemChangeData& -->
<h3 class="fn"><a name="itemChange"></a><span class="type">void</span> QQuickItem::<span class="name">itemChange</span>(<span class="type"><a href="qquickitem.html#ItemChange-enum">ItemChange</a></span><i> change</i>, const <span class="type"><a href="qquickitem-itemchangedata.html">ItemChangeData</a></span> &amp;<i> value</i>)<tt> [virtual protected]</tt></h3>
<p>Called when <i>change</i> occurs for this item.</p>
<p><i>value</i> contains extra information relating to the change, when applicable.</p>
<p>If you re-implement this method in a subclass, be sure to call</p>
<pre class="cpp"><span class="type"><a href="qquickitem.html">QQuickItem</a></span><span class="operator">::</span>itemChange(change<span class="operator">,</span> value);</pre>
<p>typically at the end of your implementation, to ensure the <a href="qquickitem.html#windowChanged">windowChanged</a>() signal will be emitted.</p>
<!-- @@@itemChange -->
<!-- $$$keepMouseGrab[overload1]$$$keepMouseGrab -->
<h3 class="fn"><a name="keepMouseGrab"></a><span class="type">bool</span> QQuickItem::<span class="name">keepMouseGrab</span>() const</h3>
<p>Returns whether mouse input should exclusively remain with this item.</p>
<p><b>See also </b><a href="qquickitem.html#setKeepMouseGrab">setKeepMouseGrab</a>().</p>
<!-- @@@keepMouseGrab -->
<!-- $$$keepTouchGrab[overload1]$$$keepTouchGrab -->
<h3 class="fn"><a name="keepTouchGrab"></a><span class="type">bool</span> QQuickItem::<span class="name">keepTouchGrab</span>() const</h3>
<p>Returns whether the touch points grabbed by this item should exclusively remain with this item.</p>
<p><b>See also </b><a href="qquickitem.html#setKeepTouchGrab">setKeepTouchGrab</a>() and <a href="qquickitem.html#keepMouseGrab">keepMouseGrab</a>().</p>
<!-- @@@keepTouchGrab -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QQuickItem::<span class="name">keyPressEvent</span>(<span class="type">QKeyEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive key press events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@keyPressEvent -->
<!-- $$$keyReleaseEvent[overload1]$$$keyReleaseEventQKeyEvent* -->
<h3 class="fn"><a name="keyReleaseEvent"></a><span class="type">void</span> QQuickItem::<span class="name">keyReleaseEvent</span>(<span class="type">QKeyEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive key release events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@keyReleaseEvent -->
<!-- $$$mapFromItem[overload1]$$$mapFromItemconstQQuickItem*constQPointF& -->
<h3 class="fn"><a name="mapFromItem"></a><span class="type">QPointF</span> QQuickItem::<span class="name">mapFromItem</span>(const <span class="type">QQuickItem</span> *<i> item</i>, const <span class="type">QPointF</span> &amp;<i> point</i>) const</h3>
<p>Maps the given <i>point</i> in <i>item</i>'s coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.</p>
<p>If <i>item</i> is 0, this maps <i>point</i> from the coordinate system of the scene.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapFromItem -->
<!-- $$$mapFromScene[overload1]$$$mapFromSceneconstQPointF& -->
<h3 class="fn"><a name="mapFromScene"></a><span class="type">QPointF</span> QQuickItem::<span class="name">mapFromScene</span>(const <span class="type">QPointF</span> &amp;<i> point</i>) const</h3>
<p>Maps the given <i>point</i> in the scene's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapFromScene -->
<!-- $$$mapRectFromItem[overload1]$$$mapRectFromItemconstQQuickItem*constQRectF& -->
<h3 class="fn"><a name="mapRectFromItem"></a><span class="type">QRectF</span> QQuickItem::<span class="name">mapRectFromItem</span>(const <span class="type">QQuickItem</span> *<i> item</i>, const <span class="type">QRectF</span> &amp;<i> rect</i>) const</h3>
<p>Maps the given <i>rect</i> in <i>item</i>'s coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.</p>
<p>If <i>item</i> is 0, this maps <i>rect</i> from the coordinate system of the scene.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapRectFromItem -->
<!-- $$$mapRectFromScene[overload1]$$$mapRectFromSceneconstQRectF& -->
<h3 class="fn"><a name="mapRectFromScene"></a><span class="type">QRectF</span> QQuickItem::<span class="name">mapRectFromScene</span>(const <span class="type">QRectF</span> &amp;<i> rect</i>) const</h3>
<p>Maps the given <i>rect</i> in the scene's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapRectFromScene -->
<!-- $$$mapRectToItem[overload1]$$$mapRectToItemconstQQuickItem*constQRectF& -->
<h3 class="fn"><a name="mapRectToItem"></a><span class="type">QRectF</span> QQuickItem::<span class="name">mapRectToItem</span>(const <span class="type">QQuickItem</span> *<i> item</i>, const <span class="type">QRectF</span> &amp;<i> rect</i>) const</h3>
<p>Maps the given <i>rect</i> in this item's coordinate system to the equivalent rectangular area within <i>item</i>'s coordinate system, and returns the mapped rectangle value.</p>
<p>If <i>item</i> is 0, this maps <i>rect</i> to the coordinate system of the scene.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapRectToItem -->
<!-- $$$mapRectToScene[overload1]$$$mapRectToSceneconstQRectF& -->
<h3 class="fn"><a name="mapRectToScene"></a><span class="type">QRectF</span> QQuickItem::<span class="name">mapRectToScene</span>(const <span class="type">QRectF</span> &amp;<i> rect</i>) const</h3>
<p>Maps the given <i>rect</i> in this item's coordinate system to the equivalent rectangular area within the scene's coordinate system, and returns the mapped rectangle value.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapRectToScene -->
<!-- $$$mapToItem[overload1]$$$mapToItemconstQQuickItem*constQPointF& -->
<h3 class="fn"><a name="mapToItem"></a><span class="type">QPointF</span> QQuickItem::<span class="name">mapToItem</span>(const <span class="type">QQuickItem</span> *<i> item</i>, const <span class="type">QPointF</span> &amp;<i> point</i>) const</h3>
<p>Maps the given <i>point</i> in this item's coordinate system to the equivalent point within <i>item</i>'s coordinate system, and returns the mapped coordinate.</p>
<p>If <i>item</i> is 0, this maps <i>point</i> to the coordinate system of the scene.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapToItem -->
<!-- $$$mapToScene[overload1]$$$mapToSceneconstQPointF& -->
<h3 class="fn"><a name="mapToScene"></a><span class="type">QPointF</span> QQuickItem::<span class="name">mapToScene</span>(const <span class="type">QPointF</span> &amp;<i> point</i>) const</h3>
<p>Maps the given <i>point</i> in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-coordinates.html">Concepts - Visual Coordinates in Qt Quick</a>.</p>
<!-- @@@mapToScene -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQMouseEvent* -->
<h3 class="fn"><a name="mouseDoubleClickEvent"></a><span class="type">void</span> QQuickItem::<span class="name">mouseDoubleClickEvent</span>(<span class="type">QMouseEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive mouse double-click events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QQuickItem::<span class="name">mouseMoveEvent</span>(<span class="type">QMouseEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive mouse move events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QQuickItem::<span class="name">mousePressEvent</span>(<span class="type">QMouseEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive mouse press events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QQuickItem::<span class="name">mouseReleaseEvent</span>(<span class="type">QMouseEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive mouse release events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$mouseUngrabEvent[overload1]$$$mouseUngrabEvent -->
<h3 class="fn"><a name="mouseUngrabEvent"></a><span class="type">void</span> QQuickItem::<span class="name">mouseUngrabEvent</span>()<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has occurred on this item.</p>
<p><b>See also </b><a href="qquickitem.html#ungrabMouse">ungrabMouse</a>().</p>
<!-- @@@mouseUngrabEvent -->
<!-- $$$nextItemInFocusChain[overload1]$$$nextItemInFocusChainbool -->
<h3 class="fn"><a name="nextItemInFocusChain"></a><span class="type">QQuickItem</span> * QQuickItem::<span class="name">nextItemInFocusChain</span>(<span class="type">bool</span><i> forward</i> = true)</h3>
<p>Returns the item in the focus chain which is next to this item. If <i>forward</i> is <tt>true</tt>, or not supplied, it is the next item in the forwards direction. If <i>forward</i> is <tt>false</tt>, it is the next item in the backwards direction.</p>
<!-- @@@nextItemInFocusChain -->
<!-- $$$polish[overload1]$$$polish -->
<h3 class="fn"><a name="polish"></a><span class="type">void</span> QQuickItem::<span class="name">polish</span>()</h3>
<p>Schedules a polish event for this item.</p>
<p>When the scene graph processes the request, it will call <a href="qquickitem.html#updatePolish">updatePolish</a>() on this item.</p>
<!-- @@@polish -->
<!-- $$$releaseResources[overload1]$$$releaseResources -->
<h3 class="fn"><a name="releaseResources"></a><span class="type">void</span> QQuickItem::<span class="name">releaseResources</span>()<tt> [virtual protected]</tt></h3>
<p>This function is called when the item's scene graph resources are no longer needed. It allows items to free its resources, for instance textures, that are not owned by scene graph nodes. Note that scene graph nodes are managed by <a href="qquickwindow.html">QQuickWindow</a> and should not be deleted by this function. Scene graph resources are no longer needed when the parent is set to null and the item is not used by any <a href="qml-qtquick-shadereffect.html">ShaderEffect</a> or <a href="qml-qtquick-shadereffectsource.html">ShaderEffectSource</a>.</p>
<p>This function is called from the main thread. Therefore, resources used by the scene graph should not be deleted directly, but by calling QObject::deleteLater().</p>
<p><b>Note: </b>The item destructor still needs to free its scene graph resources if not already done.</p><!-- @@@releaseResources -->
<!-- $$$scopedFocusItem[overload1]$$$scopedFocusItem -->
<h3 class="fn"><a name="scopedFocusItem"></a><span class="type">QQuickItem</span> * QQuickItem::<span class="name">scopedFocusItem</span>() const</h3>
<p>If this item is a focus scope, this returns the item in its focus chain that currently has focus.</p>
<p>Returns 0 if this item is not a focus scope.</p>
<!-- @@@scopedFocusItem -->
<!-- $$$setAcceptHoverEvents[overload1]$$$setAcceptHoverEventsbool -->
<h3 class="fn"><a name="setAcceptHoverEvents"></a><span class="type">void</span> QQuickItem::<span class="name">setAcceptHoverEvents</span>(<span class="type">bool</span><i> enabled</i>)</h3>
<p>If <i>enabled</i> is true, this sets the item to accept hover events; otherwise, hover events are not accepted by this item.</p>
<p><b>See also </b><a href="qquickitem.html#acceptHoverEvents">acceptHoverEvents</a>().</p>
<!-- @@@setAcceptHoverEvents -->
<!-- $$$setAcceptedMouseButtons[overload1]$$$setAcceptedMouseButtonsQt::MouseButtons -->
<h3 class="fn"><a name="setAcceptedMouseButtons"></a><span class="type">void</span> QQuickItem::<span class="name">setAcceptedMouseButtons</span>(<span class="type">Qt::MouseButtons</span><i> buttons</i>)</h3>
<p>Sets the mouse buttons accepted by this item to <i>buttons</i>.</p>
<p><b>See also </b><a href="qquickitem.html#acceptedMouseButtons">acceptedMouseButtons</a>().</p>
<!-- @@@setAcceptedMouseButtons -->
<!-- $$$setCursor[overload1]$$$setCursorconstQCursor& -->
<h3 class="fn"><a name="setCursor"></a><span class="type">void</span> QQuickItem::<span class="name">setCursor</span>(const <span class="type">QCursor</span> &amp;<i> cursor</i>)</h3>
<p>Sets the <i>cursor</i> shape for this item.</p>
<p><b>See also </b><a href="qquickitem.html#cursor">cursor</a>() and <a href="qquickitem.html#unsetCursor">unsetCursor</a>().</p>
<!-- @@@setCursor -->
<!-- $$$setFiltersChildMouseEvents[overload1]$$$setFiltersChildMouseEventsbool -->
<h3 class="fn"><a name="setFiltersChildMouseEvents"></a><span class="type">void</span> QQuickItem::<span class="name">setFiltersChildMouseEvents</span>(<span class="type">bool</span><i> filter</i>)</h3>
<p>Sets whether mouse events of this item's children should be filtered through this item.</p>
<p>If <i>filter</i> is true, <a href="qquickitem.html#childMouseEventFilter">childMouseEventFilter</a>() will be called when a mouse event is triggered for a child item.</p>
<p><b>See also </b><a href="qquickitem.html#filtersChildMouseEvents">filtersChildMouseEvents</a>().</p>
<!-- @@@setFiltersChildMouseEvents -->
<!-- $$$setFlag[overload1]$$$setFlagFlagbool -->
<h3 class="fn"><a name="setFlag"></a><span class="type">void</span> QQuickItem::<span class="name">setFlag</span>(<span class="type"><a href="qquickitem.html#Flag-enum">Flag</a></span><i> flag</i>, <span class="type">bool</span><i> enabled</i> = true)</h3>
<p>Enables the specified <i>flag</i> for this item if <i>enabled</i> is true; if <i>enabled</i> is false, the flag is disabled.</p>
<p>These provide various hints for the item; for example, the <a href="qquickitem.html#Flag-enum">ItemClipsChildrenToShape</a> flag indicates that all children of this item should be clipped to fit within the item area.</p>
<!-- @@@setFlag -->
<!-- $$$setFlags[overload1]$$$setFlagsFlags -->
<h3 class="fn"><a name="setFlags"></a><span class="type">void</span> QQuickItem::<span class="name">setFlags</span>(<span class="type"><a href="qquickitem.html#Flag-enum">Flags</a></span><i> flags</i>)</h3>
<p>Enables the specified <i>flags</i> for this item.</p>
<p><b>See also </b><a href="qquickitem.html#flags">flags</a>() and <a href="qquickitem.html#setFlag">setFlag</a>().</p>
<!-- @@@setFlags -->
<!-- $$$setKeepMouseGrab[overload1]$$$setKeepMouseGrabbool -->
<h3 class="fn"><a name="setKeepMouseGrab"></a><span class="type">void</span> QQuickItem::<span class="name">setKeepMouseGrab</span>(<span class="type">bool</span><i> keep</i>)</h3>
<p>Sets whether the mouse input should remain exclusively with this item.</p>
<p>This is useful for items that wish to grab and keep mouse interaction following a predefined gesture. For example, an item that is interested in horizontal mouse movement may set keepMouseGrab to true once a threshold has been exceeded. Once keepMouseGrab has been set to true, filtering items will not react to mouse events.</p>
<p>If <i>keep</i> is false, a filtering item may steal the grab. For example, <a href="qml-qtquick-flickable.html">Flickable</a> may attempt to steal a mouse grab if it detects that the user has begun to move the viewport.</p>
<p><b>See also </b><a href="qquickitem.html#keepMouseGrab">keepMouseGrab</a>().</p>
<!-- @@@setKeepMouseGrab -->
<!-- $$$setKeepTouchGrab[overload1]$$$setKeepTouchGrabbool -->
<h3 class="fn"><a name="setKeepTouchGrab"></a><span class="type">void</span> QQuickItem::<span class="name">setKeepTouchGrab</span>(<span class="type">bool</span><i> keep</i>)</h3>
<p>Sets whether the touch points grabbed by this item should remain exclusively with this item.</p>
<p>This is useful for items that wish to grab and keep specific touch points following a predefined gesture. For example, an item that is interested in horizontal touch point movement may set setKeepTouchGrab to true once a threshold has been exceeded. Once setKeepTouchGrab has been set to true, filtering items will not react to the relevant touch points.</p>
<p>If <i>keep</i> is false, a filtering item may steal the grab. For example, <a href="qml-qtquick-flickable.html">Flickable</a> may attempt to steal a touch point grab if it detects that the user has begun to move the viewport.</p>
<p><b>See also </b><a href="qquickitem.html#keepTouchGrab">keepTouchGrab</a>() and <a href="qquickitem.html#setKeepMouseGrab">setKeepMouseGrab</a>().</p>
<!-- @@@setKeepTouchGrab -->
<!-- $$$stackAfter[overload1]$$$stackAfterconstQQuickItem* -->
<h3 class="fn"><a name="stackAfter"></a><span class="type">void</span> QQuickItem::<span class="name">stackAfter</span>(const <span class="type">QQuickItem</span> *<i> sibling</i>)</h3>
<p>Moves the specified <i>sibling</i> item to the index after this item within the visual stacking order.</p>
<p>The given <i>sibling</i> must be a sibling of this item; that is, they must have the same immediate <a href="qquickitem.html#parent-prop">parent</a>.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-visualparent.html">Concepts - Visual Parent in Qt Quick</a>.</p>
<!-- @@@stackAfter -->
<!-- $$$stackBefore[overload1]$$$stackBeforeconstQQuickItem* -->
<h3 class="fn"><a name="stackBefore"></a><span class="type">void</span> QQuickItem::<span class="name">stackBefore</span>(const <span class="type">QQuickItem</span> *<i> sibling</i>)</h3>
<p>Moves the specified <i>sibling</i> item to the index before this item within the visual stacking order.</p>
<p>The given <i>sibling</i> must be a sibling of this item; that is, they must have the same immediate <a href="qquickitem.html#parent-prop">parent</a>.</p>
<p><b>See also </b><a href="qtquick-visualcanvas-visualparent.html">Concepts - Visual Parent in Qt Quick</a>.</p>
<!-- @@@stackBefore -->
<!-- $$$textureProvider[overload1]$$$textureProvider -->
<h3 class="fn"><a name="textureProvider"></a><span class="type"><a href="qsgtextureprovider.html">QSGTextureProvider</a></span> * QQuickItem::<span class="name">textureProvider</span>() const<tt> [virtual]</tt></h3>
<p>Returns the texture provider for an item. The default implementation returns 0.</p>
<p>This function may only be called on the rendering thread.</p>
<!-- @@@textureProvider -->
<!-- $$$touchEvent[overload1]$$$touchEventQTouchEvent* -->
<h3 class="fn"><a name="touchEvent"></a><span class="type">void</span> QQuickItem::<span class="name">touchEvent</span>(<span class="type">QTouchEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive touch events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@touchEvent -->
<!-- $$$touchUngrabEvent[overload1]$$$touchUngrabEvent -->
<h3 class="fn"><a name="touchUngrabEvent"></a><span class="type">void</span> QQuickItem::<span class="name">touchUngrabEvent</span>()<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has occurred on this item.</p>
<!-- @@@touchUngrabEvent -->
<!-- $$$ungrabMouse[overload1]$$$ungrabMouse -->
<h3 class="fn"><a name="ungrabMouse"></a><span class="type">void</span> QQuickItem::<span class="name">ungrabMouse</span>()</h3>
<p>Releases the mouse grab following a call to <a href="qquickitem.html#grabMouse">grabMouse</a>().</p>
<!-- @@@ungrabMouse -->
<!-- $$$ungrabTouchPoints[overload1]$$$ungrabTouchPoints -->
<h3 class="fn"><a name="ungrabTouchPoints"></a><span class="type">void</span> QQuickItem::<span class="name">ungrabTouchPoints</span>()</h3>
<p>Ungrabs the touch points owned by this item.</p>
<p><b>See also </b><a href="qquickitem.html#grabTouchPoints">grabTouchPoints</a>().</p>
<!-- @@@ungrabTouchPoints -->
<!-- $$$unsetCursor[overload1]$$$unsetCursor -->
<h3 class="fn"><a name="unsetCursor"></a><span class="type">void</span> QQuickItem::<span class="name">unsetCursor</span>()</h3>
<p>Clears the cursor shape for this item.</p>
<p><b>See also </b><a href="qquickitem.html#cursor">cursor</a>() and <a href="qquickitem.html#setCursor">setCursor</a>().</p>
<!-- @@@unsetCursor -->
<!-- $$$update[overload1]$$$update -->
<h3 class="fn"><a name="update"></a><span class="type">void</span> QQuickItem::<span class="name">update</span>()<tt> [slot]</tt></h3>
<p>Schedules a call to <a href="qquickitem.html#updatePaintNode">updatePaintNode</a>() for this item.</p>
<p>The call to <a href="qquickitem.html#updatePaintNode">QQuickItem::updatePaintNode</a>() will always happen if the item is showing in a <a href="qquickwindow.html">QQuickWindow</a>.</p>
<p>Only items which specifies <a href="qquickitem.html#Flag-enum">QQuickItem::ItemHasContents</a> are allowed to call QQuickItem::update().</p>
<!-- @@@update -->
<!-- $$$updateInputMethod[overload1]$$$updateInputMethodQt::InputMethodQueries -->
<h3 class="fn"><a name="updateInputMethod"></a><span class="type">void</span> QQuickItem::<span class="name">updateInputMethod</span>(<span class="type">Qt::InputMethodQueries</span><i> queries</i> = Qt::ImQueryInput)<tt> [protected]</tt></h3>
<p>Notify input method on updated query values if needed. <i>queries</i> indicates the changed attributes.</p>
<!-- @@@updateInputMethod -->
<!-- $$$updatePaintNode[overload1]$$$updatePaintNodeQSGNode*UpdatePaintNodeData* -->
<h3 class="fn"><a name="updatePaintNode"></a><span class="type"><a href="qsgnode.html">QSGNode</a></span> * QQuickItem::<span class="name">updatePaintNode</span>(<span class="type"><a href="qsgnode.html">QSGNode</a></span> *<i> oldNode</i>, <span class="type"><a href="qquickitem-updatepaintnodedata.html">UpdatePaintNodeData</a></span> *<i> updatePaintNodeData</i>)<tt> [virtual protected]</tt></h3>
<p>Called on the render thread when it is time to sync the state of the item with the scene graph.</p>
<p>The function is called as a result of <a href="qquickitem.html#update">QQuickItem::update</a>(), if the user has set the <a href="qquickitem.html#Flag-enum">QQuickItem::ItemHasContents</a> flag on the item.</p>
<p>The function should return the root of the scene graph subtree for this item. Most implementations will return a single <a href="qsggeometrynode.html">QSGGeometryNode</a> containing the visual representation of this item. <i>oldNode</i> is the node that was returned the last time the function was called. <i>updatePaintNodeData</i> provides a pointer to the <a href="qsgtransformnode.html">QSGTransformNode</a> associated with this <a href="qquickitem.html">QQuickItem</a>.</p>
<pre class="cpp"><span class="type"><a href="qsgnode.html">QSGNode</a></span> <span class="operator">*</span>MyItem<span class="operator">::</span>updatePaintNode(<span class="type"><a href="qsgnode.html">QSGNode</a></span> <span class="operator">*</span>node<span class="operator">,</span> UpdatePaintNodeData <span class="operator">*</span>)
{
    <span class="type"><a href="qsgsimplerectnode.html">QSGSimpleRectNode</a></span> <span class="operator">*</span>n <span class="operator">=</span> <span class="keyword">static_cast</span><span class="operator">&lt;</span><span class="type"><a href="qsgsimplerectnode.html">QSGSimpleRectNode</a></span> <span class="operator">*</span><span class="operator">&gt;</span>(node);
    <span class="keyword">if</span> (<span class="operator">!</span>n) {
        n <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsgsimplerectnode.html">QSGSimpleRectNode</a></span>();
        n<span class="operator">-</span><span class="operator">&gt;</span>setColor(<span class="type">Qt</span><span class="operator">::</span>red);
    }
    n<span class="operator">-</span><span class="operator">&gt;</span>setRect(boundingRect());
    <span class="keyword">return</span> n;
}</pre>
<p>The main thread is blocked while this function is executed so it is safe to read values from the <a href="qquickitem.html">QQuickItem</a> instance and other objects in the main thread.</p>
<p>If no call to QQuickItem::updatePaintNode() result in actual scene graph changes, like <a href="qsgnode.html#markDirty">QSGNode::markDirty</a>() or adding and removing nodes, then the underlying implementation may decide to not render the scene again as the visual outcome is identical.</p>
<p><b>Warning:</b> It is crucial that OpenGL operations and interaction with the scene graph happens exclusively on the render thread, primarily during the QQuickItem::updatePaintNode() call. The best rule of thumb is to only use classes with the &quot;QSG&quot; prefix inside the QQuickItem::updatePaintNode() function.</p>
<p><b>Warning:</b> This function is called on the render thread. This means any QObjects or thread local storage that is created will have affinity to the render thread, so apply caution when doing anything other than rendering in this function. Similarily for signals, these will be emitted on the render thread and will thus often be delivered via queued connections.</p>
<p><b>See also </b><a href="qsgmaterial.html">QSGMaterial</a>, <a href="qsgsimplematerial.html">QSGSimpleMaterial</a>, <a href="qsggeometrynode.html">QSGGeometryNode</a>, <a href="qsggeometry.html">QSGGeometry</a>, <a href="qsgflatcolormaterial.html">QSGFlatColorMaterial</a>, <a href="qsgtexturematerial.html">QSGTextureMaterial</a>, and <a href="qsgnode.html#markDirty">QSGNode::markDirty</a>().</p>
<!-- @@@updatePaintNode -->
<!-- $$$updatePolish[overload1]$$$updatePolish -->
<h3 class="fn"><a name="updatePolish"></a><span class="type">void</span> QQuickItem::<span class="name">updatePolish</span>()<tt> [virtual protected]</tt></h3>
<p>This function should perform any layout as required for this item.</p>
<p>When <a href="qquickitem.html#polish">polish</a>() is called, the scene graph schedules a polish event for this item. When the scene graph is ready to render this item, it calls updatePolish() to do any item layout as required before it renders the next frame.</p>
<!-- @@@updatePolish -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QQuickItem::<span class="name">wheelEvent</span>(<span class="type">QWheelEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<p>This event handler can be reimplemented in a subclass to receive wheel events for an item. The event information is provided by the <i>event</i> parameter.</p>
<!-- @@@wheelEvent -->
<!-- $$$widthValid[overload1]$$$widthValid -->
<h3 class="fn"><a name="widthValid"></a><span class="type">bool</span> QQuickItem::<span class="name">widthValid</span>() const<tt> [protected]</tt></h3>
<p>Returns whether the width property has been set explicitly.</p>
<!-- @@@widthValid -->
<!-- $$$window[overload1]$$$window -->
<h3 class="fn"><a name="window"></a><span class="type"><a href="qquickwindow.html">QQuickWindow</a></span> * QQuickItem::<span class="name">window</span>() const</h3>
<p>Returns the window in which this item is rendered.</p>
<p>The item does not have a window until it has been assigned into a scene. The <a href="qquickitem.html#windowChanged">windowChanged</a>() signal provides a notification both when the item is entered into a scene and when it is removed from a scene.</p>
<!-- @@@window -->
<!-- $$$windowChanged[overload1]$$$windowChangedQQuickWindow* -->
<h3 class="fn"><a name="windowChanged"></a><span class="type">void</span> QQuickItem::<span class="name">windowChanged</span>(<span class="type"><a href="qquickwindow.html">QQuickWindow</a></span> *<i> window</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted when the item's <i>window</i> changes.</p>
<!-- @@@windowChanged -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>