Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: how to link library in Qt( like gcc -l command)

  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to link library in Qt( like gcc -l command)

    Quote Originally Posted by dzh1121 View Post
    You know, I had thought that since X11Event is virtual, we do not need to reimplement them.
    Hmm... when some method is virtual it usually means it is meant to be reimplemented...

    And QWidget::x11Event() would have all the event type.
    Only events that are meant for this particular widget will be forwarded to it. Of course unless the widget is alien, then it won't get any native events.

    BTW, should I inherit QApplication for my QMainWindow?(currently, it inherits from QWidget).
    I will not answer this question but instead send you back to the docs to compare QApplication and QWidget classes and think whether one can substitute the other as a super class of QMainWindow.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    dzh1121 (14th June 2010)

  3. #22
    Join Date
    Jun 2010
    Posts
    21
    Thanks
    7
    Qt products
    Qt4

    Default Re: how to link library in Qt( like gcc -l command)

    wysota,

    Thanks for all your replies.

    As I still did not figure how to receive the original Xlib event in Qt. ( It should be able to, but I just cann't work it out.)
    As you said, x11EventFilter() maybe the reason.
    Although I still did not make it.

    Now, my current solution is using a C program to receive XEvent and send that event into a java client.( still stuck by a problem to find the WindowID of java GUI.)
    But, anyway, thank again.

    Thanks for all your effor, all your instruction and etc.

    With regards.

    Tiger

Similar Threads

  1. Is it possible to link the qt library files into exe?
    By hashb in forum Installation and Deployment
    Replies: 2
    Last Post: 7th January 2010, 14:41
  2. How to use a Dynamic Link Library with QT / C++.
    By nivaldonicolau in forum Newbie
    Replies: 5
    Last Post: 29th April 2009, 14:05
  3. How to link library?
    By Macok in forum Qt Tools
    Replies: 1
    Last Post: 31st March 2009, 16:47
  4. Link against library on Mac OS
    By janus in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd March 2009, 11:10
  5. Link *.so library
    By allstar in forum Qt Programming
    Replies: 1
    Last Post: 8th July 2007, 15:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.