问题标签 [delphi-for-php]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - CodeGear Delphi For PHP - 为什么 readItemIndex() 返回 -1?
Window我打算使用对象 ( )创建一个对话框class Window extends QWidget。
包含这些元素的对话框:
- 一个列表框 (
ListBox1) - 2 个标签 (
Label1&Label2) - 一个按钮
onClick()列表框的功能:
这段代码的目的是从列表框中选择一个项目,然后显示 ( ListBox1Click) 它的索引Label1。
However, when an item is selected, readItemIndex()returns numerical value `-1.
包含的项目ListBox1
例如,如果我dfdfwsf从列表框中选择,它应该返回 index/key 32432;而是-1返回。