Results 1 to 5 of 5

Thread: Error using kdebutton widget in QT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Error using kdebutton widget in QT

    You may also need to substitute QApplication with KApplication.

  2. #2
    Join Date
    Jan 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error using kdebutton widget in QT

    Thanks
    Adding "LIBS += -lkdeui" to .pro file worked.

    But still a problem, when i click on this button, it leads to "Segmentation Fault" and the application gets terminated. What can be the possible cause and a solution???
    I have mapped the 'Clicked()' event to form's 'Close()'

    Thanks...

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error using kdebutton widget in QT

    Quote Originally Posted by mysearch05
    But still a problem, when i click on this button, it leads to "Segmentation Fault" and the application gets terminated.
    Could you post the backtrace?

    Quote Originally Posted by mysearch05
    What can be the possible cause and a solution???
    As Wysota suggested, you might need to use KApplication and other KDE classes to make it work.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Widget Focus
    By navi1084 in forum Qt Programming
    Replies: 6
    Last Post: 29th September 2008, 10:22
  3. Playbutton functionality
    By uchennaanyanwu in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2008, 22:29
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35

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
  •  
Qt is a trademark of The Qt Company.