[Interest] QClipboard from QCoreApplication?

Pekka Vuorela pvuorela at iki.fi
Fri Dec 28 16:59:48 CET 2012


On 28.12.2012 17:51, Mark wrote:
> On Fri, Dec 28, 2012 at 4:46 PM, Pekka Vuorela <pvuorela at iki.fi> wrote:
>> On 28.12.2012 17:37, Mark wrote:
>>> Hi,
>>>
>>> I want to make a QClipboard wrapper for QML. QClipboard itself doesn't
>>> depend on QWidget, but QApplication does. And i can only get a
>>> QClipboard object from QApplication thus i get a QWidget dependency
>>> again...
>>>
>>> Is there any way to construct a QClipboard object from a QCoreApplication?
>>
>> There's also QGuiApplication in between from where you can get the
>> clipboard.
> Thank you for that, that will certainly fix the QWidget dependency for Qt5.
> Is there also something for Qt4?

No, but in Qt4 QtQuick is depending on QWidget anyway. And there even 
the QClipboard exists in the same gui module as QApplication.




More information about the Interest mailing list