Results 1 to 1 of 1

Thread: "QWarning: Not implemented in this release"

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default "QWarning: Not implemented in this release"

    Hi All,

    I am working on Qt4.2 app, which updates the image based on unix signal from another process which was written in C. So whenever i get a signal from other process to Qt App I am getting a warning from Qt as "Not implemented in this release". When I debugged this qwarning in QtopiaCore-4.2.2, it appears to be from setWindowRegion function in "src/gui/embedded/qwindowsystem_qws.cpp".

    So it seems to me that the warning is coming because of (i feel this is coming by calling enablePainting() function from the same file) whenever there is a change in painting, it paints in the region of window server region, So how to get rid of this qwarning.

    Here is the Snippet of Code on receiving signal from another process and painting based on events.

    main.cpp
    Qt Code:
    1. void updateImg(int sig)
    2. {
    3. printf("SIGUSR1 signal from C Process\n");
    4. QApplication::postEvent(qApp->activeWindow(), new QEvent(QEvent::User));
    5. }
    6.  
    7. int main(int argc, char *argv[])
    8. {
    9. QApplication app(argc, argv);
    10. QFont f("helvetica");
    11. MainWindow h;
    12. struct sigaction sa;
    13. memset( &sa , 0, sizeof(sa));
    14.  
    15. sa.sa_handler = updateImg;
    16. sa.sa_flags |= 0;
    17. ::sigemptyset(&sa.sa_mask );
    18. ::sigaction(SIGUSR1, &sa, NULL);
    19.  
    20. // disable minimize/maximize buttons
    21. h.labelTitle->setText("VERSION1");
    22.  
    23. h.move(35,0);
    24. f.setPointSize(24);
    25. app.setFont(f);
    26. h.show();
    27.  
    28. return app.exec();
    29. }
    To copy to clipboard, switch view to plain text mode 
    test.h
    Qt Code:
    1. class MainWindow : public QMainWindow, public Ui::MainWindow
    2. {
    3. Q_OBJECT
    4. public:
    5. MainWindow(QMainWindow *parent = 0);
    6. ~MainWindow();
    7.  
    8. void Event( QEvent *ev ) {if( ev->type() == QEvent::User ){emit update_Img();}}
    9. .....
    10. ....
    11. };
    To copy to clipboard, switch view to plain text mode 
    /updating image icon by shared memory
    test.cpp
    Qt Code:
    1. .......
    2. ......
    3. void MainWindow::update_Img()
    4. {
    5. temp_shm_data_t tempShm;
    6. static unsigned char image[MAX_FNAME_LEN] = "\0";
    7. static unsigned char mage_prev[MAX_FNAME_LEN] = "\0";
    8. if(V_SEM_LOCKR( &shmPtr->temp_data.h.ch_lock) == WFALSE)
    9. {
    10. PRNT_DBG_LOG("read lock failed");
    11. return;
    12. }
    13.  
    14. tempShm = shmPtr->temp_data;
    15.  
    16. if(V_SEM_UNLOCKR( &shmPtr->dvin_data.h.ch_lock) == WFALSE)
    17. {
    18. PRNT_DBG_LOG("read unlock failed");
    19. return;
    20. }
    21.  
    22. strcpy((char *)image_prev,(const char *)image);
    23. strcpy((char *)image,(const char *)tempShm.dvin_vga_icon);
    24.  
    25. if(strcmp((const char *)image_prev, (const char *)image) != 0)
    26. {
    27. mw->temp_Img->setPixmap(QPixmap((const char *)image));
    28. }
    29. }
    30. ......
    31. ......
    To copy to clipboard, switch view to plain text mode 

    Is there anything wrong in the implementation, or is there anything to be added, it seems to me I am getting signal and updating the image based on signal. But iam getting the above said warning and printing on console.
    How to get rid of this warning message?
    Last edited by jacek; 19th August 2008 at 02:47. Reason: missing [code] tags

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.