Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Questions Regarding Default Button

Questions Regarding Default Button

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 447 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joeydonovan4
    wrote on last edited by
    #1

    I am implementing a function in my API that uses setDefault() to, first, change an existing default button by using setDefault(false). Then I use the setDefault(true) command on another button to set that button as the default. Is unsetting the original default button necessary, or does setting another button as the default automatically unset the previous default button?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Ediolot
      wrote on last edited by
      #2

      This is from QT documentatio:
      In a dialog, only one push button at a time can be the default button. This button is then displayed with an additional frame (depending on the GUI style).

      I guess you dont have to set the old one to default: false. 99% sure.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved