Voters would be accepting of a gay person as Prime Minister, according to Nick Clegg and Ed Miliband.
Deputy Prime Minister Mr Clegg said people would judge a potential prime minister on their ability to lead rather than if they were gay, as he insisted he would have no issues at all if "one of my boys told me that he liked another boy".
And Labour leader Ed Miliband expects there to be a gay PM in the future as social attitudes have driven a series of changes, including equal marriage, in the last 20 years.
Prime Minister David Cameron also said "sexual orientation should be neither here nor there" as people are helped to achieve their full potential - including becoming PM.
He added that more role models - either straight or gay - were needed to encourage best behaviour in sport, adding clubs "must tackle problems on the terraces".
Mr Clegg and Mr Miliband were responding to questions from Gay Times (GT) readers while Mr Cameron wrote an open letter for the latest edition of the publication, which is available digitally today and in print next Wednesday.
On whether the public would accept a gay PM, Liberal Democrat Mr Clegg told GT magazine: "Yes and why not?
"Being gay doesn't affect how you work, how you interact with people or how you make decisions. I'm confident that the British people would judge him or her on their ability to lead and be a good prime minister and not on who they choose to share their life with."
Asked if he could foresee a gay PM, Mr Miliband said: "Yes. I think the world has changed a lot.
"If you think about the way the world has changed in the last 20 years since I was at college we've seen the repeal of Section 28, we've seen civil partnerships, the lowering of the age of consent, equal marriage and that has been driven by change in social attitudes and that is why I think absolutely it's foreseeable to have a gay prime minister."
Mr Clegg said he hoped in the future children would not dread coming out to their parents.
Asked how he would react if one of his children was gay, Mr Clegg answered: "I would have no issues at all if one of my boys told me that he liked another boy.
"It's not a choice, it's who you are and I would love my boys regardless of their sexuality. I just hope that some day coming out to your parents is not going to be something you dread but something you will remember fondly."
Mr Miliband added on the same issue: "I would love them equally as much. The most important thing to me is that my kids are happy and I don't care whether they're gay or straight. That's what matters to me."
In his open letter, Mr Cameron said he was proud to be PM of a country judged to be the "best place to live in Europe if you are lesbian, gay, bisexual or trans(gender)", adding the Government was attempting to fight prejudice where it remains.
On sport, the Conservative went on: "We are working to break down barriers in sport, too. People should be able to excel in sport regardless of their sexuality - but we know how hard it's been.
"We have seen the enormously positive reaction to people like Thomas Hitzlsperger and Gareth Thomas being open about their sexuality, and hopefully that will encourage others to be more open too.
"But we need more role models, straight and gay, to encourage the best behaviour and clubs must tackle problems on the terraces."
UK Independence Party leader Nigel Farage was also invited to write an article for the magazine, in which he was asked if his party would pledge to expel homophobic members in the future.
He told GT magazine: "It would sound great to say, 'yes, we would expel anybody who was a homophobe', but how would that be judged, or investigated or enforced? Are there limits to what is acceptable and unacceptable, in terms of political correctness? Who is the ultimate arbiter of morality or taste?
"Even within one section or group of society there will be very different notions of what is fine and what is deemed insulting or upsetting. We are a political party, not the thought police, and never would we wish to become anything different."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article