Results 1 to 5 of 5

Thread: Back button not working in my py

  1. #1
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Back button not working in my py

    I have to create a file for my assignment . Problem is I have got most of it to work. Only problem I want back buttons to go back to the home page for the customer. Customer is like menu options choice where you want to go like make a booking. If I want to go back to the customer home page gives errors.

    Any way to send private message someone can check it for me.

    I have from order import ui_order, from booking import ui_booking in my customer.py. Def ordershow, def bookingshow So I can go to those pages. I have now added from customer import ui_customer in order, booking.py so back button will take me back to customer page. But it is giving me errors ui_customer

    Any help appreciated

    Python 3.40
    Last edited by Handy77; 14th April 2016 at 23:33.

  2. #2
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Backbutton connection

    I don't know how to connect back buttons I want to go back to the customer menu page and I there are 6 pages which will need to be sent back to the menu page. I have no clue. When I click signal it gives me choice to choose I choose the btnback. Slot I click clicked(). Receiver and the slot I have no idea what to click it only gives options stuff on my page. So how do I connect the back. Thank you. I have assignment Python due soon so I need to get all the issues fix. Only thing left I have no back tutors I need to click the x at the top. Used qt4 qt designer
    Last edited by Handy77; 21st April 2016 at 10:01.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Backbutton connection

    This is something you handle in code, not in designer.

    You need a function in your code that has the "back logic" and you connect the button's signal to that function.

    Cheers,
    _

  4. #4
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Back button not working in my py

    I have tried in my customer page I have imported the names of the pages. When I click the back button on the price page it gives error
    from customer import ui_customer
    And in the customer py gives this error
    From price import ui_price
    And th other pages imported in my customer show error to. Any way to fix it

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Back button not working in my py

    I am sorry, but I seem to not see any error message in your last comment.

    Cheers,
    _

Similar Threads

  1. Android back button handling is inconsistent
    By pherthyl in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 27th January 2014, 02:27
  2. QWizard: Temporarily disable the Back button
    By ChrisW67 in forum Qt Programming
    Replies: 6
    Last Post: 31st January 2012, 01:41
  3. Flick charm not working when clicking over a button.
    By alitoh in forum Qt Programming
    Replies: 0
    Last Post: 9th January 2012, 14:52
  4. detecting back and forward buttons on >= 5 button mouse
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2011, 21:45
  5. Replies: 1
    Last Post: 18th December 2009, 21:57

Tags for this Thread

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.