Re: How to get kinetic scrolling working using Qt creator

2010-06-14 Thread Daniil Ivanov
Hi Sudheer!

  It's a very sad decision to give up on such simple thing.

Thanks, Daniil.

On Mon, Jun 14, 2010 at 7:49 AM, Sudheer K. scifi@hotmail.com wrote:
 Hi Daniil,

 From the testing I have done with latest Qt designer, scrolling is still not
 working. Somehow, I am not able to get the scrolling working with your .ui
 file too.

 But I feel at this point we have spent too much time for a non-critical
 issue such as this. Right now I am using tabs to organize the form fields
 and I will continue to use it. Scrolling would have been nice but is not
 absolutely necessary.

 Thank you for staying with this thread and continuously responding to my
 questions.

 ~Sudheer

 Date: Thu, 10 Jun 2010 10:20:56 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 It should be something like .ui file in attachment.

 Thanks, Daniil.

 On Thu, Jun 10, 2010 at 10:14 AM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:
  Hi Sudheer!
 
    The name of a tool is Qt Designer and it should allow to do what you
  want,
    however I'm wrong person to ask how to use Qt Designer.
 
  Thanks, Daniil.
 
  On Thu, Jun 10, 2010 at 7:47 AM, Sudheer K. scifi@hotmail.com
  wrote:
  Hi Daniil,
 
  Thanks for looking into the code. The main problem I have is that, Qt
  creator does not give enough flexibility to create the hierarchy that
  you
  suggested.
 
  This is the hierarchy created using Qt creator.
  http://i49.tinypic.com/2rxbm75.jpg
 
  - centralWidget is automatically created by Qt creator and is locked,
  so I
  cannot even delete it.
  - scrollAreaWidgetContents is also automatically created by Qt creator
  and
  is locked. I cannot modify this too.
  - I created two groupboxes (Basic and Advanced) which contain one form
  layout each. These are added to the scrollAreaWidgetContents because I
  can
  not directly add them to scrollArea.
 
  I am using Qt Creator 1.3.1. Is there a way to make the scrolling work
  using
  Creator or should I stop using Qt creator and code the form class
  myself?
 
  Date: Wed, 9 Jun 2010 18:33:55 +0300
  Subject: Re: How to get kinetic scrolling working using Qt creator
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
 
  Hi Sudheer!
 
  There are many bugs there. For example you don't need centralWidget
  at all, place scrollArea instead of it.
  Then you create multiple layout, set them to widgets and never place
  them into scrollArea.
  On desktop you don't have scroll bars as well.
 
  Thanks, Daniil.
 
 
 
  
  The New Busy is not the too busy. Combine all your e-mail accounts with
  Hotmail. Get busy.
 

 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-10 Thread Daniil Ivanov
Hi Sudheer!

   The name of a tool is Qt Designer and it should allow to do what you want,
   however I'm wrong person to ask how to use Qt Designer.

Thanks, Daniil.

On Thu, Jun 10, 2010 at 7:47 AM, Sudheer K. scifi@hotmail.com wrote:
 Hi Daniil,

 Thanks for looking into the code. The main problem I have is that, Qt
 creator does not give enough flexibility to create the hierarchy that you
 suggested.

 This is the hierarchy created using Qt creator.
 http://i49.tinypic.com/2rxbm75.jpg

 - centralWidget is automatically created by Qt creator and is locked, so I
 cannot even delete it.
 - scrollAreaWidgetContents is also automatically created by Qt creator and
 is locked. I cannot modify this too.
 - I created two groupboxes (Basic and Advanced) which contain one form
 layout each. These are added to the scrollAreaWidgetContents because I can
 not directly add them to scrollArea.

 I am using Qt Creator 1.3.1. Is there a way to make the scrolling work using
 Creator or should I stop using Qt creator and code the form class myself?

 Date: Wed, 9 Jun 2010 18:33:55 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 There are many bugs there. For example you don't need centralWidget
 at all, place scrollArea instead of it.
 Then you create multiple layout, set them to widgets and never place
 them into scrollArea.
 On desktop you don't have scroll bars as well.

 Thanks, Daniil.



 
 The New Busy is not the too busy. Combine all your e-mail accounts with
 Hotmail. Get busy.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-09 Thread Daniil Ivanov
