[Qt-interest] Enabling scroll without scroll bar

Malyushytsky, Alex alex at wai.com
Fri Feb 5 00:48:19 CET 2010


The following approaches come to my mind:
- introducing Pan  mode. In this case when you click the view and move mouse with one of the button presses you basically drag the scene. Example is AutoCad. Implementation is straightforward.

- move scene if specific conditions are met (for example left mouse button is pressed) and mouse is near the view boundaries -  move the scene similar to the scrollbar would move in direction which depends on the mouse location (near top, bottom, left or right border). Most of the games do it such way ( Civ for example). I never tried to implement such approach, so can't comment on complexity.


Regards,
    Alex




From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mohammed Imran B
Sent: Wednesday, February 03, 2010 8:05 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Enabling scroll without scroll bar

Hi,

I Want to scroll the screen up, down, right, left without using the scroll bar.

Is there any way that I can achieve this. If please help me out.

Thank you.

Regards,
Imran



---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list