Jeff McLean | 2 Jun 2003 08:48
Picon
Picon

How can I resize a QCanvas when it's QCanvasView is resized?

Hi,

Sorry to ask a strait-QT/KDE question I hope that is OK.

Again, I'm working on learning the required skills to make my drawing program, 
and I have a QCanvasView and it's associated QCanvas.  I have a few 
QCanvasItems that I can drag around, and it's working well.  But, when I 
resize the window, the canvas doesn't resize.  I know the QCanvasVIew does, 
because I added a printf line to its sizePolicy().   I can see that the 
canvas is not getting resized because I can't drag the items past where the 
original window border was.

I would guess that you don't even need to see the code, but it's at the end of 
this message anyways. 

Thanks a lot.

Jeff

earthview.h:

#ifndef EARTHVIEW_H
#define EARTHVIEW_H

#include <qwidget.h>
#include <qcanvas.h>
#include <qevent.h>

class EarthView : public QCanvasView {
	Q_OBJECT
(Continue reading)

ismail donmez | 2 Jun 2003 09:35
Picon
Favicon

[Bug 57415] First File Select Dialog should be able to turn off

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=57415     
voidcartman <at> yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

------- Additional Comments From voidcartman <at> yahoo.com  2003-06-02 09:35 -------
Implemented on CVS. Thnx!
Thomas Zander | 2 Jun 2003 11:04

Re: [Bug 57415] First File Select Dialog should be able to turn off

I wish people that start to implement new features would first read the
mailing list archives.  This feature request has been discussed many
times and due to usability issues can't be implemented.

Its quite annoying to see that KWord has been praized for its usability
many times in the past and if I open KWord after not seeing the development
for a year it has soo many usability bugs its nothing but frustrating.

The new open dialog that has been in development on the usability
mailinglist does not have this feature so this reporter is going to be
dissapointed when the new KOffice is released.

Sorry to banter like this; but I feel strongly about some things (mostly
usability) and it amazes me that while KOffice (and KDE) is build via the
internet, soo many people fail to use that same internet for what it is
meant to be: information retreival and communications..

Ok all, show is over. Back to work :-)

On Mon, Jun 02, 2003 at 07:35:16AM -0000, ismail donmez wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>      
> http://bugs.kde.org/show_bug.cgi?id=57415     
> voidcartman <at> yahoo.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|                            |WORKSFORME
(Continue reading)

Thomas Zander | 2 Jun 2003 11:07

Re: How can I resize a QCanvas when it's QCanvasView is resized?

On Mon, Jun 02, 2003 at 02:48:21AM -0400, Jeff McLean wrote:
> Hi,
> 
> Sorry to ask a strait-QT/KDE question I hope that is OK.
> 
> Again, I'm working on learning the required skills to make my drawing program, 
> and I have a QCanvasView and it's associated QCanvas.  I have a few 
> QCanvasItems that I can drag around, and it's working well.  But, when I 
> resize the window, the canvas doesn't resize.  I know the QCanvasVIew does, 
> because I added a printf line to its sizePolicy().   I can see that the 
> canvas is not getting resized because I can't drag the items past where the 
> original window border was.

A canvas is the size of your painting; what does that have to do with the
view?
I don't think your canvas _should_ get smaller (dropping things) when your
window is resized.
That would also mean you would lose items when you zoom in.

I think you should read the Qt docs a little longer :)

--

-- 
Thomas Zander
David Faure | 2 Jun 2003 12:54
Picon

Re: [Bug 57415] First File Select Dialog should be able to turn off

On Monday 02 June 2003 11:04, Thomas Zander wrote:
> I wish people that start to implement new features would first read the
> mailing list archives.  This feature request has been discussed many
> times and due to usability issues can't be implemented.
> 
> Its quite annoying to see that KWord has been praized for its usability
> many times in the past 
Has it? Certainly not for its startup dialog, if you read the bug reports.

> and if I open KWord after not seeing the development 
> for a year it has soo many usability bugs its nothing but frustrating.
> 
> The new open dialog that has been in development on the usability
> mailinglist does not have this feature so this reporter is going to be
> dissapointed when the new KOffice is released.

I'm sorry, but given the number of persons who asked for this feature,
it would REALLY make sense that your 'startup dialog new generation'
provide it. Especially since it's doable - given that the new one in CVS
does it.

Can we see how the "new generation" startup dialog looks like?
Some screenshot was sent here but since then much discussion followed,
so I assumed it's been improved.

> Sorry to banter like this; but I feel strongly about some things (mostly
> usability) and it amazes me that while KOffice (and KDE) is build via the
> internet, soo many people fail to use that same internet for what it is
> meant to be: information retreival and communications..

(Continue reading)

Thomas Zander | 2 Jun 2003 14:46

Re: [Bug 57415] First File Select Dialog should be able to turn off

On Mon, Jun 02, 2003 at 12:54:19PM +0200, David Faure wrote:
> On Monday 02 June 2003 11:04, Thomas Zander wrote:
> > I wish people that start to implement new features would first read the
> > mailing list archives.  This feature request has been discussed many
> > times and due to usability issues can't be implemented.
> > 
> > Its quite annoying to see that KWord has been praized for its usability
> > many times in the past 
> Has it? Certainly not for its startup dialog, if you read the bug reports.

It has, yes. Many reviews and bug reports start out stating that KWord is
the most usable word processor they know.  I hope you will forgive me that
I don't keep copies of such emails/magazines :)