Hi Sudheer!

  There are many bugs there. For example you don't need centralWidget
at all, place scrollArea instead of it.
  Then you create multiple layout, set them to widgets and never place
them into scrollArea.
  On desktop you don't have scroll bars as well.

Thanks, Daniil.

On Tue, Jun 8, 2010 at 6:48 PM, Sudheer K. scifi@hotmail.com wrote:
 Daniil,

 Yes, both horizontal and vertical scrolling are working with your code. Now
 how do we get this to work in my case? :)

 In my case, I have a scrollAreaWidgetContents (QWidget) 798 x 476 added to
 scrollArea. I can not resize this object using Qt creator. Even if I try to
 change the ui header file directly outside Qt creator, scrolling is not
 enabled. The group boxes which are added to scrollAreaWidgetContents have a
 combined height of more than 500.

 I have no clue why this doesn't work, unless groupboxes and/or form layouts
 does not support scrolling.

 ~Sudheer

 Date: Tue, 8 Jun 2010 17:02:55 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org

 Hi Sudheer!

 Can you try this sample application

 #include QtGui

 int main (int argc, char **argv)
 {
 QApplication app(argc, argv);

 QPixmap pixmap(1000, 1000);
 pixmap.fill(Qt::green);

 QLabel *label = new QLabel;
 label-setPixmap(pixmap);

 QScrollArea *scroll = new QScrollArea;
 scroll-setWidget(label);

 QMainWindow win;
 win.setCentralWidget(scroll);
 win.show();

 return app.exec();
 }

 Thanks, Daniil.

 On Tue, Jun 8, 2010 at 4:41 PM, Sudheer K. scifi@hotmail.com wrote:
   I think my previous message was not posted because of attachments. So,
  posting again with the link to the source code in garage page.
 
 
  https://garage.maemo.org/plugins/ggit/browse.php/?p=vicar;a=tree;f=src/vicar-config/uis;h=3e2e395c649bd1d5d92490fb2e959b734c77ab1a;hb=af05031713c05157ffb173c51beb8dfb29a6e2f8
 
 
  Ram - I am using Qt creator to create .ui file. I have attached the ui
  file
  and the header file generated by Qt creator. Any changes I make to the
  header file will be overwritten. So I want to use Qt creator only. But
  the
  code generated by Qt creator is similar to yours. I am using the
  QScrollArea
  as well.
 
  Felipe - I am adding two groupboxes to the scroll area. The combined
  height
  for these two boxes is more than 500 which should trigger scrolling. But
  it
  doesn't :(
 
  Daniil - I am not using dpkg at this moment because I am not creating a
  deb.
  I am using qmake and make to create the executable and running on device
  using run-standalone.sh.
 
  Output from qmake -v
  QMake version 2.01a
  Using Qt version 4.6.2 in /usr/lib
 
  Can you look the ui file or header file in the link and tell me what
  could
  be wrong here? I have only one field that is going off the screen.
 
  
  The New Busy is not the old busy. Search, chat and e-mail from your
  inbox.
  Get started.
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 

 
 The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
 Hotmail. Get busy.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-09 Thread Sudheer K .

Hi Daniil,

Thanks for looking into the code. The main problem I have is that, Qt creator 
does not give enough flexibility to create the hierarchy that you suggested.

This is the hierarchy created using Qt creator.
http://i49.tinypic.com/2rxbm75.jpg 

- centralWidget is automatically created by Qt creator and is locked, so I 
cannot even delete it.
- scrollAreaWidgetContents is also automatically created by Qt creator and is 
locked. I cannot modify this too.
- I created two groupboxes (Basic and Advanced) which contain one form layout 
each. These are added to the scrollAreaWidgetContents because I can not 
directly add them to scrollArea.

