There's no direct way to transfer your QuickBooks Online company data to QuickBooks Desktop. You'd have to export your data and import it in QuickBooks.
Here's how:
Log in to your QuickBooks Online account.
Go to the Settings ⚙ icon.
Select Export Data.
Once exported, you can review each file then import it. Depending on the information, there are different ways to import your data.