Results 1 to 3 of 3

Thread: Can't drop a widget in designer - solution

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Can't drop a widget in designer - solution

    Problem:
    I had a problem with designer in qt 4.2.1. I could drag a widget from the toolbox but it would disappear when dropped on a form. I also had this error in the console:
    Xlib: extension "SHAPE" missing on display

    Solution:
    I added the following line to the modules section of my xorg.conf:
    Load "extmod"

    This loads a bunch of basic extensions including the shape extension. Now I can drag and drop properly in designer.

    Hope this helps anyone who was having this same problem.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't drop a widget in designer - solution

    Thanks for sharing this. Perhaps you could add this tip to the wiki.

  3. #3
    Join Date
    Jul 2012
    Location
    Dry land on the third rock from Sol
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can't drop a widget in designer - solution

    Quote Originally Posted by heathbar82 View Post
    Problem:
    I had a problem with designer in qt 4.2.1. I could drag a widget from the toolbox but it would disappear when dropped on a form. I also had this error in the console:
    Xlib: extension "SHAPE" missing on display

    Solution:
    I added the following line to the modules section of my xorg.conf:
    Load "extmod"

    This loads a bunch of basic extensions including the shape extension. Now I can drag and drop properly in designer.

    Hope this helps anyone who was having this same problem.
    While I realize this is an ancient thread, I'ma reply to this anyhow. I recently had this same exact problem (unable to drag and drop in designer) on the latest Kubuntu 12.04 and this solved it! Anyone else having this problem, check your xorg.conf and ensure that you have a "Modules" section, and that it contains the Load "extmod" line mentioned in the above post.

Similar Threads

  1. Drag Drop between Different Views
    By aamer4yu in forum Qt Programming
    Replies: 13
    Last Post: 8th December 2006, 05:29
  2. Replies: 5
    Last Post: 23rd May 2006, 12:40
  3. QT4: Custom widget for QT Designer
    By Michiel in forum Qt Tools
    Replies: 4
    Last Post: 4th May 2006, 14:35
  4. Replies: 4
    Last Post: 2nd March 2006, 00:11
  5. Replies: 4
    Last Post: 6th February 2006, 15:30

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.