> > and if I open KWord after not seeing the development 
> > for a year it has soo many usability bugs its nothing but frustrating.
> > 
> > The new open dialog that has been in development on the usability
> > mailinglist does not have this feature so this reporter is going to be
> > dissapointed when the new KOffice is released.
> 
> I'm sorry, but given the number of persons who asked for this feature,
> it would REALLY make sense that your 'startup dialog new generation'
> provide it. Especially since it's doable - given that the new one in CVS
> does it.

Technically everything is doable.  But that has never been the reason
to implement a new feature; has it? (because you can)
This _has_ been discussed on this list before many times and I really don't
want to start a discussion again.
(Continue reading)

David Faure | 2 Jun 2003 14:59
Picon

Re: [Bug 57415] First File Select Dialog should be able to turn off

On Monday 02 June 2003 14:46, Thomas Zander wrote:
> This _has_ been discussed on this list before many times and I really don't
> want to start a discussion again.

Sorry, I don't remember a decision against this feature, especially the way
it's implemented now.

> The point (in a nutshell) is that if you don't get an open dialog the user
> will never know he can get a template based document. 
Using File / New, like in EVERY other word processor (or other office suite component)
out there.

> Plus that he will not get a very consistent user experience when pressing the 'new' button.
File / New is NOT the same thing as starting an application. For instance,
showing a file dialog in such a case (which is more the point of file/open)
doesn't make much sense.

> > And it amazes me how every time someone contributes something he
> > gets flamed more than congratulated. I like tnagy's new dialog a lot,
> > and he has taken into account many requests about it from many people.
> > "Drop it all, kde-usability has decided that it should look like this" isn't
> > very nice IMHO.
> 
> If the dialog had a review on this list then some usability people could
> have brought up issues before the real work has been done.
> This is the main reason why more designer files should be used in KDE, its
> easy to alter things without throwing away code.
> I'm not saying that I just want to replace it with another for the sake
> of replacing it!
> I am arguing that the new dialog has several problems that make it worse
(Continue reading)

Thomas Zander | 2 Jun 2003 16:03

Re: How can I resize a QCanvas when it's QCanvasView is resized

On Mon, Jun 02, 2003 at 09:46:50AM -0400, Jeff McLean wrote:
> Hi Thomas,
> 
> I agree I still have a long way to go with Qt before I can do this stuff with 
> my eyes closed :)

:-)

> What I mean is that I start my canvas off as 500x500
...
> Does that explain what I mean a bit more?

I understand your point, and I think you misunderstood the concept of canvas
and canvas view.
Please read up on that; the answer I gave below still seem to answer your
question.

> 
> On Monday 02 June 2003 05:07 am, Thomas Zander wrote:
> > On Mon, Jun 02, 2003 at 02:48:21AM -0400, Jeff McLean wrote:
> > > Hi,
> > >
> > > Sorry to ask a strait-QT/KDE question I hope that is OK.
> > >
> > > Again, I'm working on learning the required skills to make my drawing
> > > program, and I have a QCanvasView and it's associated QCanvas.  I have a
> > > few QCanvasItems that I can drag around, and it's working well.  But,
> > > when I resize the window, the canvas doesn't resize.  I know the
> > > QCanvasVIew does, because I added a printf line to its sizePolicy().   I
> > > can see that the canvas is not getting resized because I can't drag the
(Continue reading)

Jeff McLean | 2 Jun 2003 15:46
Picon
Picon

Re: How can I resize a QCanvas when it's QCanvasView is resized

Hi Thomas,

I agree I still have a long way to go with Qt before I can do this stuff with 
my eyes closed :)

What I mean is that I start my canvas off as 500x500 (I have to use a 
canvas::resize() to get it to even show up) but when I try to maximize the 
window, although the canvas' containing QCanvasView is resized, the QCanvas 
itself is not - I can tell because I can't drag my QCanvasItems outside of 
the original QCanvas boundary.  I thought that Qt would have taken care of 
telling the QCanvas to resize when its QCanvasView is resized, but that isn't 
happening, and there isn't a signal QCanvasView::resized() that I could 
connect to my container widget to tell the QCanvas to resize either.

Does that explain what I mean a bit more?

Thanks again,
Jeff

BTW, if you can suggest any more materials for learning the Qt, KDE, and 
KOffice APIs that would be very much appreciated.  I have done the online Qt 
tutorials, and now I'm thinking about getting the o'reilly book about Qt.

On Monday 02 June 2003 05:07 am, Thomas Zander wrote:
> On Mon, Jun 02, 2003 at 02:48:21AM -0400, Jeff McLean wrote:
> > Hi,
> >
> > Sorry to ask a strait-QT/KDE question I hope that is OK.
> >
> > Again, I'm working on learning the required skills to make my drawing
(Continue reading)

ismail donmez | 2 Jun 2003 11:10
Picon
Favicon

Re: [Bug 57415] First File Select Dialog should be able to turn off

Hi,
--- Thomas Zander <zander <at> planescape.com> wrote:
> I wish people that start to implement new features
> would first read the
> mailing list archives.  This feature request has
> been discussed many
> times and due to usability issues can't be
> implemented.
> 

Hmmm? Create Document -> Select a template -> Tick
"Always start Kword with selected template" works for
me.

> Its quite annoying to see that KWord has been
> praized for its usability
> many times in the past and if I open KWord after not
> seeing the development
> for a year it has soo many usability bugs its
> nothing but frustrating.
I cant blame koffice guys, koffice is not the only
project they are hacking on.

> 
> The new open dialog that has been in development on
> the usability
> mailinglist does not have this feature so this
> reporter is going to be
> dissapointed when the new KOffice is released.
> 
(Continue reading)


Gmane