(index ("qt:init" 0) ("qt:run" 294) ("qt:widget" 588) ("qt:delete" 979) ("qt:show" 1153) ("qt:hide" 1239) ("qt:find" 1329) ("qt:pixmap" 1551) ("qt:update" 1689) ("qt:property" 1803) ("qt:receiver" 2619) ("qt:connect" 2827) ("qt:timer" 3278) ("qt:start" 3494) ("qt:stop" 3581) ("qt:clear" 3665) ("qt:add" 3813) ("qt:item" 4072) ("qt:set-headers" 4214) ("qt:selection" 4424) ("qt:insert" 4595) ("qt:message" 4728) ("qt:get-open-filename" 4941) ("qt:get-save-filename" 5374) ("qt:get-directory" 5542) ("qt:sound" 5703) ("qt:play" 5838) ("qt:stop" 5931) ("qt:shortcut" 6025) ("qt:add-action" 6421) ("qt:remove-action" 6546) ("qt:char-encoding" 6683) ("qt:gl" 7074) ("qt:classname" 7549))
(def (sig (procedure "(qt:init)" (id qt:init))) (p "Initializes Qt (including any command-line processing) and returns the application object, an instance of " (tt "<qt-application>") ". Performs an implicit") (pre "(qt:connect <application> \"lastWindowClosed()\" <application> \"quit()\")"))
(def (sig (procedure "(qt:run [ONCE])" (id qt:run))) (p "Runs the Qt event loop. If " (tt "ONCE") " is given and true, then the procedure returns once all pending events have been processed (use " (tt "(qt:run #t)") " in a loop when you want to do some custom idle processing, for example)."))
(def (sig (procedure "(qt:widget UIXML [PARENT])" (id qt:widget))) (p "Parses the UI description in the string " (tt "UIXML") ", which should be the XML representation of a user interface created by the Qt " (tt "designer") " application. Returns an instance of " (tt "<qt-widget>") ", the toplevel widget. If " (tt "PARENT") " is given, the newly created widget will be a child of this."))
(def (sig (procedure "(qt:delete OBJECT)" (id qt:delete))) (p "Deletes " (tt "OBJECT") ", which should be an instance of " (tt "<qt-object>") " or " (tt "<qt-pixmap>") "."))
(def (sig (procedure "(qt:show WIDGET)" (id qt:show))) (p "Shows the given widget."))
(def (sig (procedure "(qt:hide WIDGET)" (id qt:hide))) (p "Hides the widget from view."))
(def (sig (procedure "(qt:find WIDGET NAME)" (id qt:find))) (p "Returns the direct or indirect child widget of " (tt "WIDGET") " named " (tt "NAME") " (a string) or " (tt "#f") " if no such child widget could be found."))
(def (sig (procedure "(qt:pixmap FILENAME)" (id qt:pixmap))) (p "Loads an image file and returns an instance of " (tt "<qt-image>") "."))
(def (sig (procedure "(qt:update WIDGET)" (id qt:update))) (p "Schedules a repaint event for the given widget."))
(def (sig (procedure "(qt:property WIDGET PROP)" (id qt:property))) (pre " (set! (qt:property WIDGET PROP) VALUE)") (p "Get or set a widget property with the name " (tt "PROP") " (a string or symbol). See the Qt documentation for more information about which widget supports which properties. Value conversion is automatically, the following value types are supported:") (pre "Property (C++) type    Scheme type") (pre "QString                string\nint                    integer\ndouble                 number\nbool                   boolean\nchar                   char\nQPixmap                <qt-image>\nPoint                  s32vector\nSize                   s32vector\nRect                   s32vector\nPointF                 f64vector\nSizeF                  f64vector\nRectF                  f64vector"))
(def (sig (procedure "(qt:receiver THUNK)" (id qt:receiver))) (p "Returns an instance of " (tt "<qt-receiver>") " that when connected to a Qt signal will invoke " (tt "PROC") " once the signal is emitted."))
(def (sig (procedure "(qt:connect SOURCE SIGNAL DESTINATION [SLOT])" (id qt:connect))) (p "Connects the signal " (tt "SIGNAL") " from the " (tt "<qt-object>") " " (tt "SOURCE") " to the slot " (tt "SLOT") " from " (tt "DESTINATION") ". If no slot is given, then " (tt "\"slot()\"") " is assumed (which is the only slot implemented in " (tt "<qt-receiver>") " instances). Signals and slots should be strings and follow the normal syntax used by Qt."))
(def (sig (procedure "(qt:timer SECONDS)" (id qt:timer))) (p "Creates and returns a timer object which can be connected to a receiver and which will emit " (tt "\"timeout()\"") " signals every " (tt "SECONDS") "."))
(def (sig (procedure "(qt:start TIMER)" (id qt:start))) (p "Starts the given timer."))
(def (sig (procedure "(qt:stop TIMER)" (id qt:stop))) (p "Stops the given timer."))
(def (sig (procedure "(qt:clear WIDGET)" (id qt:clear))) (p "Clears all entries from " (tt "WIDGET") " which should be a " (tt "QListWidget") "."))
(def (sig (procedure "(qt:add WIDGET STRING)" (id qt:add))) (p "Adds a new entry to a " (tt "QListWidget") ", " (tt "QComboBox") " or " (tt "QTreeWidget") ". In the latter case, the columns should be separated by the " (tt "|") " character (vertical bar)."))
(def (sig (procedure "(qt:item WIDGET INDEX)" (id qt:item))) (p "Returns the text of the " (tt "QListWidget") " item with the given index."))
(def (sig (procedure "(qt:set-headers WIDGET STRING)" (id qt:set-headers))) (p "Sets the column headers in a " (tt "QTreeWidget") ". Columns should be separated by the " (tt "|") " character (vertical bar)."))
(def (sig (procedure "(qt:selection TEXTEDIT)" (id qt:selection))) (p "Returns the text of the currently active selection, or the empty string, if no text is selected."))
(def (sig (procedure "(qt:insert TEXTEDIT STRING)" (id qt:insert))) (p "Inserts " (tt "STRING") " at the current cursor location."))
(def (sig (procedure "(qt:message TEXT #!key caption parent button1 button2 button3)" (id qt:message))) (p "Opens a " (tt "QMessageBox") " with the given properties and returns the index of the pressed button."))
(def (sig (procedure "(qt:get-open-filename CAPTION DIRECTORY #!key parent options filter)" (id qt:get-open-filename))) (p "Shows a modal file-selection dialog and returns the selected filename (or \"\", if the dialog was canceled). " (tt "options") " should be a list with zero or more of the following keywords:") (pre "show-dirs-only:\ndont-resolve-symlinks:\ndont-confirm-overwrites:\ndont-use-sheet:\ndont-use-native-dialog:"))
(def (sig (procedure "(qt:get-save-filename CAPTION DIRECTORY #!key parent options filter)" (id qt:get-save-filename))) (p "Shows a modal file-selection for saving."))
(def (sig (procedure "(qt:get-directory CAPTION DIRECTORY #!key parent options filter)" (id qt:get-directory))) (p "Shows a modal directory-selection dialog."))
(def (sig (procedure "(qt:sound FILENAME)" (id qt:sound))) (p "Loads a sound-file and returns an instance of " (tt "<qt-sound>") "."))
(def (sig (procedure "(qt:play SOUND)" (id qt:play))) (p "Plays the sound asynchronously."))
(def (sig (procedure "(qt:stop SOUND)" (id qt:stop))) (p "Stops a currently playing sound."))
(def (sig (procedure "(qt:shortcut KEY)" (id qt:shortcut))) (p "Creates a keyboard-shortcut action for " (tt "KEY") ", which should be a string naming a key-sequence, for example " (tt "\"Ctrl+E\"") ". See the Qt documentation for the interpretation of this string. " (tt "qt:shortcut") " returns an " (tt "<qt-action>") " instance that can be added to a widget with " (tt "qt:add-action") "."))
(def (sig (procedure "(qt:add-action WIDGET ACTION)" (id qt:add-action))) (p "Adds the given action to " (tt "WIDGET") "."))
(def (sig (procedure "(qt:remove-action WIDGET ACTION)" (id qt:remove-action))) (p "Removes " (tt "ACTION") " from " (tt "WIDGET") "."))
(def (sig (procedure "(qt:char-encoding [ENCODING])" (id qt:char-encoding))) (p "Selects the default character encoding for strings passed to and received from Qt. " (tt "ENCODING") " may be one of the symbols " (tt "ascii") ", " (tt "latin1") " or " (tt "utf8") ". The default is " (tt "latin1") ". If no argument is given, then " (tt "qt:char-encoding") " returns the current encoding."))
(def (sig (procedure "(qt:gl NAME PARENT INIT RESIZE PAINT)" (id qt:gl))) (p "Creates and returns a " (tt "QGLWidget") ". " (tt "INIT") " should be zero-argument procedure called to initialize the OpenGL context. " (tt "RESIZE") " should be a two-argument procedure called when the widget is resized and receives the new width and height. " (tt "PAINT") " is a zero-argument procedure called when the widget should repaint itself. GL output will be automatically flushed."))
(def (sig (procedure "(qt:classname OBJECT)" (id qt:classname))) (p "Returns the name of the Qt class of which " (tt "OBJECT") " is an instance."))
