hbQT - Post queries in this thread only

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Re: hbQT - Post queries in this thread only

Post by Rathinagiri » Tue Sep 07, 2010 8:05 am

Thanks for your suggestion.

It works for hyperlinks and not for ordinary text. :(
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Post by bedipritpal » Tue Sep 07, 2010 8:32 am

rathinagiri wrote:Thanks for your suggestion.

It works for hyperlinks and not for ordinary text. :(
So ?
Embed ordinary text as a hyperlink and catch the "linkActivated(QString)" signal.

oLabel:setText( "<a href='MyText'>MyText</a>" )
linkActivated() will be supplied "MyText" as QString.

I do not see any difficulty with it.
Please note that oLabel:setOpenExternalLinks( .f. ) has also to be called.
enjoy hbIDEing... Pritpal Bedi

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Post by bedipritpal » Tue Sep 07, 2010 8:37 am

Hello Everybody

Latest hbIDE has been posted on http://hbide.vouch.info/

ChangeLog on which it is based is:

2010-09-07 01:05 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/hbpprocess.prg
+ Prepared to route stdOut and stdErr outputs accordingly.

* contrib/hbxbp/xbprtf.prg
! Minor.

* contrib/hbide/idemisc.prg
* contrib/hbide/ideprojmanager.prg
+ Implemented: first error reported by hbMK2 when a project is built,
is made visible in the "Output Console" after compile/link cycle is
finished. This facilitates to track errors instantly without naviaging
the contents of output console.

2010-09-05 17:35 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt.ch
+ Added more constants.

* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsitem.txt
* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsscene.txt
* contrib/hbqt/qtgui/g/HBQGraphicsItem.cpp
* contrib/hbqt/qtgui/g/HBQGraphicsScene.cpp
* contrib/hbqt/qtgui/g/QLinearGradient.cpp
* contrib/hbqt/qtgui/g/THBQGraphicsItem.prg
* contrib/hbqt/qtgui/g/THBQGraphicsScene.prg
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.h
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.h

* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
* contrib/hbqt/qtgui/qth/HBQGraphicsScene.qth
* contrib/hbqt/qtgui/qth/QLinearGradient.qth

* contrib/hbqt/tests/demoqt.prg
! One of the main-menu prompt constructed differently.

* contrib/hbide/hbqreportsmanager.prg
+ HbqReportsManager() class is split in two to manage graphic objects
more efficiently.

+ Implemented: Reports Manager - all graphics items drawn on .prg levels.

This implementation has cleans all c++ code responsible to draw
graphics primitives, and hance greatly reducing the c++ dependancy.
More c++ => prg conversion is on the cards.

2010-09-03 21:19 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/utils/hbqtgen.prg
+ Implemented: QIcon() as a parameter now can be supplied as
filename, resource name, or constructed QIcon() as pointer.
Notified at HMG forums.

Since begining QIcon is passed as a string only. I do not
remember why I did it like that but it was very limiting,
though it solved our purpose well.

* contrib/hbqt/qtgui/g/QAbstractButton.cpp
* contrib/hbqt/qtgui/g/QAction.cpp
* contrib/hbqt/qtgui/g/QActionGroup.cpp
* contrib/hbqt/qtgui/g/QApplication.cpp
* contrib/hbqt/qtgui/g/QComboBox.cpp
* contrib/hbqt/qtgui/g/QListWidgetItem.cpp
* contrib/hbqt/qtgui/g/QMenu.cpp
* contrib/hbqt/qtgui/g/QMenuBar.cpp
* contrib/hbqt/qtgui/g/QStandardItem.cpp
* contrib/hbqt/qtgui/g/QSystemTrayIcon.cpp
* contrib/hbqt/qtgui/g/QTableWidgetItem.cpp
* contrib/hbqt/qtgui/g/QTabWidget.cpp
* contrib/hbqt/qtgui/g/QToolBar.cpp
* contrib/hbqt/qtgui/g/QToolBox.cpp
* contrib/hbqt/qtgui/g/QTreeWidgetItem.cpp
* contrib/hbqt/qtgui/g/QWidget.cpp
* Regenerated.

2010-09-03 20:35 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/hbqt_hbslots.cpp
* contrib/hbqt/qtcore/hbqt_hbslots.h
+ Added: signals for QDateTimeEdit() class, reuested on HMG forums.

2010-09-03 19:03 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbqreportsmanager.prg
! More c++ => .prg.

2010-09-02 19:11 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbqreportsmanager.prg
! c++ => .prg.

2010-09-01 18:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbqt/qtgui/doc/en/class_qdoublevalidator.txt
+ contrib/hbqt/qtgui/doc/en/class_qintvalidator.txt
+ contrib/hbqt/qtgui/doc/en/class_qregexpvalidator.txt
+ contrib/hbqt/qtgui/g/QDoubleValidator.cpp
+ contrib/hbqt/qtgui/g/QIntValidator.cpp
+ contrib/hbqt/qtgui/g/QRegExpValidator.cpp
+ contrib/hbqt/qtgui/g/TQDoubleValidator.prg
+ contrib/hbqt/qtgui/g/TQIntValidator.prg
+ contrib/hbqt/qtgui/g/TQRegExpValidator.prg
+ contrib/hbqt/qtgui/qth/QDoubleValidator.qth
+ contrib/hbqt/qtgui/qth/QIntValidator.qth
+ contrib/hbqt/qtgui/qth/QRegExpValidator.qth

* contrib/hbqt/qtgui/g/filelist.hbm
* contrib/hbqt/qtgui/g/hbqtgui.h
* contrib/hbqt/utils/qtgui.qtp
+ Added: more classes to support validations in QLineEdit().

2010-08-31 14:06 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbpparthandler.prg
* contrib/hbxbp/xbpwindow.prg
! :status() more synchronized.
NIL => Not initialized.
XBP_STAT_INIT => Object is initialized.
XBP_STAT_CREATE => Object creation is successful.
XBP_STAT_FAILURE => Object creation is either failed or
object is destroyed.

2010-08-31 13:55 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbp.ch
* contrib/hbxbp/xbp3state.prg
* contrib/hbxbp/xbpbrowse.prg
* contrib/hbxbp/xbpcheckbox.prg
* contrib/hbxbp/xbpcombobox.prg
* contrib/hbxbp/xbpdialog.prg
* contrib/hbxbp/xbpfiledialog.prg
* contrib/hbxbp/xbpfontdialog.prg
* contrib/hbxbp/xbphtmlviewer.prg
* contrib/hbxbp/xbplistbox.prg
* contrib/hbxbp/xbpmenubar.prg
* contrib/hbxbp/xbpmle.prg
* contrib/hbxbp/xbpparthandler.prg
* contrib/hbxbp/xbpprintdialog.prg
* contrib/hbxbp/xbppushbutton.prg
* contrib/hbxbp/xbpradiobutton.prg
* contrib/hbxbp/xbprtf.prg
* contrib/hbxbp/xbpscrollbar.prg
* contrib/hbxbp/xbpsle.prg
* contrib/hbxbp/xbpspinbutton.prg
* contrib/hbxbp/xbpstatic.prg
* contrib/hbxbp/xbpstatusbar.prg
* contrib/hbxbp/xbptabpage.prg
* contrib/hbxbp/xbptoolbar.prg
* contrib/hbxbp/xbptreeview.prg
* contrib/hbxbp/xbpwindow.prg
+ Implemented: :status() method as per Shum's request.
It just remained unimplemented for so long.

2010-08-30 18:55 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbide/hbqreportsmanager.prg
! More graphics stuff on .prg layer.

2010-08-30 08:26 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqtgui.hbx
- Deleted reference to HBQMainWindow.

- contrib/hbqt/qtgui/qth/HBQMainWindow.qth
- Dleted: leftover .qth from prev commits.

2010-08-30 07:27 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
- contrib/hbqt/qtgui/hbqt_hbqmainwindow.h
- Deleted: miss from the previous deletes.

2010-08-30 02:36 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
- contrib/hbqt/qtgui/doc/en/class_hbqgraphicsrectitem.txt
- contrib/hbqt/qtgui/g/HBQGraphicsRectItem.cpp
- contrib/hbqt/qtgui/g/THBQGraphicsRectItem.prg
- contrib/hbqt/qtgui/qth/HBQGraphicsRectItem.qth

- contrib/hbqt/qtgui/g/HBQMainWindow.cpp
- contrib/hbqt/qtgui/g/THBQMainWindow.prg
- contrib/hbqt/qtgui/hbqt_hbqmainwindow.cpp
- Deleted: two not required classes.

* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsitem.txt
* contrib/hbqt/qtgui/g/filelist.hbm
* contrib/hbqt/qtgui/g/HBQGraphicsItem.cpp
* contrib/hbqt/qtgui/g/hbqtgui.h
* contrib/hbqt/qtgui/g/THBQGraphicsItem.prg
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.h
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbqt/qtgui/hbqtgui.hbm
* contrib/hbqt/utils/qtgui.qtp

* contrib/hbxbp/hbxbp.hbx
! Deleted: references to Xbp_getSlotsPtr and xbp_getEventsPtr().
Verify me if it is the right way.

* contrib/hbxbp/xbpdialog.prg
- Deleted: HBQMainWindow() reference.

* contrib/hbxbp/xbpgeneric.prg
- Deleted: xbp_getSlotsPtr() and xbp_getEventsPtr() calls.

* contrib/hbide/idedocks.prg
! Minor.

* contrib/hbide/ideshortcuts.prg
! Fixed: a regression report on old/new slots mechanism.

* contrib/hbide/hbqreportsmanager.prg
+ Started: printing stuff - all on prg layer ( hopefully I will succeed ).

2010-08-27 18:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbide/hbqreportsmanager.prg
+ Advanced: Report's save/load artifacts.
+ Context-menu on scene areas where no item is under cursor.
+ ObjectsTree without any item highlighted if no item is visible selected in the scene.

2010-08-27 12:49 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/tests/demoqt.prg
- Replaced: remaining old implementation code for Slots/Events.
It was creating confusion unnecessarily.

2010-08-27 09:08 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
! Minor.

* contrib/hbide/hbqreportsmanager.prg
+ Implemented: first alfa version to save and load a report.
Save and Open icons on the HBReportsManger's top-toolbar conatin these actions.
Now it is easier to play with this tool.

2010-08-26 22:50 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbqreportsmanager.prg
* contrib/hbide/idedocwriter.prg
* contrib/hbide/ideenviron.prg
* contrib/hbide/idefindreplace.prg
* contrib/hbide/idefunctions.prg
* contrib/hbide/ideharbourhelp.prg
* contrib/hbide/ideprojmanager.prg
* contrib/hbide/ideshortcuts.prg
* contrib/hbide/idethemes.prg
! 2nd round of Slots/Events reforms.
Still some margin of regression is possible. Please report.

* contrib/hbqt/qtgui/THbQtUI.prg
- :signal() and :event() methods.

2010-08-26 21:58 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/idedocks.prg
% An important arti-fix.

* contrib/hbqt/qtcore/doc/en/class_qobject.txt
* contrib/hbqt/qtcore/g/QObject.cpp
* contrib/hbqt/qtcore/g/TQObject.prg
* contrib/hbqt/qtcore/qth/QObject.qth
* contrib/hbqt/qtgui/THbQtUI.prg

* contrib/hbxbp/xbpbrowse.prg
* contrib/hbxbp/xbpdialog.prg
* contrib/hbxbp/xbpwindow.prg

% First regression fix - ::connect() was defined in more classes than required.

2010-08-26 18:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
- contrib/hbide/idereportsmanager.prg
- contrib/hbide/idetoolbar.prg

+ contrib/hbide/hbqreportsmanager.prg
+ contrib/hbide/hbqtoolbar.prg

* contrib/hbide/hbide.hbp

* contrib/hbide/hbide.prg
* contrib/hbide/idebrowse.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/ideedit.prg
* contrib/hbide/ideeditor.prg
* contrib/hbide/idefindreplace.prg
* contrib/hbide/ideharbourhelp.prg
* contrib/hbide/idehome.prg
* contrib/hbide/idemisc.prg
* contrib/hbide/ideobject.prg
* contrib/hbide/idesaveload.prg
* contrib/hbide/ideshortcuts.prg
* contrib/hbide/ideskeletons.prg
* contrib/hbide/idethemes.prg
* contrib/hbide/idetools.prg
+ Adopted to latest Slots/Events protocol.
+ Renamed two classes and also their filenames.
+ Advanced: saving a report.

WARNING: regression is highly possible, please report any errors.

2010-08-26 18:03 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/hbpprocess.prg
* contrib/hbxbp/tests/demoxbp.prg
* contrib/hbxbp/xbp3state.prg
* contrib/hbxbp/xbpbrowse.prg
* contrib/hbxbp/xbpcheckbox.prg
* contrib/hbxbp/xbpcombobox.prg
* contrib/hbxbp/xbpdataref.prg
* contrib/hbxbp/xbpdialog.prg
* contrib/hbxbp/xbpfiledialog.prg
* contrib/hbxbp/xbpfontdialog.prg
* contrib/hbxbp/xbpgeneric.prg
* contrib/hbxbp/xbphtmlviewer.prg
* contrib/hbxbp/xbplistbox.prg
* contrib/hbxbp/xbpmenubar.prg
* contrib/hbxbp/xbpprintdialog.prg
* contrib/hbxbp/xbppushbutton.prg
* contrib/hbxbp/xbpradiobutton.prg
* contrib/hbxbp/xbprtf.prg
* contrib/hbxbp/xbpscrollbar.prg
* contrib/hbxbp/xbpsle.prg
* contrib/hbxbp/xbpspinbutton.prg
* contrib/hbxbp/xbptabpage.prg
* contrib/hbxbp/xbptoolbar.prg
* contrib/hbxbp/xbptreeview.prg
* contrib/hbxbp/xbpwindow.prg
+ Adopted to latest Slots/Events protocol.

WARNING: regression is highly possible, please report any errors.

2010-08-26 10:16 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/idereportsmanager.prg
+ Implemented: dropping a .dbf onto scene updates "Data Source" tree.
+ Started: to save Report/Document in .ini format, extension used is .hrp.

2010-08-25 19:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/idereportsmanager.prg
% Some more refinements towards how a report would be saved/retreived.

2010-08-25 15:48 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/hbqt_misc.prg
+ Implemented: object local "Slots" and "Events" management.
Now no need to setup slots and events variable. These are
automatically created on demand.

EVENTS:
oWnd := QMainWindow():new()

Earlier:
pEvents := Qt_Events_New()
oWnd:installEventFilter( ::pEvents )
Qt_Events_Connect( ::pEvents, oWnd, QEventClose, {|| MsgBox( "Closing" ) } )
Now:
oWnd:connect( QEvent_Close, {|| MsgBox( "Closing" ) } )

SLOTS:
oBtn := QPushButton():new()

Earlier:
pSlots := Qt_Slots_New()
Qt_Slots_Connect( pSlots, oBtn, "clicked()", {|| ... } )
Now:
oBtn:connect( "clicked()", {|| ... } )

This implementation fixes very old demand to isolate this glitch.

* contrib/hbqt/tests/demoqt.prg
% Demonstrates the new Slots and Events management protocol.
Still a part of old proto is also retained for comparison.

* contrib/hbide/hbide.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/idereportsmanager.prg
+ Renamed: IdeReportsManager() class to HbpReportsManager().
Also made this class totally independant to hbIDE engine.
This opens up the way to shift it to hbQT itself.
The only limitation is images. We need a way to include
a minimal set of images in hbQT ( if it makes sense ) so that
this component be invoked from any application just by supplying
a parent to host it, just like a COM component.

2010-08-25 09:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.qrc
+ contrib/hbide/resources/r-landscape.png
+ contrib/hbide/resources/r-portrait.png

* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsitem.txt
* contrib/hbqt/qtgui/g/HBQGraphicsItem.cpp
* contrib/hbqt/qtgui/g/THBQGraphicsItem.prg

* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.h
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.h

* contrib/hbide/idereportsmanager.prg
+ Implemented: ideReports Manager:
+ Landscape and Portrait page orientation at design time.
+ Context-menu basics for objects on the page - scheduled
to be expanded per type of object.

2010-08-24 18:55 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp

* contrib/hbide/resources/f-image.png
+ contrib/hbide/resources/r-page.png
+ contrib/hbide/resources/r-report.png
* contrib/hbide/hbide.qrc

* contrib/hbide/idemisc.prg
* contrib/hbide/idereportsmanager.prg
+ Implemented: ideReports Manager:
* "Objects" tree now showsup type of object icon.

* Rotate selected object clock wise and anti-clock wise.
Currently it is 10 deg per click. Later an interface
to rotate precisely to be introduced.

Rotated objects keep the exact aspect ratio. This is
testified on barcode which reads the correct string
after 90, 180, 270 and 360 deg rotation.

* Atarted API to separate this component from direct calls
to hbIDE to gather various info from the application.
Right now these are the images which now call app_image()
instead of hbide_image(). app_image() function will
reside in application so that this class be linked with
application independently of hbIDE.

2010-08-24 09:29 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsitem.txt
* contrib/hbqt/qtgui/g/HBQGraphicsItem.cpp
* contrib/hbqt/qtgui/g/THBQGraphicsItem.prg
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.h
* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
* contrib/hbide/idereportsmanager.prg
+ Implemented: ideReport Designer:
* Barcode 3of9 - the code belongs to someone I have no
idea now. Please speak out who he is so that I post
due credit to him. I had adopted this code for Vouch32
family of libraries many years back. Now adopted to
hbQT + hbIDE.

* Simple bar-chart.

Both above implementations are quick ones and I see a
lot of avenues for improvement which are scheduled to
be addressed later.

2010-08-23 20:44 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt.ch
* contrib/hbqt/qtgui/doc/en/class_hbqgraphicsitem.txt
* contrib/hbqt/qtgui/g/HBQGraphicsItem.cpp
* contrib/hbqt/qtgui/g/THBQGraphicsItem.prg
* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth

* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.h
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp

* contrib/hbide/hbide.qrc
* contrib/hbide/resources/f-image.png
+ contrib/hbide/resources/toback.png
+ contrib/hbide/resources/tofront.png

* contrib/hbide/idereportsmanager.prg
+ Advanced: ideReports Designer - many artifacts implemented:
* Synchronized "Objects" tree and objects on the "Page(s)".
Clicking either way is reflected to the other.
* Activated magnets - while dragging an object provides
guiding lines from other objects which are helpful in alignment.
* Corrected reszing behavior. Now handles are located with ease.
* Text display management improved.
* Added more methods to control futuristic features.
* Many other small improvements difficult to explain.

2010-08-23 10:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/idereportsmanager.prg
+ Advanced: populated "Objects" tree with spreaded objects.
provided tooltips for spreaded objects.
enjoy hbIDEing... Pritpal Bedi

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Sep 07, 2010 3:02 pm

Thanks a lot for the info. I had downloaded and found it very much useful in editing. It looks very promising. :)

Further, can you please re-checkup whether datetimechanged and datechanged signals are emitted? Because the following code didn't work. :(

Code: Select all

   ::bOnChange := bValue
   ::oQTObject:disconnect("dateTimeChanged(QDateTime)")
   ::oQTObject:connect("dateTimeChanged(QDateTime)" , ::bOnChange)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Post by bedipritpal » Tue Sep 07, 2010 4:37 pm

rathinagiri wrote:Thanks a lot for the info. I had downloaded and found it very much useful in editing. It looks very promising. :)