I am using Qt Creator 1.3.1. Is there a way to make the scrolling work using 
Creator or should I stop using Qt creator and code the form class myself?

 Date: Wed, 9 Jun 2010 18:33:55 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org
 
 Hi Sudheer!
 
   There are many bugs there. For example you don't need centralWidget
 at all, place scrollArea instead of it.
   Then you create multiple layout, set them to widgets and never place
 them into scrollArea.
   On desktop you don't have scroll bars as well.
 
 Thanks, Daniil.
 

  
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-08 Thread Sudheer K .






 I think my previous message was not posted because of attachments. So, posting 
again with the link to the source code in garage page.

https://garage.maemo.org/plugins/ggit/browse.php/?p=vicar;a=tree;f=src/vicar-config/uis;h=3e2e395c649bd1d5d92490fb2e959b734c77ab1a;hb=af05031713c05157ffb173c51beb8dfb29a6e2f8



Ram - I am using Qt creator to create .ui file. I have attached the ui 
file and the header file generated by Qt creator. Any changes I make to 
the header file will be overwritten. So I want to use Qt creator only. 
But the code generated by Qt creator is similar to yours. I am using the
 QScrollArea as well. 

Felipe - I am adding two groupboxes to the
 scroll area. The combined height for these two boxes is more than 500 
which should trigger scrolling. But it doesn't :(

Daniil - I am 
not using dpkg at this moment because I am not creating a deb. I am 
using qmake and make to create the executable and running on device 
using run-standalone.sh. 

Output from qmake -v 
QMake 
version 2.01a
Using Qt version 4.6.2 in /usr/lib

Can you look 
the ui file or header file in the link and tell me what could be wrong 
here? I have only one field that is going off the screen.
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-06 Thread Ram Kurvakat
just a quick example that would work, see if it helps.

 imageLabel = new QLabel;
 QImage image(someimagefile);
 imageLabel-setPixmap(QPixmap::fromImage(image));

 _scrollForMapPage = new QScrollArea;
 _scrollForMapPage-setWidget(imageLabel);

 _mapWindow = new QMainWindow ( this );
 _mapWindow-setCentralWidget(_scrollForMapPage);
 _mapWindow-show();

you dont need to set any property as Daniil set most widgets have kinetic 
scrolling by default like ListWidget/TableWidget/ScrollArea.

cheers
-krk969

- Original Message -
From: Sudheer K.
Sent: 06/06/10 05:08 AM
To: fel...@crochik.com, daniil.iva...@gmail.com
Subject: RE: How to get kinetic scrolling working using Qt creator

 Anyone know of any applications that are using Qt Creator (.ui files) and were 
successful in implementing kinetic scrolling? Maybe I can look at the forms to 
see what I am doing wrong here.

Thanks,
Sudheer
-
From: scifi@hotmail.com
To: fel...@crochik.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 20:57:38 -0700


Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :)

Another thing is I can display the scrollbar using verticalscrollbarpolicy 
but it doesn't actually scroll anything.
-
From: fel...@crochik.com
To: scifi@hotmail.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 23:52:45 -0400

 One silly question: are you trying it on the actual device? It won't work on 
the simulator or if you compile for the desktop. 

