qt


QML Repeater itemAt not working


I have defined a grid like below using repeater
Grid {
id: grid
x: 8;y:8
clip: true
smooth: false
rows: 6; columns: 6; spacing: 3
Repeater {
id:table
model:36
Cell { //an item created by me
clip:true
color:"blue"
}
}
}
I want to get position of any cell in the grid. For that, somewhere in QML file, I wrote
x:table.itemAt(3).Center
But itemAt is not working. In fact, when I am writing
table.
the QT is not showing itemAt in the suggestion tooltip.
What to do?
QML Grid Element doesn't provide itemAt method. But, seems, here it is what you are looking for:
Item::childAt ( real x, real y )
Returns the visible child item at point (x, y), which is in this item's coordinate system, or null if there is no such item. Look here

Related Links

Use boost build bjam for building Qt stuff
I want to use gdb with my Qt project..But I received “Permission denied” message?
qmake: could not find a Qt installation of '' - Setting up qmake?
qt file menu with vertical separator to make recent column
Why won't my scrollbars synchronise properly?
How to fill default text into QInputDialog
Make a pixmap transparent for a QLabel
OpenCV 2.4.6 with QT 5.1.0 Errors
Server Respose in QTCP SOCKET
How to install qt add-in (for Qt 4x) for Visual Studio 2012
Not able to access my webcam using opencv library
Qt custom widget update big overhead
to paint image in standard NPAPI plugin with QT
QtQuickPaintedItem rotated with an orientation quaternion
PyQt mouse events for QGraphicsView
Unable to use Qt + DXFLib

Categories

HOME
nam
user-interface
azure-functions
windows-8.1
kendo-dropdown
mathematical-optimization
drag-and-drop
specifications
selection
port
heuristics
parsley.js
sap-fiori
responsivevoice
fullcalendar-scheduler
mahout-recommender
texas-instruments
tomcat8
http-authentication
akka-persistence
unity-container
intel
exchange-server-2010
animated-gif
pyopencl
vuforia
beego
hdmi
gravity-forms-plugin
npoi
sparkle
nic
windows2012
nest
devtools
creation
busboy
numerics
mv
elastica
recovery
swfupload
contactless-smartcard
jqgrid-asp.net
oracle-bmcs
moinmoin
asihttprequest
photoswipe
portability
clrs
word-2016
http4s
d3v4
carmen
callouts
jtag
maven-release-plugin
adjacency-list
jeasyui
distributed-cache
mercurial-extension
teamviewer
taco
currency-exchange-rates
teensy
ui4j
grinder
google-maps-api-2
arbre
pythonxy
blockquote
libz
replicaset
org-babel
unidata
actionpack
console.log
prism-4
subfolder
nssortdescriptor
mgwt
incron
mod-auth-openidc
quantify
maven-central
jini
senchatouch-2.4
jchartfx
property-injection
spring-social-linkedin
frontbase
insertonsubmit
notifyjs
ui-design
semicolon
red-system
user-forums
msinfo32
system-information
first-class
gamesalad
acpi
filelock
cewolf
rtd
servlet-container
gaelyk
principles
wmd-editor
database-cloning
error-detection

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile