Results 1 to 10 of 10

Thread: Using Widgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Using Widgets

    Hi,
    In my Linux system, I have installed CLAM Network Editor, which includes a Widget to use in QTDesigner.
    Altough the widget file is put in /usr/lib/qt4/plugins/designer/ directory, I cannot see widgets in QT Designer.
    My QT is installed in /opt/qt directory, I've also tried lib directory in that location but did not work either.

    Any comments or solutions?

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: Using Widgets

    only QtFile.ui can be view or opened in Designer
    "Behind every great fortune lies a crime" - Balzac

  3. #3

    Default Re: Using Widgets

    Hi,

    What is a library file (in my case libCLAMWidgets.so) file needed for? Isn't it a "compiled" component?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Using Widgets

    It is but not every library is a designer plugin. It might just be the component itself that you need to link against your application to use it.

    If you are sure it is a designer plugin, check if its dependencies are all met using ldd.
    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.


  5. #5

    Default Re: Using Widgets

    Hi,
    Yes I am sure it's a visual widget, and ldd shows no problems.

    Is there a way to add the widget to QTDesigner/Creator manually, rather than waiting it to load from specified directory?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Using Widgets

    Quote Originally Posted by padawan View Post
    Yes I am sure it's a visual widget, and ldd shows no problems.
    A widget and a Designer plugin is not the same. Designer needs some additional code to be able to provide access to a widget. For instance consider my widgets (the link is in my signature) - what you get after compilation is two files. One is a widget library (libwwwidgets4.so) which is (probably) an equivalent of libCLAMWidgets.so. The other file is wwwidgetsplugin.so which is a Designer plugin that provides access to widgets embedded in libwwwidgets4.so from within Designer. Seems you are missing an equivalent file for your widgets. You can of course implement a Designer plugin for them if you want.
    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.


  7. #7

    Default Re: Using Widgets

    Hi,
    In fact I have another file named libqt3supportwidgets.so at the same directory. I'm not sure this is the file you've mentioned.

    Anyway, as I've asked is there way to manually add this widget to QT Designer?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Using Widgets

    Quote Originally Posted by padawan View Post
    Hi,
    In fact I have another file named libqt3supportwidgets.so at the same directory. I'm not sure this is the file you've mentioned.
    No, it's not.

    Anyway, as I've asked is there way to manually add this widget to QT Designer?
    Using Custom Widgets with Qt Designer
    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.


  9. #9

    Default Re: Using Widgets

    ok, thank you.

  10. #10

    Default Re: Using Widgets

    ok the problem had a much simpler solution; the files were ok but needed to be put in /opt/qtsdk-2009.03/qt/plugins/designer$ rather than the global /usb/lib... place
    it's ok now in qt designer but i have to achieve same result in qt creator, what is the plugin path for qt creator?

Similar Threads

  1. Qt3 - Multiple transparent widgets
    By bythesea in forum Qt Programming
    Replies: 4
    Last Post: 11th September 2009, 11:24
  2. Mac OS X Top-Level Transparent Widgets
    By tinsuke in forum Qt Programming
    Replies: 0
    Last Post: 17th October 2008, 16:01
  3. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2008, 23:00
  4. Replies: 2
    Last Post: 16th May 2008, 14:39
  5. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 20:23

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