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

Disable highlighting in QDoubleSpinBox

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k 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.
  • D Offline
    D Offline
    daveq
    wrote on last edited by
    #1

    I'm using Qt 4.8 with PySide and can't seem to get a QDoubleSpinBox to return to normal, un-highlighted mode after the value has been selected unless I go select something else in the GUI. Is this possible turn off highlighting once the enter key is pressed and the new value is set?
    Thanks.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hi, ~daveq!

      Welcome to Qt Developer Network!

      Now QDoubleSpinBox does not send any signals when you press Return - so you can't change it's focus state. But if you want to achieve it you can create you own widget (inherited from QDoubleSpinBox) and implement this behaviour there.

      Maybe there is better solution, but I've done it in this way.

      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