- Original message - 
 
 Hi Daniil, 
 
 I could not get the scrolling to work by using QScrollArea, even after 
 removing the FingerScrollable property. Any suggestions on what I should 
 change? 
 
 I have tried setting WidgetResizable to true on QScrollArea, still 
 scrolling does not work. 
 
 If it matters, there are sizes I have set in my form. 
 
 ConfigWindow (QMainWindow) - 800 x 480 
 centralWidget (QWidget) - 800 x 457 
 scrollArea (QScrollArea) - 800 x 550 
 scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be 
 modified). 
 
 All the examples I have seen (even on Qt site) use custom code to create 
 QWidget or QWindow. But I am using Qt creator to create the form and I 
 couldn't find much help. 
 
 
  Date: Sat, 5 Jun 2010 21:52:29 +0300 
  Subject: Re: How to get kinetic scrolling working using Qt creator 
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
  
  Hi Sudheer! 
  
  There is no such property as FingerScrollable and kinetic srolling 
  is enabled by default for QScrollArea 
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details 
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details 
  
  Thanks, Daniil. 
  
  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com 
  wrote: 
   Hi All, 
   
   I have created a QScrollArea to a QMainWindow in a form using Qt 
   Creator. I have set the dynamic property FingerScrollable to true 
   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea. 
   
   This is the structure of my form objects in the format objectname 
   (ClassName): 
   
   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea 
   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox 
   (QGroupBox). 
   
   I have set the FingerScrollable property to true for all these 
   objects. But still I am not able to get kinetic scrolling working 
   for the form. Am I missing something? 
    
   Hotmail is redefining busy with tools for the New Busy. Get more 
   from your inbox. See how. 
   ___ 
   maemo-developers mailing list 
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers 
   https://lists.maemo.org/mailman/listinfo/maemo-developers 
   
   
 
 _ 
 The New Busy is not the too busy. Combine all your e-mail accounts with 
 Hotmail. 
 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
  
 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
  



-
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more. 
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
 
-
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox. See how. 
http

Re: How to get kinetic scrolling working using Qt creator

2010-06-06 Thread Daniil Ivanov
Hi Sudheer!

  Make sure (with dpkg -l libqt4*) that you are using Qt = 4.6.2.

Thanks, Daniil.

On Sun, Jun 6, 2010 at 11:43 AM, Ram Kurvakat rkma...@gmx.com wrote:
 just a quick example that would work, see if it helps.

     imageLabel = new QLabel;

     QImage image(someimagefile);

     imageLabel-setPixmap(QPixmap::fromImage(image));

     _scrollForMapPage = new QScrollArea;

     _scrollForMapPage-setWidget(imageLabel);

     _mapWindow = new QMainWindow ( this );

     _mapWindow-setCentralWidget(_scrollForMapPage);

     _mapWindow-show();

 you dont need to set any property as Daniil set most widgets have kinetic
 scrolling by default like ListWidget/TableWidget/ScrollArea.
 cheers
 -krk969

 - Original Message -

 From: Sudheer K.

 Sent: 06/06/10 05:08 AM

 To: fel...@crochik.com, daniil.iva...@gmail.com

 Subject: RE: How to get kinetic scrolling working using Qt creator

 Anyone know of any applications that are using Qt Creator (.ui files) and
 were successful in implementing kinetic scrolling? Maybe I can look at the
 forms to see what I am doing wrong here.

 Thanks,
 Sudheer
 
 From: scifi@hotmail.com
 To: fel...@crochik.com; daniil.iva...@gmail.com
 CC: maemo-developers@maemo.org
 Subject: RE: How to get kinetic scrolling working using Qt creator
 Date: Sat, 5 Jun 2010 20:57:38 -0700


 Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it
 :)

 Another thing is I can display the scrollbar using verticalscrollbarpolicy
 but it doesn't actually scroll anything.
 
 From: fel...@crochik.com
 To: scifi@hotmail.com; daniil.iva...@gmail.com
 CC: maemo-developers@maemo.org
 Subject: RE: How to get kinetic scrolling working using Qt creator
 Date: Sat, 5 Jun 2010 23:52:45 -0400

 One silly question: are you trying it on the actual device? It won't work on
 the simulator or if you compile for the desktop.

 - Original message -

 Hi Daniil,

 I could not get the scrolling to work by using QScrollArea, even after
 removing the FingerScrollable property. Any suggestions on what I should
 change?

 I have tried setting WidgetResizable to true on QScrollArea, still
 scrolling does not work.

 If it matters, there are sizes I have set in my form.

  ConfigWindow (QMainWindow) - 800 x 480
  centralWidget (QWidget) - 800 x 457
  scrollArea (QScrollArea) - 800 x 550
  scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be
 modified).

 All the examples I have seen (even on Qt site) use custom code to create
 QWidget or QWindow. But I am using Qt creator to create the form and I
 couldn't find much help.


  Date: Sat, 5 Jun 2010 21:52:29 +0300
  Subject: Re: How to get kinetic scrolling working using Qt creator
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
 
  Hi Sudheer!
 
  There is no such property as FingerScrollable and kinetic srolling
  is enabled by default for QScrollArea
 
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details
 
  Thanks, Daniil.
 
  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com
  wrote:
   Hi All,
  
   I have created a QScrollArea to a QMainWindow in a form using Qt
   Creator. I have set the dynamic property FingerScrollable to true
   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea.
  
   This is the structure of my form objects in the format objectname
   (ClassName):
  
   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
   (QGroupBox).
  
   I have set the FingerScrollable property to true for all these
   objects. But still I am not able to get kinetic scrolling working
   for the form.  Am I missing something?
   
   Hotmail is redefining busy with tools for the New Busy. Get more
   from your inbox. See how.
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
  
  

 _
 The New Busy is not the too busy. Combine all your e-mail accounts with
 Hotmail.

 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



 
 Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
 Learn more.
 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-06 Thread Felipe Crochik
