hbQT - Post queries in this thread only

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

Pritpal,

I'm finishing my work on the print system.

The last remaining thing I'm trying to do, is to create a QPrinter object from an existing QPrinterInfo one.

The oQPrinterInfo object is valid since it's tested with printername (from my previous test)

I've tried this:

Code: Select all

oQPrinter := QPrinter:new( oQPrinterInfo , 2)
The problem is that the printing is done always on the default printer (oQPrinterInfo parameter appears to be ignored).

Thanks in advance.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: hbQT - Post queries in this thread only

Post by Rathinagiri »

Hi Roberto,

Had you tried QPrinter::setPrinterName ( const QString & name )?

Code: Select all

cSelectedPrinter := oPrinterInfo:printerName()
oPrinter := QPrinter():new()
oPrinter:setPrinterName(cSelectedPrinter)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

rathinagiri wrote:Hi Roberto,

Had you tried QPrinter::setPrinterName ( const QString & name )?

Code: Select all

cSelectedPrinter := oPrinterInfo:printerName()
oPrinter := QPrinter():new()
oPrinter:setPrinterName(cSelectedPrinter)
That was my first try, but it failed.

I've tested again (with other printer) and it works now. Thanks!

I guess that it was only a problem between QT and the printer driver I've used for tests (a PDF printer driver).

Thanks Again!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Re: hbQT - Post queries in this thread only

Post by bedipritpal »

Hello Everybody

This is the ChangeLog and it has a direct bearing
over HMG implementation. Qt object creation syntax is
changed. Now it is exactly like Qt itself.

Before:

qObject := Q*Class():new( ... )

Now:

qObject := Q*Class( ... )

Please adopt it to your library.


2010-09-14 15:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/tests/testbrow.prg
* contrib/hbqt/tests/testqaim.prg
* contrib/hbqt/tests/testres.prg
! Adopted to new hbQT syntax.
Q*Class():new( ... ) => Q*Class( ... )

Regression is highly possible, so please verify.

2010-09-14 15:05 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbqreportsmanager.prg
* contrib/hbide/hbqtoolbar.prg
* contrib/hbide/ideactions.prg
* contrib/hbide/idebrowse.prg
* contrib/hbide/idedict.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/ideedit.prg
* contrib/hbide/ideeditor.prg
* contrib/hbide/idefindreplace.prg
* contrib/hbide/idefunctions.prg
* contrib/hbide/ideharbourhelp.prg
* contrib/hbide/idehome.prg
* contrib/hbide/idemain.prg
* contrib/hbide/idemisc.prg
* contrib/hbide/ideprojmanager.prg
* contrib/hbide/idesaveload.prg
* contrib/hbide/ideshortcuts.prg
* contrib/hbide/ideskeletons.prg
* contrib/hbide/idethemes.prg
* contrib/hbide/idetools.prg
* contrib/hbide/idewizard.prg
! Adopted to new hbQT class syntax.
Q*Class():new( ... ) => Q*Class( ... )

Regression is highly possible, so please report errors.

2010-09-14 15:00 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/hbpprocess.prg
* contrib/hbxbp/xbp3state.prg
* contrib/hbxbp/xbpbitmap.prg
* contrib/hbxbp/xbpbrowse.prg
* contrib/hbxbp/xbpcheckbox.prg
* contrib/hbxbp/xbpclipboard.prg
* contrib/hbxbp/xbpcombobox.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/xbpmle.prg
* contrib/hbxbp/xbpprintdialog.prg
* contrib/hbxbp/xbpprinter.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
! Adopted to new hbQT syntax.
Q*Class():new( ... ) => Q*Class( ... )

2010-09-14 14:47 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/tests/demoqt.prg
! Adopted to new syntax.

* contrib/hbqt/utils/hbqtgen.prg
+ Implemented: Q*Class( ... ) syntax over Q*Class():new( ... ).
The tips extended by Viktor, thanks.

* contrib/hbqt/qtgui/THbQtUI.prg
! Adopted to new syntax.

* contrib/hbqt/qtcore/g/*.prg
* contrib/hbqt/qtgui/g/*.prg
* contrib/hbqt/qtnetwork/g/*.prg
* contrib/hbqt/qtwebkit/g/*.prg
* contrib/hbqt/qtdesigner/g/*.prg
* Regenerated.
enjoy hbIDEing... Pritpal Bedi
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: hbQT - Post queries in this thread only

Post by Rathinagiri »

Thanks a lot Bedi.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

Pritpal,

We will update our binaries and make required changes ASAP.

Thanks.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

Pritpal,

I've made the changes and all worked fine.

Thanks.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

Pritpal,

I'm trying to use the debugger and I'm not able to make it work.

I've added -b -gtwin parameters to hbmk2 command and added the file 'init.cld' containing 'Options NoRunAtStartup'. This works for Win32 apps, but it is not working with HBQT.

Thanks in advance.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
bedipritpal
Posts: 122
Joined: Thu Sep 02, 2010 10:47 pm

Re: hbQT - Post queries in this thread only

Post by bedipritpal »

Roberto Lopez wrote: I'm trying to use the debugger and I'm not able to make it work.

I've added -b -gtwin parameters to hbmk2 command and added the file 'init.cld' containing 'Options NoRunAtStartup'. This works for Win32 apps, but it is not working with HBQT.
I have no idea, never used debugger in my life.
Also it is one of the important missing feature in hbIDE.
So when you get it working, let me know, I would like to
implement that in hbIDE too.

BTW, do this debugger opens a new console ?
If yes, then that console needs to be Qt specific.
But I am not sure.
enjoy hbIDEing... Pritpal Bedi
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: hbQT - Post queries in this thread only

Post by Roberto Lopez »

bedipritpal wrote: Also it is one of the important missing feature in hbIDE.
So when you get it working, let me know, I would like to
implement that in hbIDE too.

BTW, do this debugger opens a new console ?
If yes, then that console needs to be Qt specific.
But I am not sure.
I'm talking about the Harbour debugger. This is text based (it works in console). This is the reason because I'm forcing a console window adding -gtwin even when I'm using for GUI apps.

I'll still researching...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply