It's important that all your transactions are entered correctly so that your books can be well balanced. QuickBooks Online is a great tool able to help you keep track of sales and expenses so you can see the profit of your company. I can point you in the right direction for assistance in entering this withdrawal.
For assistance in entering this withdrawal without using the petty cash account, I recommend reaching out to your accountant for assistance. Their expertise will be able to help you in entering this transaction so that all your books are well-balanced. You can invite your accountant to your QuickBooks account by going to the My Accountant tab. You can also find one close to you by clicking on the Find a pro to help option to help you in this section.
If you have any further questions, please feel free to ask them here.