Ring Documentation, Release 1.8
Load "guilib.ring"
New qApp {
win1 = new qWidget() {
setwindowtitle("Using QComboBox")
setGeometry(100,100,400,400)
New QComboBox(win1) {
setGeometry(150,100,200,30)
alist = ["one","two","three","four","five"]
for x in aList additem(x,0) next
}
show()
}
exec()
}
The application during the runtime
60.8 Creating Menubar
In this example we will learn about using the QMenuBar class
60.8. Creating Menubar 641
Ring Documentation, Release 1.8
Load "guilib.ring"
MyApp = New qApp {
win1 = new qWidget() {
setwindowtitle("Using QMenubar")
setGeometry(100,100,400,400)
menu1 = new qmenubar(win1) {
sub1 = addmenu("File")
sub2 = addmenu("Edit")
sub3 = addmenu("Help")
sub1 {
oAction = new qAction(win1) {
settext("New")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Open")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Save")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Save As")
}
addaction(oAction)
addseparator()
oAction = new qaction(win1) {
settext("Exit")
setclickevent("myapp.quit()")
}
addaction(oAction)
}
sub2 {
oAction = new qAction(win1) {
settext("Cut")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Copy")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Paste")
}
addaction(oAction)
addseparator()
oAction = new qAction(win1) {
settext("Select All")
}
addaction(oAction)
}
sub3 {
oAction = new qAction(win1) {
60.8. Creating Menubar 642
Ring Documentation, Release 1.8
settext("Reference")
}
addaction(oAction)
sub4 = addmenu("Sub Menu")
sub4 {
oAction = new qAction(win1) {
settext("Website")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Forum")
}
addaction(oAction)
oAction = new qAction(win1) {
settext("Blog")
}
addaction(oAction)
}
addseparator()
oAction = new qAction(win1) {
settext("About")
}
addaction(oAction)
}
}
show()
}
exec()
}
The application during the runtime
60.8. Creating Menubar 643
Ring Documentation, Release 1.8
60.9 Context Menu
Example:
load "guilib.ring"
new qApp {
win = new qwidget() {
setwindowtitle("Context Menu")
resize(400,400)
myfilter = new qAllEvents(win) {
setContextmenuEvent("mymenu()")
}
installeventfilter(myfilter)
show()
}
exec()
}
func mymenu
new qMenu(win) {
oAction = new qAction(win) {
settext("new")
SetCLickevent("See :New")
60.9. Context Menu 644
Ring Documentation, Release 1.8
}
addaction(oAction)
oAction = new qAction(win) {
settext("open")
SetCLickevent("See :Open")
}
addaction(oAction)
oAction = new qAction(win) {
settext("save")
SetCLickevent("See :Save")
}
addaction(oAction)
oAction = new qAction(win) {
settext("close")
SetCLickevent("See :Close")
}
addaction(oAction)
oCursor = new qCursor()
exec(oCursor.pos())
}
60.10 Creating Toolbar
In this example we will learn about using the QToolBar class
Load "guilib.ring"
New qApp {
win1 = new qMainWindow() {
setwindowtitle("Using QToolbar")
setGeometry(100,100,600,400)
abtns = [
new qpushbutton(win1) { settext("Add") } ,
new qpushbutton(win1) { settext("Edit") } ,
new qpushbutton(win1) { settext("Find") } ,
new qpushbutton(win1) { settext("Delete") } ,
new qpushbutton(win1) { settext("Exit")
setclickevent("win1.close()") }
]
tool1 = new qtoolbar(win1) {
for x in abtns addwidget(x) addseparator() next
setmovable(true)
setGeometry(0,0,500,30)
setFloatable(true)
}
show()
}
exec()
}
60.10. Creating Toolbar 645
Ring Documentation, Release 1.8
The application during the runtime
60.11 Creating StatusBar
In this example we will learn about using the QStatusBar class
Load "guilib.ring"
New qApp {
win1 = new qMainWindow() {
setwindowtitle("Using QStatusbar")
setGeometry(100,100,400,400)
status1 = new qstatusbar(win1) {
showmessage("Ready!",0)
}
setstatusbar(status1)
show()
}
exec()
}
60.11. Creating StatusBar 646
Ring Documentation, Release 1.8
The application during the runtime
60.12 Using QDockWidget
In this example we will learn about using the QDockWidget class
Load "guilib.ring"
New qApp {
win1 = new qMainWindow() {
setwindowtitle("QDockWidget")
setGeometry(100,100,400,400)
label1 = new qlabel(win1) {
settext("Hello")
setGeometry(300,300,100,100)
}
label2 = new qlabel(win1) {
settext("How are you ?")
setGeometry(100,100,100,100)
}
dock1 = new qdockwidget(win1,0) {
60.12. Using QDockWidget 647
Ring Documentation, Release 1.8
setwidget(label1)
SetAllowedAreas(1)
}
dock2 = new qdockwidget(win1,0) {
setwidget(label2)
SetAllowedAreas(2)
}
adddockwidget(Qt_LeftDockWidgetArea,dock1,Qt_Horizontal)
adddockwidget(Qt_LeftDockWidgetArea,dock2,Qt_Vertical)
show()
}
exec()
}
The application during the runtime
60.13 Using QTabWidget
In this example we will learn about using the QTabWidget class
Load "guilib.ring"
New qApp {
60.13. Using QTabWidget 648
Ring Documentation, Release 1.8
win1 = new qMainWindow() {
setwindowtitle("Using QTabWidget")
setGeometry(100,100,400,400)
page1 = new qwidget() {
new qpushbutton(page1) {
settext("The First Page")
}
}
page2 = new qwidget() {
new qpushbutton(page2) {
settext("The Second Page")
}
}
page3 = new qwidget() {
new qpushbutton(page3) {
settext("The Third Page")
}
}
tab1 = new qtabwidget(win1) {
inserttab(0,page1,"Page 1")
inserttab(1,page2,"Page 2")
inserttab(2,page3,"Page 3")
setGeometry(100,100,400,400)
}
status1 = new qstatusbar(win1) {
showmessage("Ready!",0)
}
setstatusbar(status1)
showMaximized()
}
exec()
}
The application during the runtime
60.13. Using QTabWidget 649
Ring Documentation, Release 1.8
60.14 Using QTableWidget
In this example we will learn about using the QTableWidget class
Load "guilib.ring"
New qApp {
win1 = new qMainWindow() {
setGeometry(100,100,1100,370)
setwindowtitle("Using QTableWidget")
Table1 = new qTableWidget(win1) {
setrowcount(10) setcolumncount(10)
setGeometry(0,0,800,400)
setselectionbehavior(QAbstractItemView_SelectRows)
for x = 1 to 10
for y = 1 to 10
item1 = new qtablewidgetitem("R"+X+"C"+Y)
setitem(x-1,y-1,item1)
next
next
}
setcentralwidget(table1)
show()
}
60.14. Using QTableWidget 650

More Related Content

PDF
The Ring programming language version 1.7 book - Part 66 of 196
PDF
The Ring programming language version 1.4 book - Part 16 of 30
PDF
The Ring programming language version 1.5.2 book - Part 59 of 181
PDF
The Ring programming language version 1.8 book - Part 69 of 202
PDF
The Ring programming language version 1.5.4 book - Part 61 of 185
PDF
The Ring programming language version 1.5.3 book - Part 76 of 184
PDF
The Ring programming language version 1.9 book - Part 72 of 210
PDF
The Ring programming language version 1.7 book - Part 71 of 196
The Ring programming language version 1.7 book - Part 66 of 196
The Ring programming language version 1.4 book - Part 16 of 30
The Ring programming language version 1.5.2 book - Part 59 of 181
The Ring programming language version 1.8 book - Part 69 of 202
The Ring programming language version 1.5.4 book - Part 61 of 185
The Ring programming language version 1.5.3 book - Part 76 of 184
The Ring programming language version 1.9 book - Part 72 of 210
The Ring programming language version 1.7 book - Part 71 of 196

What's hot (20)

PDF
The Ring programming language version 1.3 book - Part 44 of 88
PDF
The Ring programming language version 1.10 book - Part 74 of 212
PDF
The Ring programming language version 1.5.1 book - Part 57 of 180
PDF
The Ring programming language version 1.5.3 book - Part 70 of 184
PDF
The Ring programming language version 1.7 book - Part 67 of 196
PDF
The Ring programming language version 1.8 book - Part 70 of 202
PDF
The Ring programming language version 1.8 book - Part 67 of 202
PDF
The Ring programming language version 1.8 book - Part 71 of 202
PDF
The Ring programming language version 1.5.1 book - Part 58 of 180
PDF
The Ring programming language version 1.9 book - Part 74 of 210
PDF
The Ring programming language version 1.7 book - Part 69 of 196
PDF
The Ring programming language version 1.3 book - Part 49 of 88
PDF
The Ring programming language version 1.9 book - Part 71 of 210
PDF
The Ring programming language version 1.5.4 book - Part 66 of 185
PDF
The Ring programming language version 1.3 book - Part 47 of 88
PDF
The Ring programming language version 1.5.4 book - Part 62 of 185
PDF
The Ring programming language version 1.5.2 book - Part 63 of 181
PDF
The Ring programming language version 1.6 book - Part 64 of 189
PDF
The Ring programming language version 1.7 book - Part 68 of 196
PDF
The Ring programming language version 1.8 book - Part 74 of 202
The Ring programming language version 1.3 book - Part 44 of 88
The Ring programming language version 1.10 book - Part 74 of 212
The Ring programming language version 1.5.1 book - Part 57 of 180
The Ring programming language version 1.5.3 book - Part 70 of 184
The Ring programming language version 1.7 book - Part 67 of 196
The Ring programming language version 1.8 book - Part 70 of 202
The Ring programming language version 1.8 book - Part 67 of 202
The Ring programming language version 1.8 book - Part 71 of 202
The Ring programming language version 1.5.1 book - Part 58 of 180
The Ring programming language version 1.9 book - Part 74 of 210
The Ring programming language version 1.7 book - Part 69 of 196
The Ring programming language version 1.3 book - Part 49 of 88
The Ring programming language version 1.9 book - Part 71 of 210
The Ring programming language version 1.5.4 book - Part 66 of 185
The Ring programming language version 1.3 book - Part 47 of 88
The Ring programming language version 1.5.4 book - Part 62 of 185
The Ring programming language version 1.5.2 book - Part 63 of 181
The Ring programming language version 1.6 book - Part 64 of 189
The Ring programming language version 1.7 book - Part 68 of 196
The Ring programming language version 1.8 book - Part 74 of 202

Similar to The Ring programming language version 1.8 book - Part 68 of 202 (20)

PDF
The Ring programming language version 1.10 book - Part 73 of 212
PDF
The Ring programming language version 1.3 book - Part 45 of 88
PDF
The Ring programming language version 1.5.3 book - Part 72 of 184
PDF
The Ring programming language version 1.2 book - Part 42 of 84
PDF
The Ring programming language version 1.5.2 book - Part 61 of 181
PDF
The Ring programming language version 1.4.1 book - Part 17 of 31
PDF
The Ring programming language version 1.4.1 book - Part 16 of 31
PDF
The Ring programming language version 1.5.3 book - Part 71 of 184
PDF
The Ring programming language version 1.5.4 book - Part 64 of 185
PDF
The Ring programming language version 1.6 book - Part 66 of 189
PDF
The Ring programming language version 1.9 book - Part 76 of 210
PDF
The Ring programming language version 1.10 book - Part 83 of 212
PDF
The Ring programming language version 1.9 book - Part 82 of 210
PDF
The Ring programming language version 1.5 book - Part 11 of 31
PDF
The Ring programming language version 1.5.3 book - Part 81 of 184
PDF
The Ring programming language version 1.2 book - Part 43 of 84
PDF
The Ring programming language version 1.5.4 book - Part 71 of 185
PDF
The Ring programming language version 1.5.1 book - Part 60 of 180
PDF
The Ring programming language version 1.4 book - Part 17 of 30
PDF
The Ring programming language version 1.9 book - Part 73 of 210
The Ring programming language version 1.10 book - Part 73 of 212
The Ring programming language version 1.3 book - Part 45 of 88
The Ring programming language version 1.5.3 book - Part 72 of 184
The Ring programming language version 1.2 book - Part 42 of 84
The Ring programming language version 1.5.2 book - Part 61 of 181
The Ring programming language version 1.4.1 book - Part 17 of 31
The Ring programming language version 1.4.1 book - Part 16 of 31
The Ring programming language version 1.5.3 book - Part 71 of 184
The Ring programming language version 1.5.4 book - Part 64 of 185
The Ring programming language version 1.6 book - Part 66 of 189
The Ring programming language version 1.9 book - Part 76 of 210
The Ring programming language version 1.10 book - Part 83 of 212
The Ring programming language version 1.9 book - Part 82 of 210
The Ring programming language version 1.5 book - Part 11 of 31
The Ring programming language version 1.5.3 book - Part 81 of 184
The Ring programming language version 1.2 book - Part 43 of 84
The Ring programming language version 1.5.4 book - Part 71 of 185
The Ring programming language version 1.5.1 book - Part 60 of 180
The Ring programming language version 1.4 book - Part 17 of 30
The Ring programming language version 1.9 book - Part 73 of 210

More from Mahmoud Samir Fayed (20)

PDF
The Ring programming language version 1.10 book - Part 212 of 212
PDF
The Ring programming language version 1.10 book - Part 211 of 212
PDF
The Ring programming language version 1.10 book - Part 210 of 212
PDF
The Ring programming language version 1.10 book - Part 208 of 212
PDF
The Ring programming language version 1.10 book - Part 207 of 212
PDF
The Ring programming language version 1.10 book - Part 205 of 212
PDF
The Ring programming language version 1.10 book - Part 206 of 212
PDF
The Ring programming language version 1.10 book - Part 204 of 212
PDF
The Ring programming language version 1.10 book - Part 203 of 212
PDF
The Ring programming language version 1.10 book - Part 202 of 212
PDF
The Ring programming language version 1.10 book - Part 201 of 212
PDF
The Ring programming language version 1.10 book - Part 200 of 212
PDF
The Ring programming language version 1.10 book - Part 199 of 212
PDF
The Ring programming language version 1.10 book - Part 198 of 212
PDF
The Ring programming language version 1.10 book - Part 197 of 212
PDF
The Ring programming language version 1.10 book - Part 196 of 212
PDF
The Ring programming language version 1.10 book - Part 195 of 212
PDF
The Ring programming language version 1.10 book - Part 194 of 212
PDF
The Ring programming language version 1.10 book - Part 193 of 212
PDF
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 192 of 212

Recently uploaded (20)

PPTX
Post-Migration Optimization Playbook: Getting the Most Out of Your New Adobe ...
PDF
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
PPTX
AI Tools Revolutionizing Software Development Workflows
PPTX
Beige and Black Minimalist Project Deck Presentation (1).pptx
PPTX
Greedy best-first search algorithm always selects the path which appears best...
PDF
OpenTimelineIO Virtual Town Hall - August 2025
PDF
OpenAssetIO Virtual Town Hall - August 2025.pdf
PDF
C language slides for c programming book by ANSI
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
PDF
DOWNLOAD—IOBit Uninstaller Pro Crack Download Free
PPTX
StacksandQueuesCLASS 12 COMPUTER SCIENCE.pptx
PDF
Difference Between Website and Web Application.pdf
PDF
Top AI Tools for Project Managers: My 2025 AI Stack
PPTX
Lesson-3-Operation-System-Support.pptx-I
PPTX
UNIT II: Software design, software .pptx
PDF
How to Write Automated Test Scripts Using Selenium.pdf
PPT
chapter01_java_programming_object_oriented
PDF
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
PDF
How to Set Realistic Project Milestones and Deadlines
PPTX
ESDS_SAP Application Cloud Offerings.pptx
Post-Migration Optimization Playbook: Getting the Most Out of Your New Adobe ...
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
AI Tools Revolutionizing Software Development Workflows
Beige and Black Minimalist Project Deck Presentation (1).pptx
Greedy best-first search algorithm always selects the path which appears best...
OpenTimelineIO Virtual Town Hall - August 2025
OpenAssetIO Virtual Town Hall - August 2025.pdf
C language slides for c programming book by ANSI
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
DOWNLOAD—IOBit Uninstaller Pro Crack Download Free
StacksandQueuesCLASS 12 COMPUTER SCIENCE.pptx
Difference Between Website and Web Application.pdf
Top AI Tools for Project Managers: My 2025 AI Stack
Lesson-3-Operation-System-Support.pptx-I
UNIT II: Software design, software .pptx
How to Write Automated Test Scripts Using Selenium.pdf
chapter01_java_programming_object_oriented
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
How to Set Realistic Project Milestones and Deadlines
ESDS_SAP Application Cloud Offerings.pptx

The Ring programming language version 1.8 book - Part 68 of 202

  • 1. Ring Documentation, Release 1.8 Load "guilib.ring" New qApp { win1 = new qWidget() { setwindowtitle("Using QComboBox") setGeometry(100,100,400,400) New QComboBox(win1) { setGeometry(150,100,200,30) alist = ["one","two","three","four","five"] for x in aList additem(x,0) next } show() } exec() } The application during the runtime 60.8 Creating Menubar In this example we will learn about using the QMenuBar class 60.8. Creating Menubar 641
  • 2. Ring Documentation, Release 1.8 Load "guilib.ring" MyApp = New qApp { win1 = new qWidget() { setwindowtitle("Using QMenubar") setGeometry(100,100,400,400) menu1 = new qmenubar(win1) { sub1 = addmenu("File") sub2 = addmenu("Edit") sub3 = addmenu("Help") sub1 { oAction = new qAction(win1) { settext("New") } addaction(oAction) oAction = new qAction(win1) { settext("Open") } addaction(oAction) oAction = new qAction(win1) { settext("Save") } addaction(oAction) oAction = new qAction(win1) { settext("Save As") } addaction(oAction) addseparator() oAction = new qaction(win1) { settext("Exit") setclickevent("myapp.quit()") } addaction(oAction) } sub2 { oAction = new qAction(win1) { settext("Cut") } addaction(oAction) oAction = new qAction(win1) { settext("Copy") } addaction(oAction) oAction = new qAction(win1) { settext("Paste") } addaction(oAction) addseparator() oAction = new qAction(win1) { settext("Select All") } addaction(oAction) } sub3 { oAction = new qAction(win1) { 60.8. Creating Menubar 642
  • 3. Ring Documentation, Release 1.8 settext("Reference") } addaction(oAction) sub4 = addmenu("Sub Menu") sub4 { oAction = new qAction(win1) { settext("Website") } addaction(oAction) oAction = new qAction(win1) { settext("Forum") } addaction(oAction) oAction = new qAction(win1) { settext("Blog") } addaction(oAction) } addseparator() oAction = new qAction(win1) { settext("About") } addaction(oAction) } } show() } exec() } The application during the runtime 60.8. Creating Menubar 643
  • 4. Ring Documentation, Release 1.8 60.9 Context Menu Example: load "guilib.ring" new qApp { win = new qwidget() { setwindowtitle("Context Menu") resize(400,400) myfilter = new qAllEvents(win) { setContextmenuEvent("mymenu()") } installeventfilter(myfilter) show() } exec() } func mymenu new qMenu(win) { oAction = new qAction(win) { settext("new") SetCLickevent("See :New") 60.9. Context Menu 644
  • 5. Ring Documentation, Release 1.8 } addaction(oAction) oAction = new qAction(win) { settext("open") SetCLickevent("See :Open") } addaction(oAction) oAction = new qAction(win) { settext("save") SetCLickevent("See :Save") } addaction(oAction) oAction = new qAction(win) { settext("close") SetCLickevent("See :Close") } addaction(oAction) oCursor = new qCursor() exec(oCursor.pos()) } 60.10 Creating Toolbar In this example we will learn about using the QToolBar class Load "guilib.ring" New qApp { win1 = new qMainWindow() { setwindowtitle("Using QToolbar") setGeometry(100,100,600,400) abtns = [ new qpushbutton(win1) { settext("Add") } , new qpushbutton(win1) { settext("Edit") } , new qpushbutton(win1) { settext("Find") } , new qpushbutton(win1) { settext("Delete") } , new qpushbutton(win1) { settext("Exit") setclickevent("win1.close()") } ] tool1 = new qtoolbar(win1) { for x in abtns addwidget(x) addseparator() next setmovable(true) setGeometry(0,0,500,30) setFloatable(true) } show() } exec() } 60.10. Creating Toolbar 645
  • 6. Ring Documentation, Release 1.8 The application during the runtime 60.11 Creating StatusBar In this example we will learn about using the QStatusBar class Load "guilib.ring" New qApp { win1 = new qMainWindow() { setwindowtitle("Using QStatusbar") setGeometry(100,100,400,400) status1 = new qstatusbar(win1) { showmessage("Ready!",0) } setstatusbar(status1) show() } exec() } 60.11. Creating StatusBar 646
  • 7. Ring Documentation, Release 1.8 The application during the runtime 60.12 Using QDockWidget In this example we will learn about using the QDockWidget class Load "guilib.ring" New qApp { win1 = new qMainWindow() { setwindowtitle("QDockWidget") setGeometry(100,100,400,400) label1 = new qlabel(win1) { settext("Hello") setGeometry(300,300,100,100) } label2 = new qlabel(win1) { settext("How are you ?") setGeometry(100,100,100,100) } dock1 = new qdockwidget(win1,0) { 60.12. Using QDockWidget 647
  • 8. Ring Documentation, Release 1.8 setwidget(label1) SetAllowedAreas(1) } dock2 = new qdockwidget(win1,0) { setwidget(label2) SetAllowedAreas(2) } adddockwidget(Qt_LeftDockWidgetArea,dock1,Qt_Horizontal) adddockwidget(Qt_LeftDockWidgetArea,dock2,Qt_Vertical) show() } exec() } The application during the runtime 60.13 Using QTabWidget In this example we will learn about using the QTabWidget class Load "guilib.ring" New qApp { 60.13. Using QTabWidget 648
  • 9. Ring Documentation, Release 1.8 win1 = new qMainWindow() { setwindowtitle("Using QTabWidget") setGeometry(100,100,400,400) page1 = new qwidget() { new qpushbutton(page1) { settext("The First Page") } } page2 = new qwidget() { new qpushbutton(page2) { settext("The Second Page") } } page3 = new qwidget() { new qpushbutton(page3) { settext("The Third Page") } } tab1 = new qtabwidget(win1) { inserttab(0,page1,"Page 1") inserttab(1,page2,"Page 2") inserttab(2,page3,"Page 3") setGeometry(100,100,400,400) } status1 = new qstatusbar(win1) { showmessage("Ready!",0) } setstatusbar(status1) showMaximized() } exec() } The application during the runtime 60.13. Using QTabWidget 649
  • 10. Ring Documentation, Release 1.8 60.14 Using QTableWidget In this example we will learn about using the QTableWidget class Load "guilib.ring" New qApp { win1 = new qMainWindow() { setGeometry(100,100,1100,370) setwindowtitle("Using QTableWidget") Table1 = new qTableWidget(win1) { setrowcount(10) setcolumncount(10) setGeometry(0,0,800,400) setselectionbehavior(QAbstractItemView_SelectRows) for x = 1 to 10 for y = 1 to 10 item1 = new qtablewidgetitem("R"+X+"C"+Y) setitem(x-1,y-1,item1) next next } setcentralwidget(table1) show() } 60.14. Using QTableWidget 650