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
|
'\" t
.TH TQMainWindow 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
TQMainWindow \- Main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar
.SH SYNOPSIS
\fC#include <tqmainwindow.h>\fR
.PP
Inherits TQWidget.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBTQMainWindow\fR ( TQWidget * parent = 0, const char * name = 0, WFlags f = WType_TopLevel )"
.br
.ti -1c
.BI "\fB~TQMainWindow\fR ()"
.br
.ti -1c
.BI "TQMenuBar * \fBmenuBar\fR () const"
.br
.ti -1c
.BI "TQStatusBar * \fBstatusBar\fR () const"
.br
.ti -1c
.BI "TQToolTipGroup * \fBtoolTipGroup\fR () const"
.br
.ti -1c
.BI "virtual void \fBsetCentralWidget\fR ( TQWidget * w )"
.br
.ti -1c
.BI "TQWidget * \fBcentralWidget\fR () const"
.br
.ti -1c
.BI "virtual void \fBsetDockEnabled\fR ( Dock dock, bool enable )"
.br
.ti -1c
.BI "bool \fBisDockEnabled\fR ( Dock dock ) const"
.br
.ti -1c
.BI "bool \fBisDockEnabled\fR ( QDockArea * area ) const"
.br
.ti -1c
.BI "virtual void \fBsetDockEnabled\fR ( QDockWindow * dw, Dock dock, bool enable )"
.br
.ti -1c
.BI "bool \fBisDockEnabled\fR ( QDockWindow * tb, Dock dock ) const"
.br
.ti -1c
.BI "bool \fBisDockEnabled\fR ( QDockWindow * dw, QDockArea * area ) const"
.br
.ti -1c
.BI "virtual void \fBaddDockWindow\fR ( QDockWindow * dockWindow, Dock edge = DockTop, bool newLine = FALSE )"
.br
.ti -1c
.BI "virtual void \fBaddDockWindow\fR ( QDockWindow * dockWindow, const TQString & label, Dock edge = DockTop, bool newLine = FALSE )"
.br
.ti -1c
.BI "virtual void \fBmoveDockWindow\fR ( QDockWindow * dockWindow, Dock edge = DockTop )"
.br
.ti -1c
.BI "virtual void \fBmoveDockWindow\fR ( QDockWindow * dockWindow, Dock edge, bool nl, int index, int extraOffset = -1 )"
.br
.ti -1c
.BI "virtual void \fBremoveDockWindow\fR ( QDockWindow * dockWindow )"
.br
.ti -1c
.BI "bool rightJustification () const \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool \fBusesBigPixmaps\fR () const"
.br
.ti -1c
.BI "bool \fBusesTextLabel\fR () const"
.br
.ti -1c
.BI "bool \fBdockWindowsMovable\fR () const"
.br
.ti -1c
.BI "bool \fBopaqueMoving\fR () const"
.br
.ti -1c
.BI "bool \fBgetLocation\fR ( QDockWindow * dw, Dock & dock, int & index, bool & nl, int & extraOffset ) const"
.br
.ti -1c
.BI "TQPtrList<QDockWindow> \fBdockWindows\fR ( Dock dock ) const"
.br
.ti -1c
.BI "TQPtrList<QDockWindow> \fBdockWindows\fR () const"
.br
.ti -1c
.BI "void \fBlineUpDockWindows\fR ( bool keepNewLines = FALSE )"
.br
.ti -1c
.BI "bool \fBisDockMenuEnabled\fR () const"
.br
.ti -1c
.BI "bool \fBhasDockWindow\fR ( QDockWindow * dw )"
.br
.ti -1c
.BI "void addToolBar ( QDockWindow *, Dock = DockTop, bool newLine = FALSE ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "void addToolBar ( QDockWindow *, const TQString & label, Dock = DockTop, bool newLine = FALSE ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "void moveToolBar ( QDockWindow *, Dock = DockTop ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "void moveToolBar ( QDockWindow *, Dock, bool nl, int index, int extraOffset = -1 ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "void removeToolBar ( QDockWindow * ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool toolBarsMovable () const \fI(obsolete)\fR"
.br
.ti -1c
.BI "TQPtrList<TQToolBar> \fBtoolBars\fR ( Dock dock ) const"
.br
.ti -1c
.BI "void lineUpToolBars ( bool keepNewLines = FALSE ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "QDockArea * \fBleftDock\fR () const"
.br
.ti -1c
.BI "QDockArea * \fBrightDock\fR () const"
.br
.ti -1c
.BI "QDockArea * \fBtopDock\fR () const"
.br
.ti -1c
.BI "QDockArea * \fBbottomDock\fR () const"
.br
.ti -1c
.BI "virtual bool \fBisCustomizable\fR () const"
.br
.ti -1c
.BI "bool \fBappropriate\fR ( QDockWindow * dw ) const"
.br
.ti -1c
.BI "enum \fBDockWindows\fR { OnlyToolBars, NoToolBars, AllDockWindows }"
.br
.ti -1c
.BI "TQPopupMenu * \fBcreateDockWindowMenu\fR ( DockWindows dockWindows = AllDockWindows ) const"
.br
.in -1c
.SS "Public Slots"
.in +1c
.ti -1c
.BI "virtual void setRightJustification ( bool ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "virtual void \fBsetUsesBigPixmaps\fR ( bool )"
.br
.ti -1c
.BI "virtual void \fBsetUsesTextLabel\fR ( bool )"
.br
.ti -1c
.BI "virtual void \fBsetDockWindowsMovable\fR ( bool )"
.br
.ti -1c
.BI "virtual void \fBsetOpaqueMoving\fR ( bool )"
.br
.ti -1c
.BI "virtual void \fBsetDockMenuEnabled\fR ( bool b )"
.br
.ti -1c
.BI "virtual void \fBwhatsThis\fR ()"
.br
.ti -1c
.BI "virtual void \fBsetAppropriate\fR ( QDockWindow * dw, bool a )"
.br
.ti -1c
.BI "virtual void \fBcustomize\fR ()"
.br
.ti -1c
.BI "void setToolBarsMovable ( bool ) \fI(obsolete)\fR"
.br
.in -1c
.SS "Signals"
.in +1c
.ti -1c
.BI "void \fBpixmapSizeChanged\fR ( bool )"
.br
.ti -1c
.BI "void \fBusesTextLabelChanged\fR ( bool )"
.br
.ti -1c
.BI "void \fBdockWindowPositionChanged\fR ( QDockWindow * dockWindow )"
.br
.ti -1c
.BI "void toolBarPositionChanged ( TQToolBar * ) \fI(obsolete)\fR"
.br
.in -1c
.SS "Properties"
.in +1c
.ti -1c
.BI "bool \fBdockWindowsMovable\fR - whether the dock windows are movable"
.br
.ti -1c
.BI "bool \fBopaqueMoving\fR - whether dock windows are moved opaquely"
.br
.ti -1c
.BI "bool rightJustification - whether the main window right-justifies its dock windows \fI(obsolete)\fR"
.br
.ti -1c
.BI "bool \fBusesBigPixmaps\fR - whether big pixmaps are enabled"
.br
.ti -1c
.BI "bool \fBusesTextLabel\fR - whether text labels for toolbar buttons are enabled"
.br
.in -1c
.SS "Protected Members"
.in +1c
.ti -1c
.BI "virtual void \fBchildEvent\fR ( QChildEvent * e )"
.br
.in -1c
.SS "Protected Slots"
.in +1c
.ti -1c
.BI "virtual void \fBsetUpLayout\fR ()"
.br
.ti -1c
.BI "virtual bool \fBshowDockMenu\fR ( const TQPoint & globalPos )"
.br
.ti -1c
.BI "void \fBmenuAboutToShow\fR ()"
.br
.in -1c
.SH RELATED FUNCTION DOCUMENTATION
.in +1c
.ti -1c
.BI "TQTextStream & \fBoperator<<\fR ( TQTextStream & ts, const TQMainWindow & mainWindow )"
.br
.ti -1c
.BI "TQTextStream & \fBoperator>>\fR ( TQTextStream & ts, TQMainWindow & mainWindow )"
.br
.in -1c
.SH DESCRIPTION
The TQMainWindow class provides a main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar.
.PP
Main windows are most often used to provide menus, toolbars and a status bar around a large central widget, such as a text edit, drawing canvas or TQWorkspace (for MDI applications). TQMainWindow is usually subclassed since this makes it easier to encapsulate the central widget, menus and toolbars as well as the window's state. Subclassing makes it possible to create the slots that are called when the user clicks menu items or toolbar buttons. You can also create main windows using TQt Designer. We'll briefly review adding menu items and toolbar buttons then describe the facilities of TQMainWindow itself.
.PP
.nf
.br
TQMainWindow *mw = new TQMainWindow;
.br
TQTextEdit *edit = new TQTextEdit( mw, "editor" );
.br
edit->setFocus();
.br
mw->setCaption( "Main Window" );
.br
mw->setCentralWidget( edit );
.br
mw->show();
.br
.fi
.PP
TQMainWindows may be created in their own right as shown above. The central widget is set with setCentralWidget(). Popup menus can be added to the default menu bar, widgets can be added to the status bar, toolbars and dock windows can be added to any of the dock areas.
.PP
.nf
.br
ApplicationWindow *mw = new ApplicationWindow();
.br
mw->setCaption( "TQt Example - Application" );
.br
mw->show();
.fi
.PP
In the extract above ApplicationWindow is a subclass of TQMainWindow that we must write for ourselves; this is the usual approach to using TQMainWindow. (The source for the extracts in this description are taken from application/main.cpp, application/application.cpp, action/main.cpp, and action/application.cpp )
.PP
When subclassing we add the menu items and toolbars in the subclass's constructor. If we've created a TQMainWindow instance directly we can add menu items and toolbars just as easily by passing the TQMainWindow instance as the parent instead of the \fIthis\fR pointer.
.PP
.nf
.br
TQPopupMenu * help = new TQPopupMenu( this );
.br
menuBar()->insertItem( "&Help", help );
.br
.br
help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
.fi
.PP
Here we've added a new menu with one menu item. The menu has been inserted into the menu bar that TQMainWindow provides by default and which is accessible through the menuBar() function. The slot will be called when the menu item is clicked.
.PP
.nf
.br
TQToolBar * fileTools = new TQToolBar( this, "file operations" );
.br
fileTools->setLabel( "File Operations" );
.fi
.PP
.nf
.br
TQToolButton * fileOpen
.br
= new TQToolButton( openIcon, "Open File", TQString::null,
.br
this, TQ_SLOT(choose()), fileTools, "open file" );
.fi
.PP
This extract shows the creation of a toolbar with one toolbar button. TQMainWindow supplies four dock areas for toolbars. When a toolbar is created as a child of a TQMainWindow (or derived class) instance it will be placed in a dock area (the Top dock area by default). The slot will be called when the toolbar button is clicked. Any dock window can be added to a dock area either using addDockWindow(), or by creating a dock window with the TQMainWindow as the parent.
.PP
.nf
.br
e = new TQTextEdit( this, "editor" );
.br
e->setFocus();
.br
setCentralWidget( e );
.br
statusBar()->message( "Ready", 2000 );
.fi
.PP
Having created the menus and toolbar we create an instance of the large central widget, give it the focus and set it as the main window's central widget. In the example we've also set the status bar, accessed via the statusBar() function, to an initial message which will be displayed for two seconds. Note that you can add additional widgets to the status bar, for example labels, to show further status information. See the TQStatusBar documentation for details, particularly the addWidget() function.
.PP
Often we want to synchronize a toolbar button with a menu item. For example, if the user clicks a 'bold' toolbar button we want the 'bold' menu item to be checked. This synchronization can be achieved automatically by creating actions and adding the actions to the toolbar and menu.
.PP
.nf
.br
TQAction * fileOpenAction;
.fi
.PP
.nf
.br
fileOpenAction = new TQAction( TQPixmap( fileopen ), "&Open...",
.br
CTRL+Key_O, this, "open" );
.br
connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) );
.fi
.PP
Here we create an action with an icon which will be used in any menu and toolbar that the action is added to. We've also given the action a menu name, '&Open', and a keyboard shortcut. The connection that we have made will be used when the user clicks either the menu item \fIor\fR the toolbar button.
.PP
.nf
.br
TQPopupMenu * file = new TQPopupMenu( this );
.br
menuBar()->insertItem( "&File", file );
.fi
.PP
.nf
.br
fileOpenAction->addTo( file );
.fi
.PP
The extract above shows the creation of a popup menu. We add the menu to the TQMainWindow's menu bar and add our action.
.PP
.nf
.br
TQToolBar * fileTools = new TQToolBar( this, "file operations" );
.br
fileTools->setLabel( "File Operations" );
.br
fileOpenAction->addTo( fileTools );
.fi
.PP
Here we create a new toolbar as a child of the TQMainWindow and add our action to the toolbar.
.PP
We'll now explore the functionality offered by TQMainWindow.
.PP
The main window will take care of the dock areas, and the geometry of the central widget, but all other aspects of the central widget are left to you. TQMainWindow automatically detects the creation of a menu bar or status bar if you specify the TQMainWindow as parent, or you can use the provided menuBar() and statusBar() functions. The functions menuBar() and statusBar() create a suitable widget if one doesn't exist, and update the window's layout to make space.
.PP
TQMainWindow provides a TQToolTipGroup connected to the status bar. The function toolTipGroup() provides access to the default TQToolTipGroup. It isn't possible to set a different tool tip group.
.PP
New dock windows and toolbars can be added to a TQMainWindow using addDockWindow(). Dock windows can be moved using moveDockWindow() and removed with removeDockWindow(). TQMainWindow allows default dock window (toolbar) docking in all its dock areas (Top, Left, Right, Bottom). You can use setDockEnabled() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: Top, Left, Right, Bottom, Minimized (effectively a 'hidden' dock area) and TornOff (floating). See TQt::Dock for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. TQToolbar is a subclass of QDockWindow so all functions that work with dock windows work on toolbars in the same way.
.PP
If the user clicks the close button, then the dock window is hidden. A dock window can be hidden or unhidden by the user by right clicking a dock area and clicking the name of the relevant dock window on the pop up dock window menu. This menu lists the names of every dock window; visible dock windows have a tick beside their names. The dock window menu is created automatically as required by createDockWindowMenu(). Since it may not always be appropriate for a dock window to appear on this menu the setAppropriate() function is used to inform the main window whether or not the dock window menu should include a particular dock window. Double clicking a dock window handle (usually on the left-hand side of the dock window) undocks (floats) the dock window. Double clicking a floating dock window's titlebar will dock the floating dock window. (See also TQMainWindow::DockWindows.)
.PP
Some functions change the appearance of a TQMainWindow globally:
.TP
QDockWindow::setHorizontalStretchable() and QDockWindow::setVerticalStretchable() are used to make specific dock windows or toolbars stretchable.
.TP
setUsesBigPixmaps() is used to set whether tool buttons should draw small or large pixmaps (see TQIconSet for more information).
.TP
setUsesTextLabel() is used to set whether tool buttons should display a textual label in addition to pixmaps (see TQToolButton for more information).
.PP
The user can drag dock windows into any enabled docking area. Dock windows can also be dragged \fIwithin\fR a docking area, for example to rearrange the order of some toolbars. Dock windows can also be dragged outside any docking area (undocked or 'floated'). Being able to drag dock windows can be enabled (the default) and disabled using setDockWindowsMovable().
.PP
The Minimized edge is a hidden dock area. If this dock area is enabled the user can hide (minimize) a dock window or show (restore) a minimized dock window by clicking the dock window handle. If the user hovers the mouse cursor over one of the handles, the caption of the dock window is displayed in a tool tip (see QDockWindow::caption() or TQToolBar::label()), so if you enable the Minimized dock area, it is best to specify a meaningful caption or label for each dock window. To minimize a dock window programmatically use moveDockWindow() with an edge of Minimized.
.PP
Dock windows are moved transparently by default, i.e. during the drag an outline rectangle is drawn on the screen representing the position of the dock window as it moves. If you want the dock window to be shown normally whilst it is moved use setOpaqueMoving().
.PP
The location of a dock window, i.e. its dock area and position within the dock area, can be determined by calling getLocation(). Movable dock windows can be lined up to minimize wasted space with lineUpDockWindows(). Pointers to the dock areas are available from topDock(), leftDock(), rightDock() and bottomDock(). A customize menu item is added to the pop up dock window menu if isCustomizable() returns TRUE; it returns FALSE by default. Reimplement isCustomizable() and customize() if you want to offer this extra menu item, for example, to allow the user to change settings relating to the main window and its toolbars and dock windows.
.PP
The main window's menu bar is fixed (at the top) by default. If you want a movable menu bar, create a TQMenuBar as a stretchable widget inside its own movable dock window and restrict this dock window to only live within the Top or Bottom dock:
.PP
.nf
.br
TQToolBar *tb = new TQToolBar( this );
.br
addDockWindow( tb, tr( "Menubar" ), Top, FALSE );
.br
TQMenuBar *mb = new TQMenuBar( tb );
.br
mb->setFrameStyle( QFrame::NoFrame );
.br
tb->setStretchableWidget( mb );
.br
setDockEnabled( tb, Left, FALSE );
.br
setDockEnabled( tb, Right, FALSE );
.br
.fi
.PP
An application with multiple dock windows can choose to save the current dock window layout in order to restore it later, e.g. in the next session. You can do this by using the streaming operators for TQMainWindow.
.PP
To save the layout and positions of all the dock windows do this:
.PP
.nf
.br
TQFile file( filename );
.br
if ( file.open( IO_WriteOnly ) ) {
.br
TQTextStream stream( &file );
.br
stream << *mainWindow;
.br
file.close();
.br
}
.br
.fi
.PP
To restore the dock window positions and sizes (normally when the application is next started), do following:
.PP
.nf
.br
TQFile file( filename );
.br
if ( file.open( IO_ReadOnly ) ) {
.br
TQTextStream stream( &file );
.br
stream >> *mainWindow;
.br
file.close();
.br
}
.br
.fi
.PP
The TQSettings class can be used in conjunction with the streaming operators to store the application's settings.
.PP
TQMainWindow's management of dock windows and toolbars is done transparently behind-the-scenes by QDockArea.
.PP
For multi-document interfaces (MDI), use a TQWorkspace as the central widget.
.PP
Adding dock windows, e.g. toolbars, to TQMainWindow's dock areas is straightforward. If the supplied dock areas are not sufficient for your application we suggest that you create a TQWidget subclass and add your own dock areas (see QDockArea) to the subclass since TQMainWindow provides functionality specific to the standard dock areas it provides.
.PP
.ce 1
.B "[Image Omitted]"
.PP
.ce 1
.B "[Image Omitted]"
.PP
See also TQToolBar, QDockWindow, TQStatusBar, TQAction, TQMenuBar, TQPopupMenu, TQToolTipGroup, QDialog, and Main Window and Related Classes.
.SS "Member Type Documentation"
.SH "TQMainWindow::DockWindows"
Right-clicking a dock area will pop-up the dock window menu (createDockWindowMenu() is called automatically). When called in code you can specify what items should appear on the menu with this enum.
.TP
\fCTQMainWindow::OnlyToolBars\fR - The menu will list all the toolbars, but not any other dock windows.
.TP
\fCTQMainWindow::NoToolBars\fR - The menu will list dock windows but not toolbars.
.TP
\fCTQMainWindow::AllDockWindows\fR - The menu will list all toolbars and other dock windows. (This is the default.)
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQMainWindow::TQMainWindow ( TQWidget * parent = 0, const char * name = 0, WFlags f = WType_TopLevel )"
Constructs an empty main window. The \fIparent\fR, \fIname\fR and widget flags \fIf\fR, are passed on to the TQWidget constructor.
.PP
By default, the widget flags are set to WType_TopLevel rather than 0 as they are with TQWidget. If you don't want your TQMainWindow to be a top level widget then you will need to set \fIf\fR to 0.
.SH "TQMainWindow::~TQMainWindow ()"
Destroys the object and frees any allocated resources.
.SH "void TQMainWindow::addDockWindow ( QDockWindow * dockWindow, Dock edge = DockTop, bool newLine = FALSE )\fC [virtual]\fR"
Adds \fIdockWindow\fR to the \fIedge\fR dock area.
.PP
If \fInewLine\fR is FALSE (the default) then the \fIdockWindow\fR is added at the end of the \fIedge\fR. For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right. If \fInewLine\fR is TRUE a new line of dock windows is started with \fIdockWindow\fR as the first (left-most and top-most) dock window.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::addDockWindow ( QDockWindow * dockWindow, const TQString & label, Dock edge = DockTop, bool newLine = FALSE )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds \fIdockWindow\fR to the dock area with label \fIlabel\fR.
.PP
If \fInewLine\fR is FALSE (the default) the \fIdockWindow\fR is added at the end of the \fIedge\fR. For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right. If \fInewLine\fR is TRUE a new line of dock windows is started with \fIdockWindow\fR as the first (left-most and top-most) dock window.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::addToolBar ( QDockWindow *, Dock = DockTop, bool newLine = FALSE )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void TQMainWindow::addToolBar ( QDockWindow *, const TQString & label, Dock = DockTop, bool newLine = FALSE )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.SH "bool TQMainWindow::appropriate ( QDockWindow * dw ) const"
Returns TRUE if it is appropriate to include a menu item for the \fIdw\fR dock window in the dock window menu; otherwise returns FALSE.
.PP
The user is able to change the state (show or hide) a dock window that has a menu item by clicking the item.
.PP
Call setAppropriate() to indicate whether or not a particular dock window should appear on the popup menu.
.PP
See also setAppropriate().
.SH "QDockArea * TQMainWindow::bottomDock () const"
Returns a pointer the Bottom dock area
.PP
See also topDock(), leftDock(), and rightDock().
.SH "TQWidget * TQMainWindow::centralWidget () const"
Returns a pointer to the main window's central widget.
.PP
The central widget is surrounded by the left, top, right and bottom dock areas. The menu bar is above the top dock area.
.PP
See also setCentralWidget().
.PP
Example: qfd/qfd.cpp.
.SH "void TQMainWindow::childEvent ( QChildEvent * e )\fC [virtual protected]\fR"
Monitors events, recieved in \fIe\fR, to ensure the layout is updated.
.PP
Reimplemented from TQObject.
.SH "TQPopupMenu * TQMainWindow::createDockWindowMenu ( DockWindows dockWindows = AllDockWindows ) const"
Creates the dock window menu which contains all toolbars (if \fIdockWindows\fR is OnlyToolBars ), all dock windows (if \fIdockWindows\fR is NoToolBars) or all toolbars and dock windows (if \fIdockWindows\fR is AllDockWindows - the default).
.PP
This function is called internally when necessary, e.g. when the user right clicks a dock area (providing isDockMenuEnabled() returns TRUE).
.PP
The menu items representing the toolbars and dock windows are checkable. The visible dock windows are checked and the hidden dock windows are unchecked. The user can click a menu item to change its state (show or hide the dock window).
.PP
The list and the state are always kept up-to-date.
.PP
Toolbars and dock windows which are not appropriate in the current context (see setAppropriate()) are not listed in the menu.
.PP
The menu also has a menu item for lining up the dock windows.
.PP
If isCustomizable() returns TRUE, a Customize menu item is added to the menu, which if clicked will call customize(). The isCustomizable() function we provide returns FALSE and customize() does nothing, so they must be reimplemented in a subclass to be useful.
.SH "void TQMainWindow::customize ()\fC [virtual slot]\fR"
This function is called when the user clicks the Customize menu item on the dock window menu.
.PP
The customize menu item will only appear if isCustomizable() returns TRUE (it returns FALSE by default).
.PP
The function is intended, for example, to provide the user with a means of telling the application that they wish to customize the main window, dock windows or dock areas.
.PP
The default implementation does nothing and the Customize menu item is not shown on the right-click menu by default. If you want the item to appear then reimplement isCustomizable() to return TRUE, and reimplement this function to do whatever you want.
.PP
See also isCustomizable().
.SH "void TQMainWindow::dockWindowPositionChanged ( QDockWindow * dockWindow )\fC [signal]\fR"
This signal is emitted when the \fIdockWindow\fR has changed its position. A change in position occurs when a dock window is moved within its dock area or moved to another dock area (including the Minimized and \fCTearOff\fR dock areas).
.PP
See also getLocation().
.SH "TQPtrList<QDockWindow> TQMainWindow::dockWindows ( Dock dock ) const"
Returns a list of all the dock windows which are in the \fIdock\fR dock area, regardless of their state.
.PP
For example, the DockTornOff dock area may contain closed dock windows but these are returned along with the visible dock windows.
.SH "TQPtrList<QDockWindow> TQMainWindow::dockWindows () const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the list of dock windows which belong to this main window, regardless of which dock area they are in or what their state is, (e.g. irrespective of whether they are visible or not).
.SH "bool TQMainWindow::dockWindowsMovable () const"
Returns TRUE if the dock windows are movable; otherwise returns FALSE. See the "dockWindowsMovable" property for details.
.SH "bool TQMainWindow::getLocation ( QDockWindow * dw, Dock & dock, int & index, bool & nl, int & extraOffset ) const"
Finds the location of the dock window \fIdw\fR.
.PP
If the \fIdw\fR dock window is found in the main window the function returns TRUE and populates the \fIdock\fR variable with the dw's dock area and the \fIindex\fR with the dw's position within the dock area. It also sets \fInl\fR to TRUE if the \fIdw\fR begins a new line (otherwise FALSE), and \fIextraOffset\fR with the dock window's offset.
.PP
If the \fIdw\fR dock window is not found then the function returns FALSE and the state of \fIdock\fR, \fIindex\fR, \fInl\fR and \fIextraOffset\fR is undefined.
.PP
If you want to save and restore dock window positions then use operator>>() and operator<<().
.PP
See also operator>>() and operator<<().
.SH "bool TQMainWindow::hasDockWindow ( QDockWindow * dw )"
Returns TRUE if \fIdw\fR is a dock window known to the main window; otherwise returns FALSE.
.SH "bool TQMainWindow::isCustomizable () const\fC [virtual]\fR"
Returns TRUE if the dock area dock window menu includes the Customize menu item (which calls customize() when clicked). Returns FALSE by default, i.e. the popup menu will not contain a Customize menu item. You will need to reimplement this function and set it to return TRUE if you wish the user to be able to see the dock window menu.
.PP
See also customize().
.SH "bool TQMainWindow::isDockEnabled ( Dock dock ) const"
Returns TRUE if the \fIdock\fR dock area is enabled, i.e. it can accept user dragged dock windows; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockEnabled ( QDockArea * area ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIarea\fR is enabled, i.e. it can accept user dragged dock windows; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockEnabled ( QDockWindow * tb, Dock dock ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIdock\fR is enabled for the dock window \fItb\fR; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockEnabled ( QDockWindow * dw, QDockArea * area ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIarea\fR is enabled for the dock window \fIdw\fR; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockMenuEnabled () const"
Returns TRUE, if the dock window menu is enabled; otherwise returns FALSE.
.PP
The menu lists the (appropriate()) dock windows (which may be shown or hidden), and has a "Line Up Dock Windows" menu item. It will also have a "Customize" menu item if isCustomizable() returns TRUE.
.PP
See also setDockEnabled(), lineUpDockWindows(), appropriate(), and setAppropriate().
.SH "QDockArea * TQMainWindow::leftDock () const"
Returns the Left dock area
.PP
See also rightDock(), topDock(), and bottomDock().
.SH "void TQMainWindow::lineUpDockWindows ( bool keepNewLines = FALSE )"
This function will line up dock windows within the visible dock areas (Top, Left, Right and Bottom) as compactly as possible.
.PP
If \fIkeepNewLines\fR is TRUE, all dock windows stay on their original lines. If \fIkeepNewLines\fR is FALSE then newlines may be removed to achieve the most compact layout possible.
.PP
The method only works if dockWindowsMovable() returns TRUE.
.SH "void TQMainWindow::lineUpToolBars ( bool keepNewLines = FALSE )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void TQMainWindow::menuAboutToShow ()\fC [protected slot]\fR"
This slot is called from the aboutToShow() signal of the default dock menu of the mainwindow. The default implementation initializes the menu with all dock windows and toolbars in this slot.
.SH "TQMenuBar * TQMainWindow::menuBar () const"
Returns the menu bar for this window.
.PP
If there isn't one, then menuBar() creates an empty menu bar.
.PP
See also statusBar().
.SH "void TQMainWindow::moveDockWindow ( QDockWindow * dockWindow, Dock edge = DockTop )\fC [virtual]\fR"
Moves \fIdockWindow\fR to the end of the \fIedge\fR.
.PP
For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::moveDockWindow ( QDockWindow * dockWindow, Dock edge, bool nl, int index, int extraOffset = -1 )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Moves \fIdockWindow\fR to position \fIindex\fR within the \fIedge\fR dock area.
.PP
Any dock windows with positions \fIindex\fR or higher have their position number incremented and any of these on the same line are moved right (down for vertical dock areas) to make room.
.PP
If \fInl\fR is TRUE, a new dock window line is created below the line in which the moved dock window appears and the moved dock window, with any others with higher positions on the same line, is moved to this new line.
.PP
The \fIextraOffset\fR is the space to put between the left side of the dock area (top side for vertical dock areas) and the dock window. (This is mostly used for restoring dock windows to the positions the user has dragged them to.)
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::moveToolBar ( QDockWindow *, Dock = DockTop )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void TQMainWindow::moveToolBar ( QDockWindow *, Dock, bool nl, int index, int extraOffset = -1 )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.SH "bool TQMainWindow::opaqueMoving () const"
Returns TRUE if dock windows are moved opaquely; otherwise returns FALSE. See the "opaqueMoving" property for details.
.SH "void TQMainWindow::pixmapSizeChanged ( bool )\fC [signal]\fR"
This signal is emitted whenever the setUsesBigPixmaps() is called with a value different to the current setting. All widgets that should respond to such changes, e.g. toolbar buttons, must connect to this signal.
.SH "void TQMainWindow::removeDockWindow ( QDockWindow * dockWindow )\fC [virtual]\fR"
Removes \fIdockWindow\fR from the main window's docking area, provided \fIdockWindow\fR is non-null and managed by this main window.
.SH "void TQMainWindow::removeToolBar ( QDockWindow * )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "QDockArea * TQMainWindow::rightDock () const"
Returns the Right dock area
.PP
See also leftDock(), topDock(), and bottomDock().
.SH "bool TQMainWindow::rightJustification () const"
Returns TRUE if the main window right-justifies its dock windows; otherwise returns FALSE. See the "rightJustification" property for details.
.SH "void TQMainWindow::setAppropriate ( QDockWindow * dw, bool a )\fC [virtual slot]\fR"
Use this function to control whether or not the \fIdw\fR dock window's caption should appear as a menu item on the dock window menu that lists the dock windows.
.PP
If \fIa\fR is TRUE then the \fIdw\fR will appear as a menu item on the dock window menu. The user is able to change the state (show or hide) a dock window that has a menu item by clicking the item; depending on the state of your application, this may or may not be appropriate. If \fIa\fR is FALSE the \fIdw\fR will not appear on the popup menu.
.PP
See also showDockMenu(), isCustomizable(), and customize().
.SH "void TQMainWindow::setCentralWidget ( TQWidget * w )\fC [virtual]\fR"
Sets the central widget for this main window to \fIw\fR.
.PP
The central widget is surrounded by the left, top, right and bottom dock areas. The menu bar is above the top dock area.
.PP
See also centralWidget().
.SH "void TQMainWindow::setDockEnabled ( Dock dock, bool enable )\fC [virtual]\fR"
If \fIenable\fR is TRUE then users can dock windows in the \fIdock\fR area. If \fIenable\fR is FALSE users cannot dock windows in the \fIdock\fR dock area.
.PP
Users can dock (drag) dock windows into any enabled dock area.
.SH "void TQMainWindow::setDockEnabled ( QDockWindow * dw, Dock dock, bool enable )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
If \fIenable\fR is TRUE then users can dock the \fIdw\fR dock window in the \fIdock\fR area. If \fIenable\fR is FALSE users cannot dock the \fIdw\fR dock window in the \fIdock\fR area.
.PP
In general users can dock (drag) dock windows into any enabled dock area. Using this function particular dock areas can be enabled (or disabled) as docking points for particular dock windows.
.SH "void TQMainWindow::setDockMenuEnabled ( bool b )\fC [virtual slot]\fR"
If \fIb\fR is TRUE, then right clicking on a dock window or dock area will pop up the dock window menu. If \fIb\fR is FALSE, right clicking a dock window or dock area will not pop up the menu.
.PP
The menu lists the (appropriate()) dock windows (which may be shown or hidden), and has a "Line Up Dock Windows" item. It will also have a "Customize" menu item if isCustomizable() returns TRUE.
.PP
See also lineUpDockWindows() and isDockMenuEnabled().
.SH "void TQMainWindow::setDockWindowsMovable ( bool )\fC [virtual slot]\fR"
Sets whether the dock windows are movable. See the "dockWindowsMovable" property for details.
.SH "void TQMainWindow::setOpaqueMoving ( bool )\fC [virtual slot]\fR"
Sets whether dock windows are moved opaquely. See the "opaqueMoving" property for details.
.SH "void TQMainWindow::setRightJustification ( bool )\fC [virtual slot]\fR"
Sets whether the main window right-justifies its dock windows. See the "rightJustification" property for details.
.SH "void TQMainWindow::setToolBarsMovable ( bool )\fC [slot]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void TQMainWindow::setUpLayout ()\fC [virtual protected slot]\fR"
Sets up the geometry management of the window. It is called automatically when needed, so you shouldn't need to call it.
.SH "void TQMainWindow::setUsesBigPixmaps ( bool )\fC [virtual slot]\fR"
Sets whether big pixmaps are enabled. See the "usesBigPixmaps" property for details.
.SH "void TQMainWindow::setUsesTextLabel ( bool )\fC [virtual slot]\fR"
Sets whether text labels for toolbar buttons are enabled. See the "usesTextLabel" property for details.
.SH "bool TQMainWindow::showDockMenu ( const TQPoint & globalPos )\fC [virtual protected slot]\fR"
Shows the dock menu at the position \fIglobalPos\fR. The menu lists the dock windows so that they can be shown (or hidden), lined up, and possibly customized. Returns TRUE if the menu is shown; otherwise returns FALSE.
.PP
If you want a custom menu, reimplement this function. You can create the menu from scratch or call createDockWindowMenu() and modify the result.
.SH "TQStatusBar * TQMainWindow::statusBar () const"
Returns this main window's status bar. If there isn't one, statusBar() creates an empty status bar, and if necessary a tool tip group too.
.PP
See also menuBar() and toolTipGroup().
.PP
Example: qfd/qfd.cpp.
.SH "void TQMainWindow::toolBarPositionChanged ( TQToolBar * )\fC [signal]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "TQPtrList<TQToolBar> TQMainWindow::toolBars ( Dock dock ) const"
Returns a list of all the toolbars which are in the \fIdock\fR dock area, regardless of their state.
.PP
For example, the TornOff dock area may contain closed toolbars but these are returned along with the visible toolbars.
.PP
See also dockWindows().
.SH "bool TQMainWindow::toolBarsMovable () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "TQToolTipGroup * TQMainWindow::toolTipGroup () const"
Returns this main window's tool tip group. If there isn't one, toolTipGroup() creates an empty tool tip group.
.PP
See also menuBar() and statusBar().
.SH "QDockArea * TQMainWindow::topDock () const"
Returns the Top dock area
.PP
See also bottomDock(), leftDock(), and rightDock().
.SH "bool TQMainWindow::usesBigPixmaps () const"
Returns TRUE if big pixmaps are enabled; otherwise returns FALSE. See the "usesBigPixmaps" property for details.
.SH "bool TQMainWindow::usesTextLabel () const"
Returns TRUE if text labels for toolbar buttons are enabled; otherwise returns FALSE. See the "usesTextLabel" property for details.
.SH "void TQMainWindow::usesTextLabelChanged ( bool )\fC [signal]\fR"
This signal is emitted whenever the setUsesTextLabel() is called with a value different to the current setting. All widgets that should respond to such changes, e.g. toolbar buttons, must connect to this signal.
.SH "void TQMainWindow::whatsThis ()\fC [virtual slot]\fR"
Enters 'What's This?' mode and returns immediately.
.PP
This is the same as TQWhatsThis::enterWhatsThisMode(), but implemented as a main window object's slot. This way it can easily be used for popup menus, for example:
.PP
.nf
.br
TQPopupMenu * help = new TQPopupMenu( this );
.br
help->insertItem( "What's &This", this , TQ_SLOT(whatsThis()), SHIFT+Key_F1);
.br
.fi
.PP
See also TQWhatsThis::enterWhatsThisMode().
.SS "Property Documentation"
.SH "bool dockWindowsMovable"
This property holds whether the dock windows are movable.
.PP
If TRUE (the default), the user will be able to move movable dock windows from one TQMainWindow dock area to another, including the \fCTearOff\fR area (i.e. where the dock window floats freely as a window in its own right), and the Minimized area (where only the dock window's handle is shown below the menu bar). Moveable dock windows can also be moved within TQMainWindow dock areas, i.e. to rearrange them within a dock area.
.PP
If FALSE the user will not be able to move any dock windows.
.PP
By default dock windows are moved transparently (i.e. only an outline rectangle is shown during the drag), but this setting can be changed with setOpaqueMoving().
.PP
See also setDockEnabled() and opaqueMoving.
.PP
Set this property's value with setDockWindowsMovable() and get this property's value with dockWindowsMovable().
.SH "bool opaqueMoving"
This property holds whether dock windows are moved opaquely.
.PP
If TRUE the dock windows of the main window are shown opaquely (i.e. it shows the toolbar as it looks when docked) whilst it is being moved. If FALSE (the default) they are shown transparently, (i.e. as an outline rectangle).
.PP
\fBWarning:\fR Opaque moving of toolbars and dockwindows is known to have several problems. We recommend avoiding the use of this feature for the time being. We intend fixing the problems in a future release.
.PP
Set this property's value with setOpaqueMoving() and get this property's value with opaqueMoving().
.SH "bool rightJustification"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This property holds whether the main window right-justifies its dock windows.
.PP
If disabled (the default), stretchable dock windows are expanded, and non-stretchable dock windows are given the minimum space they need. Since most dock windows are not stretchable, this usually results in an unjustified right edge (or unjustified bottom edge for a vertical dock area). If enabled, the main window will right-justify its dock windows.
.PP
See also QDockWindow::setVerticalStretchable() and QDockWindow::setHorizontalStretchable().
.PP
Set this property's value with setRightJustification() and get this property's value with rightJustification().
.SH "bool usesBigPixmaps"
This property holds whether big pixmaps are enabled.
.PP
If FALSE (the default), the tool buttons will use small pixmaps; otherwise big pixmaps will be used.
.PP
Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's pixmapSizeChanged() signal.
.PP
Set this property's value with setUsesBigPixmaps() and get this property's value with usesBigPixmaps().
.SH "bool usesTextLabel"
This property holds whether text labels for toolbar buttons are enabled.
.PP
If disabled (the default), the tool buttons will not use text labels. If enabled, text labels will be used.
.PP
Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's usesTextLabelChanged() signal.
.PP
See also TQToolButton::usesTextLabel.
.PP
Set this property's value with setUsesTextLabel() and get this property's value with usesTextLabel().
.SH RELATED FUNCTION DOCUMENTATION
.SH "TQTextStream & operator<< ( TQTextStream & ts, const TQMainWindow & mainWindow )"
Writes the layout (sizes and positions) of the dock windows in the dock areas of the TQMainWindow \fImainWindow\fR, including Minimized and TornOff dock windows, to the text stream \fIts\fR.
.PP
This can be used, for example, in conjunction with TQSettings to save the user's layout when the \\mainWindow receives a closeEvent.
.PP
See also operator>>() and closeEvent().
.SH "TQTextStream & operator>> ( TQTextStream & ts, TQMainWindow & mainWindow )"
Reads the layout (sizes and positions) of the dock windows in the dock areas of the TQMainWindow \fImainWindow\fR from the text stream, \fIts\fR, including Minimized and TornOff dock windows. Restores the dock windows and dock areas to these sizes and positions. The layout information must be in the format produced by operator<<().
.PP
This can be used, for example, in conjunction with TQSettings to restore the user's layout.
.PP
See also operator<<().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/tqmainwindow.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (tqmainwindow.3qt) and the Qt
version (3.3.8).
|