Results 1 to 4 of 4

Thread: A new project

  1. #1
    Join Date
    Jan 2013
    Location
    England
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    7

    Post A new project

    Hey,
    I am starting a new project in which I have 7 pages each with different tools on - I want to be able to switch between these pages using push buttons on each page and then use the specific tool on that page (calculator, calender etc)

    I am wondering how i should go about coding this, i am not particularly asking for any code but how i should lay it out and how i can use pushbuttons to navigate between several pages, from each page. I have understanding of signals and slots but not how i can switch the pages without litteraly closing then opening widgets which is slow and not very appealing for the user.

    Please note that I don't really want to use a Tab bar, i want to use pushbuttons which i can modify and place where I want to navigate pages with ease

    Thanks in advance for any help and I appreciate patience as this is a project I am using to become more familiar with Qt and learn the best ways of coding GUI's



    Edit: Also i would like to add that I do not want to use Forms, all of this will be coded
    Last edited by Jake123; 25th January 2013 at 18:11.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 284 Times in 279 Posts

    Default Re: A new project

    Read about QStackedWidget.

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

    Jake123 (25th January 2013)

  4. #3
    Join Date
    Jan 2013
    Location
    England
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    7

    Default Re: A new project

    Quote Originally Posted by Lesiok View Post
    Read about QStackedWidget.

    Perfect! Just what I was looking for, I was trying "TabWidget" but it just wasnt giving me the results I wanted, but StackedWidget has worked perfectly!

    Thanks for your help!

  5. #4
    Join Date
    Jan 2013
    Location
    England
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    7

    Default Re: A new project

    After a few hours I have got the buttons working perfectly in QStackedWidget, thanks again!

Similar Threads

  1. Replies: 4
    Last Post: 20th January 2013, 12:01
  2. haw to ues project ( skin ) with anther project
    By Master Loda in forum Qt Programming
    Replies: 4
    Last Post: 22nd July 2011, 09:58
  3. How to convert QT Project to CMake project?
    By Kevin Hoang in forum Qt Programming
    Replies: 2
    Last Post: 29th March 2011, 10:48
  4. Qt project management - bigger project
    By Peppy in forum Qt Programming
    Replies: 11
    Last Post: 24th December 2010, 14:50
  5. Replies: 1
    Last Post: 4th December 2009, 00:34

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
  •  
Qt is a trademark of The Qt Company.