Also make sure that the widget (imageLabel on this example) is larger than
the scrollarea contents - if you just load a small image the scroll won't
work. 

 

Even when you set the scrollbarpolicy to show always it will not scroll
anything unless the widget used on the QScrollArea::setWidget is larger than
the contents area.

 

  _  

From: Ram Kurvakat [mailto:rkma...@gmx.com] 
Sent: Sunday, June 06, 2010 4:44 AM
To: Maemo Dev Mailing List; Sudheer K.; fel...@crochik.com;
daniil.iva...@gmail.com
Subject: RE: How to get kinetic scrolling working using Qt creator

 

just a quick example that would work, see if it helps.

 

imageLabel = new QLabel;

QImage image(someimagefile);

imageLabel-setPixmap(QPixmap::fromImage(image));

 

_scrollForMapPage = new QScrollArea;

_scrollForMapPage-setWidget(imageLabel);

 

_mapWindow = new QMainWindow ( this );

_mapWindow-setCentralWidget(_scrollForMapPage);

_mapWindow-show();

 

you dont need to set any property as Daniil set most widgets have kinetic
scrolling by default like ListWidget/TableWidget/ScrollArea.

 

cheers

-krk969

 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Daniil Ivanov
Hi Sudheer!

  There is no such property as FingerScrollable and kinetic srolling
is enabled by default for QScrollArea
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details

Thanks, Daniil.

On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com wrote:
 Hi All,

 I have created a QScrollArea to a QMainWindow in a form using Qt Creator. I
 have set the dynamic property FingerScrollable to true (bool) for
 QMainWindow, QScrollArea and the contents of QScrollArea.

 This is the structure of my form objects in the format objectname
 (ClassName):

 ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
 (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
 (QGroupBox).

 I have set the FingerScrollable property to true for all these objects.
 But still I am not able to get kinetic scrolling working for the form.  Am I
 missing something?
 
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See how.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Sudheer K .

Hi Daniil,

I could not get the scrolling to work by using QScrollArea, even after removing 
the FingerScrollable property. Any suggestions on what I should change?

I have tried setting WidgetResizable to true on QScrollArea, still scrolling 
does not work.

If it matters, there are sizes I have set in my form.

 ConfigWindow (QMainWindow) - 800 x 480
 centralWidget (QWidget) - 800 x 457
 scrollArea (QScrollArea) - 800 x 550
 scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be modified).

