Difference between revisions of "Qt Interface"

From Lazarus wiki
Jump to navigationJump to search
Line 38: Line 38:
 
* TCustomForm - <span style="color:brown">Partially implemented</span>
 
* TCustomForm - <span style="color:brown">Partially implemented</span>
 
* TCustomButton - <span style="color:brown">Partially implemented</span>
 
* TCustomButton - <span style="color:brown">Partially implemented</span>
 +
** OnClick event implemented. Caption setting implemented.
 
* TCustomMemo - <span style="color:brown">Partially implemented</span>
 
* TCustomMemo - <span style="color:brown">Partially implemented</span>
  

Revision as of 16:25, 10 February 2006

Introduction

The Qt 4 widgetset is in an early stage of development.

This interface is based on Qt 4.0 and it's corresponding documentation here.

Qt 4 Bindings

This interface utilizes Qt 4 bindings created by Den Jean. The bindings are a c++ library which exports the methods of the Qt objects as procedures. The library has 800kb in linux, consists of a single .so file that needs to be distributed with your LCL program.

You can find more information about those bindings on the official website.

Is is being reported that it may be possible to link to Qt 4 directly, using some tricks. Many think it is not. This is yet to be tested. It is expected that any such binding will be compatible with the currently utilized one, so the interface code won´t have to be changed.

Compiling the bindings

Step 1 - To start with download all the files needed to compile the bindings.

  • Download the source code of the bindings. Go to this location and look for a file named qt4pas-1.02.tar.gz or similar.
  • Also Download Qt 4.0.1 source code for the desired platform. This is the download page: [1]

Step 2 - Unpack all the files you downloaded. Enter the directory where you downloaded Qt 4.0 source code and use this command:

./configure

Step 3 - Go to the directory where you downloaded and extrected qt4pas sources and edit the file compile_lib.bash. Change the path for the Qt 4.0.1 source code.

Step 4 - Run the script called compile_lib.bash. Now you should have a file called libqt4intf.so

Road map for the Qt 4 interface

currently implemented components with their status

  • TApplication - Partially implemented
  • TCustomForm - Partially implemented
  • TCustomButton - Partially implemented
    • OnClick event implemented. Caption setting implemented.
  • TCustomMemo - Partially implemented

components scheduled to be implemented

  • TPopUpMenu
  • TBitmap - Needs a description of the internal format used by Qt
  • TPixmap
  • TIcon
  • TCanvas - This component is extremely hard to implement as it requires DCs

currently implemented Windows API functions by group and with status

Mouse functions

SetCursorPos, GetCursorPos for TMouse - Fully working

wish-list of new components

Use this space for components you would like to see implemented