Results 1 to 3 of 3

Thread: stackedWidget with arrows

  1. #1
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default stackedWidget with arrows

    Hi

    I've problem with stackedWidget. When I'm using designer I can see a small arrows in the right corner of this widget which can turn the page, but when I compiled my program and turned him on, there aren't those arrows... It's normal?

    ps
    If i made any mistakes writing this post, pleas correct me ;d

    Best Regards

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: stackedWidget with arrows

    Quote Originally Posted by Zergi View Post
    I've problem with stackedWidget. When I'm using designer I can see a small arrows in the right corner of this widget which can turn the page, but when I compiled my program and turned him on, there aren't those arrows... It's normal?
    Yes, that's normal. QStackedWidget is a stack of widgets. It doesn't have any visible element to switch between pages. Those preview arrows are in Qt Designer so that you can easily design the pages.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    Zergi (14th July 2008)

  4. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: stackedWidget with arrows

    From designer components list you can choose other elements that store pages and let the user switch between pages as well, such as ToolBox and TabWidget. Or you can anyway add those arrows by yourself with few rows of code (thanks to qt signals/slot mechanism), increasing and decreasing StackWidget page index.
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. A Question about stackedwidget
    By anafor2004 in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 15:57
  2. Remove QSpinbox up/down arrows
    By SailinShoes in forum Qt Programming
    Replies: 7
    Last Post: 12th March 2008, 21:40
  3. Does a StackedWidget plugin need multipage?
    By jayw710 in forum Qt Tools
    Replies: 2
    Last Post: 4th July 2007, 12:07
  4. keyboard left and right arrows in qt 3.3.5
    By rajaraob in forum Qt Programming
    Replies: 5
    Last Post: 22nd February 2007, 12:03
  5. How to move next page in stackedwidget ?
    By npc in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2007, 15:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.