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. Tab order and focus on first
Qt 6.11 is out! See what's new in the release blog

Tab order and focus on first

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

    I have two windows, which I made in Qt Creator. This two ui files are similar. They has a few QLineEdit, QLabel and QDialogButtonBox. I made a tab order under designer and one window is fine - tab order is okey and after show first widget is focused. Second window is broken - I made a tab order under designer but after window is shown then focus is on QDialogButtonBox - I need click Tab to get first widget. Tabs are fine, but focus is broken. I don't add any code in cpp file, this windows are shown in the same way. How can I fix this? Now I add to second window:
    @
    ui->leFirst->setFocus();
    @
    but this is fix, not solution.

    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