Files
harbour-core/harbour/contrib/hbqt/tests/inherit.prg
Pritpal Bedi 763fd428b7 2012-06-14 02:01 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/hbqt_hbqevents.cpp
    ! Fix to prev.

  * contrib/hbqt/tests/browqt.prg
  * contrib/hbqt/tests/dbfbrowser.prg
  * contrib/hbqt/tests/demoqt.prg
  * contrib/hbqt/tests/draggable.prg
  * contrib/hbqt/tests/inherit.prg
  * contrib/hbqt/tests/qtrevamp.prg
  * contrib/hbqt/tests/testbrow.prg
    - Removed: :disconnect() calls. Now all is working like 
       the way we are accustomed to.
2012-06-14 09:11:33 +00:00

48 lines
646 B
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Copyright 2012 Francesco Perillo
* www - http://harbour-project.org
*
*/
#include "hbclass.ch"
#include "hbtrace.ch"
CREATE CLASS myCell FROM HB_QLabel
DATA myValue INIT "Starting value"
END CLASS
PROCEDURE MAIN
LOCAL oWnd
LOCAL oTB
LOCAL oLbl
oWnd := QMainWindow()
oTB := QTableWidget( )
oTB:setColumnCount( 1 )
oTB:setRowCount( 1 )
oWnd:setCentralWidget( oTB )
oLbl := myCell():New( )
oLbl:myValue = "new value"
oLbl:setText( "Test for Bacco" )
oTB:setCellWidget( 0, 0, oLbl )
oWnd:show()
QApplication():exec()
RETURN