Results 1 to 9 of 9

Thread: How to deactivate all widgets except one on form startup or show?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2020
    Posts
    3
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default How to deactivate all widgets except one on form startup or show?

    Dear everyone,
    I have designed a QDialog form on which have placed different widgets to do some calculations.
    However, everything is working according to plans.
    Except that I want to disable all widgets except one for initial input.
    I want widgets to follow tab order. After being done entering data, it should trigger or enable the next button to the end.
    Previous widgets should loose focus and become disabled as soon as am done with them. But when I click the last button, the first widget should become active again, to allow fresh entry of data.
    I used PyQt5 designer version 5.11 to design.
    Last edited by Andrew K. Kabaghe; 19th December 2020 at 13:30.

Similar Threads

  1. Replies: 4
    Last Post: 18th October 2013, 17:15
  2. show another ui form
    By k.qasempour in forum Newbie
    Replies: 3
    Last Post: 16th July 2012, 11:26
  3. Replies: 7
    Last Post: 23rd May 2012, 12:00
  4. Replies: 0
    Last Post: 30th April 2012, 15:17
  5. show form
    By mattia in forum Newbie
    Replies: 2
    Last Post: 26th October 2007, 10:20

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.