Results 1 to 3 of 3

Thread: Custom Widget not visible in QtCreator 2.0 - only in Qt 4 Designer

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Custom Widget not visible in QtCreator 2.0 - only in Qt 4 Designer

    Hi,
    i started to create an own widget, which should be add to the "designer - view" of the QtCreator 2.
    It doesn't work.

    So I started with the tutorial for the custom widget from Trolltech/Nokia, http://bit.ly/byri2f .
    I downloaded the files, compile and install it.
    And it doesn't show up in the QtCreator 2.0, but in den Qt 4 Designer.

    The installation path is /usr/lib/qt4/plugins/designer.
    Where is my mistake?

    I use Qt 4.6.3 with QtCreator 2.0.0 (Revision 1c0f52a091, based on Qt 4.7.0 (32 bit)) on Ubuntu 10.04.
    Have anyone tips or a solution?

  2. #2
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Custom Widget not visible in QtCreator 2.0 - only in Qt 4 Designer

    I have to install the *.so files manually in the directory /opt/qtsdk-2010.04/bin/designer, than the QtCreator loads the custom widget.

    One Question, too:

    In the projekt, where I use my custom widget, I have to add
    • /usr/share/qt4/lib/libQtDesigner.so
    • /usr/share/qt4/lib/libQtScript.so
    • /usr/share/qt4/lib/libQtXml.so

    to LIBS, or I get the errors:
    • undefined reference to `QLineEdit::setPlaceholderText(QString const&)'
    • undefined reference to `QListData::detach(int)'
    • undefined reference to `QMetaType::registerTypedef(char const*, int)'
    • undefined reference to `QListData::detach_grow(int*, int)'


    Why?

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom Widget not visible in QtCreator 2.0 - only in Qt 4 Designer

    http://stackoverflow.com/questions/2...491825#2491825

    BTW, you can control where Qt Creator searches for plugins using QT_PLUGIN_PATH environment variable. For example, start Qt Creator like this:

    QT_PLUGIN_PATH="/usr/lib/qt4/plugins/" /opt/qtsdk-2010.04/bin/qtcreator

Similar Threads

  1. Replies: 1
    Last Post: 6th May 2010, 10:09
  2. Custom widget using QT designer
    By GadiK in forum Qt Programming
    Replies: 10
    Last Post: 28th December 2009, 14:21
  3. Replies: 3
    Last Post: 17th November 2009, 14:43
  4. QT4: Custom widget for QT Designer
    By Michiel in forum Qt Tools
    Replies: 4
    Last Post: 4th May 2006, 13:35
  5. Replies: 4
    Last Post: 24th March 2006, 22:50

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.