All the examples I have seen (even on Qt site) use custom code to create 
QWidget or QWindow. But I am using Qt creator to create the form and I couldn't 
find much help.


 Date: Sat, 5 Jun 2010 21:52:29 +0300
 Subject: Re: How to get kinetic scrolling working using Qt creator
 From: daniil.iva...@gmail.com
 To: scifi@hotmail.com
 CC: maemo-developers@maemo.org
 
 Hi Sudheer!
 
   There is no such property as FingerScrollable and kinetic srolling
 is enabled by default for QScrollArea
   http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details
 
 Thanks, Daniil.
 
 On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com wrote:
  Hi All,
 
  I have created a QScrollArea to a QMainWindow in a form using Qt Creator. I
  have set the dynamic property FingerScrollable to true (bool) for
  QMainWindow, QScrollArea and the contents of QScrollArea.
 
  This is the structure of my form objects in the format objectname
  (ClassName):
 
  ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
  (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
  (QGroupBox).
 
  I have set the FingerScrollable property to true for all these objects.
  But still I am not able to get kinetic scrolling working for the form.  Am I
  missing something?
  
  Hotmail is redefining busy with tools for the New Busy. Get more from your
  inbox. See how.
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 
  
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Felipe Crochik
One silly question: are you trying it on the actual device? It won't work on 
the simulator or if you compile for the desktop.

- Original message -
 
 Hi Daniil,
 
 I could not get the scrolling to work by using QScrollArea, even after
 removing the FingerScrollable property. Any suggestions on what I should
 change?
 
 I have tried setting WidgetResizable to true on QScrollArea, still
 scrolling does not work.
 
 If it matters, there are sizes I have set in my form.
 
   ConfigWindow (QMainWindow) - 800 x 480
   centralWidget (QWidget) - 800 x 457
   scrollArea (QScrollArea) - 800 x 550
   scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be
 modified).
 
 All the examples I have seen (even on Qt site) use custom code to create
 QWidget or QWindow. But I am using Qt creator to create the form and I
 couldn't find much help.
 
 
  Date: Sat, 5 Jun 2010 21:52:29 +0300
  Subject: Re: How to get kinetic scrolling working using Qt creator
  From: daniil.iva...@gmail.com
  To: scifi@hotmail.com
  CC: maemo-developers@maemo.org
  
  Hi Sudheer!
  
  There is no such property as FingerScrollable and kinetic srolling
  is enabled by default for QScrollArea
  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details
  
  Thanks, Daniil.
  
  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com
  wrote:
   Hi All,
   
   I have created a QScrollArea to a QMainWindow in a form using Qt
   Creator. I have set the dynamic property FingerScrollable to true
   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea.
   
   This is the structure of my form objects in the format objectname
   (ClassName):
   
   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea
   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox
   (QGroupBox).
   
   I have set the FingerScrollable property to true for all these
   objects. But still I am not able to get kinetic scrolling working
   for the form.   Am I missing something?
   
   Hotmail is redefining busy with tools for the New Busy. Get more
   from your inbox. See how.
   ___
   maemo-developers mailing list
   maemo-developers@maemo.org
   https://lists.maemo.org/mailman/listinfo/maemo-developers
   
   
                                
 _
 The New Busy is not the too busy. Combine all your e-mail accounts with
 Hotmail.
 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Sudheer K .


Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :)

Another thing is I can display the scrollbar using verticalscrollbarpolicy 
but it doesn't actually scroll anything.
From: fel...@crochik.com
To: scifi@hotmail.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 23:52:45 -0400









One silly question: are you trying it on the actual device? It won't work on 
the simulator or if you compile for the desktop.



