Difference between revisions of "Gambas/libraries/gb.qt"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(moved form-state events to Form page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
http://khanklllerp.9cy.com
+
==About==
http://addudtoradje.1afm.com
+
{{l/same|gb.qt}} is a [[Gambas]] [[../|library]] which provides functions for displaying and handling [[form (GUI)|form]]s; it uses the [[Qt]] graphical library.
http://cherrychywh.25am.com
+
 
http://mtrtmainnept.9cy.com
+
Related libraries:
http://plaidpastmao.25am.com
+
* {{l/same|gb.qt4}} is (presumably) specific to version 4 of Qt
http://ozonaparaqm.25am.com
+
* {{l/same|gb.gtk}} provides much of the same functionality using the [[GTK+]] graphical library, but it appears to be less fully implemented
http://juscykosherd.9cy.com
+
* {{l/same|gb.gui}} provides functionality common to GTK+ and Qt, and loads whichever system is currently in use
http://adapaadverx.25am.com
+
==Events==
http://traesvalueta.9cy.com
+
===form state===
http://pcincepapecg.25am.com
+
''see [[Gambas/controls/Form]]''
http://plaidpastmao.25am.com
+
===drag-drop===
http://iaunchiein.1afm.com
+
Some rules which seem to apply:
http://clantestinl.9cy.com
+
* The {{l/sub|Mouse}} location (Mouse.X and Mouse.Y) is not updated while the mouse is dragging anything; you get the mouse's location while dragging from the {{l/sub|Drag}} object.
http://needlecnynm.9cy.com
+
* Normal mouse events are also not triggered while the mouse is dragging anything
http://oreonx.hozt.us
+
* In order for any element (form or control) to receive mouse events while the mouse is dragging anything, the element's '''Drop''' property must be set to TRUE
http://cossequesces.1afm.com
+
* To get continuous updates on the mouse's movements, implement (control).DragMove and (form).DragMove. The control will only receive events while the mouse is inside it; the form will only receive events while the mouse is not inside another drop-enabled control. Use the form events to detect when the mouse has left the control area.
 +
 
 +
==Links==
 +
* [http://gambasdoc.org/help/comp/gb.qt official reference]

Latest revision as of 20:37, 26 April 2015

About

gb.qt is a Gambas library which provides functions for displaying and handling forms; it uses the Qt graphical library.

Related libraries:

  • gb.qt4 is (presumably) specific to version 4 of Qt
  • gb.gtk provides much of the same functionality using the GTK+ graphical library, but it appears to be less fully implemented
  • gb.gui provides functionality common to GTK+ and Qt, and loads whichever system is currently in use

Events

form state

see Gambas/controls/Form

drag-drop

Some rules which seem to apply:

  • The Mouse location (Mouse.X and Mouse.Y) is not updated while the mouse is dragging anything; you get the mouse's location while dragging from the Drag object.
  • Normal mouse events are also not triggered while the mouse is dragging anything
  • In order for any element (form or control) to receive mouse events while the mouse is dragging anything, the element's Drop property must be set to TRUE
  • To get continuous updates on the mouse's movements, implement (control).DragMove and (form).DragMove. The control will only receive events while the mouse is inside it; the form will only receive events while the mouse is not inside another drop-enabled control. Use the form events to detect when the mouse has left the control area.

Links