Ex-dividend and the quality of the dividend.

I’m just wondering if there is any reason why some companies can go ex-dividend for 1 month or more, and some for only a couple of weeks?

Does a shorter period signal a higher quality dividend?

I’d be quite surprised if you could accurately infer anything about the quality of dividends solely from the time span between the ex-dividend date and the dividend payment date. I’d imagine that it has more to do with the company’s accounting system than anything else.

Has a company ever declared a dividend and failed to pay it after going ex? I guess if there is a really long period there would be more risk?