hbQT - Post queries in this thread only
Moderator: Rathinagiri
- 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
Roberto, can you update with the new HBQT code?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: hbQT - Post queries in this thread only
I must prepare new binaries for both (Windows and Linux) from the modified sources.rathinagiri wrote:Roberto, can you update with the new HBQT code?
I'll try to do it ASAP.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- bedipritpal
- Posts: 122
- Joined: Thu Sep 02, 2010 10:47 pm
Re: hbQT - Post queries in this thread only
I am not a user of Linux so cannot comment.Roberto Lopez wrote:Pritpal,
Various users (and me) verified that images are not working in menus under Ubuntu 10.4.
It can be verified on demoqt.
Post your relevant code here and let me analyze how it can be done in different way.
Hopefully we will get to the problem.
enjoy hbIDEing... Pritpal Bedi
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: hbQT - Post queries in this thread only
Thanks for your answer.bedipritpal wrote:I am not a user of Linux so cannot comment.Roberto Lopez wrote:Pritpal,
Various users (and me) verified that images are not working in menus under Ubuntu 10.4.
It can be verified on demoqt.
Post your relevant code here and let me analyze how it can be done in different way.
Hopefully we will get to the problem.
There is no special code. It is simply demoqt with Harbour built from current (a couple of days ago) sources.
The same works perfect on Windows.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: hbQT - Post queries in this thread only
Pritpal,
I'm trying to print based on a millimeters coordinates system.
I've found a solution, but is C++ based.
The problem is that I can't figure out how the following code can be translated to HBQT:
were 'painter' is a QPaniter object.
Thanks in advance.
I'm trying to print based on a millimeters coordinates system.
I've found a solution, but is C++ based.
The problem is that I can't figure out how the following code can be translated to HBQT:
Code: Select all
painter.device()->physicalDpiX()
Thanks in advance.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- bedipritpal
- Posts: 122
- Joined: Thu Sep 02, 2010 10:47 pm
Re: hbQT - Post queries in this thread only
Try:Roberto Lopez wrote:Pritpal,
I'm trying to print based on a millimeters coordinates system.
I've found a solution, but is C++ based.
The problem is that I can't figure out how the following code can be translated to HBQT:
were 'painter' is a QPaniter object.Code: Select all
painter.device()->physicalDpiX()
Thanks in advance.
Local qPaintDevice
qPaintDevice := QPaintDevice():from( painter:device() )
nDpiX := qPaintDevice:physicalDpiX()
enjoy hbIDEing... Pritpal Bedi
- bedipritpal
- Posts: 122
- Joined: Thu Sep 02, 2010 10:47 pm
Re: hbQT - Post queries in this thread only
Try:Roberto Lopez wrote: There is no special code. It is simply demoqt with Harbour built from current (a couple of days ago) sources.
The same works perfect on Windows.
oActNew := QAction():new( oMenu1 )
oActNew:setText( "&New" )
oActNew:setIcon( "new.png" )
oActNew:connect( "triggered(bool)", {|w,l| FileDialog( "New" , w, l ) } )
oMenu1:addAction_4( oActNew )
enjoy hbIDEing... Pritpal Bedi
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: hbQT - Post queries in this thread only
Pritpal,
Thanks for your answers.
Thanks for your answers.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- bedipritpal
- Posts: 122
- Joined: Thu Sep 02, 2010 10:47 pm
Re: hbQT - Post queries in this thread only
It is not enough.Roberto Lopez wrote:Pritpal,
Thanks for your answers.
Did they work ?
enjoy hbIDEing... Pritpal Bedi
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: hbQT - Post queries in this thread only
Its working fine. It returns the correct DPIs for the printer.bedipritpal wrote:Try:Roberto Lopez wrote:Pritpal,
I'm trying to print based on a millimeters coordinates system.
I've found a solution, but is C++ based.
The problem is that I can't figure out how the following code can be translated to HBQT:
were 'painter' is a QPaniter object.Code: Select all
painter.device()->physicalDpiX()
Thanks in advance.
Local qPaintDevice
qPaintDevice := QPaintDevice():from( painter:device() )
nDpiX := qPaintDevice:physicalDpiX()
A little suggestion:
Since QT official reference samples (and most of those we can find on the web) are C++ based, could be very useful if you could write a small HOWTO file, explaining how to handle certain situations when the translation of the code is not obvious for a Harbour/xBase programmer without C++ knowledge.
Thanks.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)