- Original message -

 

 Hi Daniil,

 

 I could not get the scrolling to work by using QScrollArea, even after

 removing the FingerScrollable property. Any suggestions on what I should

 change?

 

 I have tried setting WidgetResizable to true on QScrollArea, still

 scrolling does not work.

 

 If it matters, there are sizes I have set in my form.

 

   ConfigWindow (QMainWindow) - 800 x 480

   centralWidget (QWidget) - 800 x 457

   scrollArea (QScrollArea) - 800 x 550

   scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be

 modified).

 

 All the examples I have seen (even on Qt site) use custom code to create

 QWidget or QWindow. But I am using Qt creator to create the form and I

 couldn't find much help.

 

 

  Date: Sat, 5 Jun 2010 21:52:29 +0300

  Subject: Re: How to get kinetic scrolling working using Qt creator

  From: daniil.iva...@gmail.com

  To: scifi@hotmail.com

  CC: maemo-developers@maemo.org

  

  Hi Sudheer!

  

  There is no such property as FingerScrollable and kinetic srolling

  is enabled by default for QScrollArea

  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details

  

  Thanks, Daniil.

  

  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com

  wrote:

   Hi All,

   

   I have created a QScrollArea to a QMainWindow in a form using Qt

   Creator. I have set the dynamic property FingerScrollable to true

   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea.

   

   This is the structure of my form objects in the format objectname

   (ClassName):

   

   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea

   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox

   (QGroupBox).

   

   I have set the FingerScrollable property to true for all these

   objects. But still I am not able to get kinetic scrolling working

   for the form.   Am I missing something?

   

   Hotmail is redefining busy with tools for the New Busy. Get more

   from your inbox. See how.

   ___

   maemo-developers mailing list

   maemo-developers@maemo.org

   https://lists.maemo.org/mailman/listinfo/maemo-developers

   

   



 _

 The New Busy is not the too busy. Combine all your e-mail accounts with

 Hotmail.

 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to get kinetic scrolling working using Qt creator

2010-06-05 Thread Sudheer K .

Anyone know of any applications that are using Qt Creator (.ui files) and were 
successful in implementing kinetic scrolling? Maybe I can look at the forms to 
see what I am doing wrong here.

Thanks,
Sudheer
From: scifi@hotmail.com
To: fel...@crochik.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 20:57:38 -0700









Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :)

Another thing is I can display the scrollbar using verticalscrollbarpolicy 
but it doesn't actually scroll anything.
From: fel...@crochik.com
To: scifi@hotmail.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 23:52:45 -0400









One silly question: are you trying it on the actual device? It won't work on 
the simulator or if you compile for the desktop.



- Original message -

 

 Hi Daniil,

 

 I could not get the scrolling to work by using QScrollArea, even after

 removing the FingerScrollable property. Any suggestions on what I should

 change?

 

 I have tried setting WidgetResizable to true on QScrollArea, still

 scrolling does not work.

 

 If it matters, there are sizes I have set in my form.

 

   ConfigWindow (QMainWindow) - 800 x 480

   centralWidget (QWidget) - 800 x 457

   scrollArea (QScrollArea) - 800 x 550

   scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be

 modified).

 

 All the examples I have seen (even on Qt site) use custom code to create

 QWidget or QWindow. But I am using Qt creator to create the form and I

 couldn't find much help.

 

 

  Date: Sat, 5 Jun 2010 21:52:29 +0300

  Subject: Re: How to get kinetic scrolling working using Qt creator

  From: daniil.iva...@gmail.com

  To: scifi@hotmail.com

  CC: maemo-developers@maemo.org

  

  Hi Sudheer!

  

  There is no such property as FingerScrollable and kinetic srolling

  is enabled by default for QScrollArea

  http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details

  

  Thanks, Daniil.

  

  On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com

  wrote:

   Hi All,

   

   I have created a QScrollArea to a QMainWindow in a form using Qt

   Creator. I have set the dynamic property FingerScrollable to true

   (bool) for QMainWindow, QScrollArea and the contents of QScrollArea.

   

   This is the structure of my form objects in the format objectname

   (ClassName):

   

   ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea

   (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox

   (QGroupBox).

   

   I have set the FingerScrollable property to true for all these

   objects. But still I am not able to get kinetic scrolling working

   for the form.   Am I missing something?

   

   Hotmail is redefining busy with tools for the New Busy. Get more

   from your inbox. See how.

   ___

   maemo-developers mailing list

   maemo-developers@maemo.org

   https://lists.maemo.org/mailman/listinfo/maemo-developers

   

   



 _

 The New Busy is not the too busy. Combine all your e-mail accounts with

 Hotmail.

 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



  
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more.  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers