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
Forum Updated to NodeBB v4.3 + New Features

Questions Regarding Default Button

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 451 Views 1 Watching
  • 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 12 Mar 2015, 13:48 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 12 Mar 2015, 13:56 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

      1/2

      12 Mar 2015, 13:48

      • Login

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