Making arrays with Qt
-
stupid question but still asking, i know that QArray is no longer in Qt so the option is QVector
Question is, can i make this (Python array)
self.board = { 'Studio Lights':{'Name':'Studio Lights', 'UVVisible':False, 'ip':'192.168.10.138', 'Status':'Online', 'Active':'Off'}, 'Neon Heaven':{'Name':'Neon Heaven', 'UVVisible':True, 'ip':'192.168.10.146', 'Status':'Online', 'Active':'Off'}, 'Vitrineskap':{'Name':'Vitrineskap', 'UVVisible':False, 'ip':'vitrineskap', 'Status':'Online', 'Active':'Off'}, 'Voodoo Mask': {'Name': 'TestMachine', 'UVVisible': False, 'ip': 'test123', 'Status': 'Online','Active': 'Off'} }
with Qvector and how? is QVector exactly as QArray/Array? or
-
@Kris-Revi said in Making arrays with Qt:
can i make this (Python array)
this is no array, it's a dict with subdicts.
You have to create a structure for this - but I don't see anything Qt specific here, more C basics - https://www.tutorialspoint.com/cprogramming/c_structures.htm -
stupid question but still asking, i know that QArray is no longer in Qt so the option is QVector
Question is, can i make this (Python array)
self.board = { 'Studio Lights':{'Name':'Studio Lights', 'UVVisible':False, 'ip':'192.168.10.138', 'Status':'Online', 'Active':'Off'}, 'Neon Heaven':{'Name':'Neon Heaven', 'UVVisible':True, 'ip':'192.168.10.146', 'Status':'Online', 'Active':'Off'}, 'Vitrineskap':{'Name':'Vitrineskap', 'UVVisible':False, 'ip':'vitrineskap', 'Status':'Online', 'Active':'Off'}, 'Voodoo Mask': {'Name': 'TestMachine', 'UVVisible': False, 'ip': 'test123', 'Status': 'Online','Active': 'Off'} }
with Qvector and how? is QVector exactly as QArray/Array? or
@Kris-Revi said in Making arrays with Qt:
i know that QArray is no longer in Qt
is QVector exactly as QArray/Array?Adding to @Christian-Ehrlicher
What is that
QArray
? And I don't see why you would to make aQVector
of this, unless you have some specific reason? -
@Kris-Revi said in Making arrays with Qt:
can i make this (Python array)
this is no array, it's a dict with subdicts.
You have to create a structure for this - but I don't see anything Qt specific here, more C basics - https://www.tutorialspoint.com/cprogramming/c_structures.htm@Christian-Ehrlicher you are right xD it is a struct! me so sowyh, me not think! xD