Further, can you please re-checkup whether datetimechanged and datechanged signals are emitted? Because the following code didn't work. :(

Code: Select all

   ::bOnChange := bValue
   ::oQTObject:disconnect("dateTimeChanged(QDateTime)")
   ::oQTObject:connect("dateTimeChanged(QDateTime)" , ::bOnChange)
// This is not working, donot know why ...
::oQTObject:connect("dateTimeChanged(QDateTime)" , ::bOnChange)

// This works
::oQTObject:connect("dateChanged(QDate)" , ::bOnChange)
// This also works but you will need SVN update
::oQTObject:connect("timeChanged(QTime)" , ::bOnChange)
enjoy hbIDEing... Pritpal Bedi

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Sep 07, 2010 5:38 pm

Thanks for the info. I will check it again. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Wed Sep 08, 2010 1:52 am

Pritpal,

I've successfully managed to print using QPrintDialog and QPrintPreviewDialog.

Now, I'm trying to print on the default printer without user interaction.

I've researched a little and found that QPrinterInfo could be the solution to get the default printer (I'm not fully sure) but it appears to be no implemented in HBQT.

Is there any other way to achieve that?

Thanks in advance.

EDIT: I've found that qprinter's printername returns the default printer name:

q := qprinter():New()
msginfo(q:printername)

Sadly, this value (a character string) is not useful to work with qpainter.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Post by bedipritpal » Wed Sep 08, 2010 4:05 am

Roberto Lopez wrote:Pritpal,

I've successfully managed to print using QPrintDialog and QPrintPreviewDialog.

Now, I'm trying to print on the default printer without user interaction.

I've researched a little and found that QPrinterInfo could be the solution to get the default printer (I'm not fully sure) but it appears to be no implemented in HBQT.

Is there any other way to achieve that?

Thanks in advance.

EDIT: I've found that qprinter's printername returns the default printer name:

q := qprinter():New()
msginfo(q:printername)

Sadly, this value (a character string) is not useful to work with qpainter.

Please check after r15443. This class is added.
enjoy hbIDEing... Pritpal Bedi

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Wed Sep 08, 2010 4:25 am

Hi,

Is phonon module implemented already in HBQT? I think with this module we can play multimedia.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Post by bedipritpal » Wed Sep 08, 2010 5:33 am

rathinagiri wrote:Hi,

Is phonon module implemented already in HBQT? I think with this module we can play multimedia.
No, it is out of hbQT scope.
enjoy hbIDEing... Pritpal Bedi

Post Reply