The most comfortable months are roughly May to October, when humidity drops and the trade winds are more settled. June to August can be busy but pleasant, especially for sailing.
November to May is hotter, wetter, and brings marine stingers to tropical Queensland waters. You can still visit, but use stinger suits, follow local swimming advice, and take cyclone-season forecasts seriously.