Results 1 to 6 of 6

Thread: Widget Library/Repository

  1. #1

    Default Widget Library/Repository

    I have done a couple quick searchs, and havn't found anything yet...

    Does anyone run a widget library/repository site? For example.. if I write a widget that does xyz... someone else might find it useful. And I know there are widgets that I wouldn't mind using that other people have probably already written.

    Some examples... I'm writting a widget that will recieve Netflow v5 udp packets, store the data in them, and produce statistics about dataflows. I'm also writting a widget that will listen to gpsd, and will emit signals when gps metrics change (postion, heading, etc). I'm also working on some more traditional stuff, like bitmap based buttons... bitmap based gauges (essentually a dial, but looks alot better), etc.

    Just wondering if such a thing exists.

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

    Default Re: Widget Library/Repository

    Quote Originally Posted by strandtc
    I have done a couple quick searchs, and havn't found anything yet...
    Does anyone run a widget library/repository site?
    Trolltech had (has?) one. We're planning to make one too. I have already written somewhere on this forum -- if anyone has some code she/he wants to share, please send it to me and I'll place it when the repository is ready. My offer still stands.

    I'm writting a widget that will recieve Netflow v5 udp packets
    store the data in them, and produce statistics about dataflows.
    Hmm... the widget receives those packets? Did you think about splitting that functionality so that the network part is done outside the widget and just communicate with it?

    I'm also writting a widget that will listen to gpsd, and will emit signals when gps metrics change (postion, heading, etc).
    Same as above...

    I'm also working on some more traditional stuff, like bitmap based buttons...
    What's wrong with QPushButton?

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget Library/Repository

    Trolltech had (has?) one.
    ftp://ftp.trolltech.com/contrib/

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

    Default Re: Widget Library/Repository


  5. #5

    Default Re: Widget Library/Repository

    The links posted are useful.. but not quite what I was thinking.

    I was thinking more like a database driven website that users could upload some code (objects, examples, etc) then catagorize, and add additional keywords.

    So when developer x is looking for widgets what have to do with y, they do a simple keyword search. You could also include additional searchable items, like what the parent class is or signals and slots provided.

    In regards to the widgets I mentioned... I'll briefly describe what I'm talking about.
    For example... object: gpsReciever Object is created, recieves telemetry data from gps unit in string format, stores important metrics, and signals on state changes. This is a self contained object that can be put into any number of programs. All you have to do is to add a few connect statments, so that when speed, heading, position changes, it updates your form/dialog/etc.

    Same with the network data processing widget... why have multiple objects, where you have to write more code at a higher level to get 1 section of functionality to work? The udp packet reading is done with a QSocketDevice, and QSocketNotifier.

    QPushButton doesn't do what I'm looking for. For example.. I have pixButton class I created, that loads 3 images. It can be either a toggle or pushbutton. The first 2 images are an idle and toggled image. So far.. nothing special. The pixButton has a 3rd state. You can set the button to an alert state, which makes the button flash between the 3rd image, and the normal state (idle or toggle) at a configurable flash rate. The alert and toggle signals are not the same.

    Now I gotta admit.. I'm a hack when it comes to programming. The programming I'm doing is a means to an end on a project I'm doing.

    Just a suggestion if someone find it interesting (code repository).

    -Chris

    Quote Originally Posted by wysota
    Trolltech had (has?) one. We're planning to make one too. I have already written somewhere on this forum -- if anyone has some code she/he wants to share, please send it to me and I'll place it when the repository is ready. My offer still stands.


    Hmm... the widget receives those packets? Did you think about splitting that functionality so that the network part is done outside the widget and just communicate with it?


    Same as above...

    What's wrong with QPushButton?

  6. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Widget Library/Repository

    In regards to the widgets I mentioned...
    This is a self contained object
    I think what wysota was trying to hint, is that objects like a gpsRecieve, is better as a non gui component, and widgets are gui components.
    wysota - correct me if I was wrong about my asumption.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.