2023-05-01 08:54 UTC-0800 Pritpal Bedi (bedipritpal at hotmail.com)(r482)

73 views
Skip to first unread message

Pritpal Bedi

unread,
May 1, 2023, 12:15:02 PM5/1/23
to QtContribs
2023-05-01 08:54 UTC-0800 Pritpal Bedi (bedipritpal at hotmail.com)(r482)
  * hbqt/qtgui/hbqt_version.ch
    % Updated for r482
 
  * hbqt/hbmk2_qt.hb
    ! Fixed an unexpected bug in certain situations.
    + Added - QStackedWidget
              QScrollArea
              QDockWidget
              QFrame
              QGroupBox
              QMdiArea
              QTabWidget
              QToolBox
              QWizard
              QWizardPage
                as a base widget for .ui forms.

  * hbqt/gtgui/QGraphicsScene.qth
  * hbqt/gtgui/QGraphicsView.qth
  * hbqt/gtgui/QPainter.qth
  * hbqt/gtgui/QTransform.qth
    + Added: #include <QtGui/QPainterPath>
        Required for Qt 5.15. Pointed out by Claudia Neumann, thanks.

  * hbide/actions.prg
  * hbide/changelog.prg
  * hbide/console.prg
  * hbide/dbumgr.prg
  * hbide/dict.prg
  * hbide/docks.prg
  * hbide/docwriter.prg
  * hbide/edit.prg
  * hbide/editor.prg
  * hbide/environ.prg
  * hbide/findreplace.prg
  * hbide/format.prg
  * hbide/functions.prg
  * hbide/harbourhelp.prg
  * hbide/hbqtoolbar.prg
  * hbide/home.prg
  * hbide/main.prg
  * hbide/object.prg
  * hbide/parts.prg
  * hbide/projectwizard.prg
  * hbide/projmanager.prg
  * hbide/saveload.prg
  * hbide/shortcuts.prg
  * hbide/skeletons.prg
  * hbide/sources.prg
  * hbide/themes.prg
  * hbide/tools.prg
  * hbide/uisrcmanager.prg
  * hbide/wizard.prg
    ! Fixed: :init() as class constructor and :new() as instance constructor
        aligned with class(y) compatible changes in entire classes in Harbour
        core committed by Przemek, thanks.

  * hbqtwidgets/calculator.prg
  * hbqtwidgets/dbucreate.prg
  * hbqtwidgets/getlist.prg
  * hbqtwidgets/getsys.prg
  * hbqtwidgets/imageeditor.prg
  * hbqtwidgets/hbqtcolumn.prg
  * hbqtwidgets/hbqtbrowse.prg
    ! Fixed: :init() as class constructor and :new() as instance constructor
        aligned with class(y) compatible changes in entire classes in Harbour
        core committed by Przemek, thank you.

  * hbqtwidgets/hbqtbrowse.prg
    + ACCESS headerView()    INLINE ::oHeaderView
        Now you can set multiple attributes for browser header. For example,
        it is now possible to set colors for browse headers like
          oBrw:headerView():setStyleSheet( "QHeaderView::section{
            background-color: #D2F5F0; color: black; border: 1px solid transparent;}" )

    + Added: capability to make multirow spanned headers. It is enough to span
        a column header by separating the header string with chr( 10 ) like this
          oColumn := HbQtColumnNew( "Can" + chr( 10 ) + "Edit?", {|| ( cAlias )->canEdit } )
        The header will be displayed in two rows. Rows are automatically
        calculated based on number of chr( 10 ) row separator. Each column can have
        variable number of rows.

  + hbqtwidgets/resources/testing-1.png
  * hbqtwidgets/hbqtwidgets.qrc
    + Added: a new image.

Francolino

unread,
May 5, 2023, 8:21:22 AM5/5/23
to qtcon...@googlegroups.com

Hi Pritpal

When compiling with QT 5.15.2, obtain follow error:

Generating C source output to 'hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_messages.c'... Done.
Compiling 'hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg'...
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(355) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(362) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(367) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(371) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(375) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(380) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(385) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(390) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(394) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw\hbqtwidgets\uic_scripts.prg(399) Error E0014  #endif does not match #ifdef
10 errors

No code generated.
hbmk2[hbqtwidgets]: Error: Running Harbour compiler (built-in). 1


Regards,

Juan Francolino

--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/f2750a92-77c4-4216-bf68-e8e019f9e8f6n%40googlegroups.com.

Pritpal Bedi

unread,
May 5, 2023, 11:05:44 PM5/5/23
to QtContribs
Hi 

I did not test with Qt 5.15. Seems ui compiler has changed something. Can you compare /hbqt/hbmk2_qt.hb as committed above and what you had before?
Also were you compiling with 5.15.2 before this commit ?

Pritpal Bedi

Zoran Sibinovic

unread,
May 7, 2023, 12:50:34 PM5/7/23
to QtContribs
Hi Pritpal,
I haven't much time to compare your code solution according mine regarding the browse headef multi row text.
I will notify soon.
In the meantime I have a suggestion for the
METHOD HbQtBrowse:editCell( cPicture, cColor, bWhen, bValid, nKey )

since in some windows versions and themes display, the edit cell can sometimes be confusing by not be noticable so I played and added somecode to the PROPERTIES

METHOD HbQtBrowse:editCell( cPicture, cColor, bWhen, bValid, nKey )
 ...

   @ 0,0 QGET xValue PICTURE cPicture ;
                     COLOR   iif( Empty( cColor ), "N/BG*", cColor ) ;
                     WHEN    {|oGet| iif( HB_ISBLOCK( bWhen ) , Eval( bWhen, oGet ) , iif( HB_ISBLOCK( oCol:preBlock ) , Eval( oCol:preBlock , oGet ), .T. ) ) } ;
                     VALID   {|oGet| iif( HB_ISBLOCK( bValid ), Eval( bValid, oGet ), iif( HB_ISBLOCK( oCol:postBlock ), Eval( oCol:postBlock, oGet ), .T. ) ) } ;
                     PROPERTIES {|oGET,oEdit| HB_SYMBOL_UNUSED( oGET ), oSz := oEdit:size(), oEdit:resize( oRect:width(), oRect:height() ) , ;
                                oEdit:setstylesheet("background-color: rgba(255,255,175,255);"+;
                                "border-top:    2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(192, 192, 192, 255), stop:1 rgba( 64,  64,  64, 255));"+;
                                "border-left:   2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(192, 192, 192, 255), stop:1 rgba( 64,  64,  64, 255));"+;
                                "border-right:  2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(192, 192, 192, 255), stop:1 rgba(255,255,175, 255));"+;
                                "border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(192, 192, 192, 255), stop:1 rgba(255,255,175, 255));")
}

   QREAD PARENT oDlg LASTGETBLOCK {|| oDlg:done( 1 ) } NOFOCUSFRAME
...
with this addition from a system flat frame box I got an customized  look as in the added pictures.
The question is,  it is possible to add some method parameter that pass the stylesheet (PROPERTIES) to make :editcell more customabile/flexibile.

Thanks
Zoran
bbbUntitled.png
oooUntitled.png

Pritpal Bedi

unread,
May 8, 2023, 4:50:53 PM5/8/23
to QtContribs

Hi Zoran

> The question is,  it is possible to add some method parameter that pass the stylesheet (PROPERTIES) to make :editcell more customabile/flexibile.

Sure. Will implement.

Pritpal Bedi
a student of software analysis and concepts
Message has been deleted

Francolino

unread,
May 10, 2023, 10:28:49 AM5/10/23
to qtcon...@googlegroups.com
Dear Pritpal

El 06/05/2023 a las 00:05, Pritpal Bedi escribió:
> Hi
> Also were you compiling with 5.15.2 before this commit ?
>
No. It´s first time.

Before, I compile with 5.7 and  5.9 .

I downloaded QT 15 since in the harbor update it mentions:

2023-01-23 12:28 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * contrib/gtqtc/gtqtc.h
  * contrib/gtqtc/gtqtc1.cpp
    * replaced depreciated in 5.15 methods for mouse wheel events
processing
      by modern ones
    * replaced depreciated in 5.15 methods for accessing screen geometry by
      modern ones



Regards

Juan Francolino

Reply all
Reply to author
Forward
0 new messages