Results 1 to 2 of 2

Thread: LED Matrix

  1. #1
    Join Date
    Feb 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question LED Matrix

    Hi im new to QT creator 2.0 and well i have built a virtual led matrix and well im having trouble getting any thing to work how do i change the frame's background color when i click one of the buttons and further more how do i get a slot to work properly? LED_MATRIXzip.zip

    thanks John

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: LED Matrix

    Open Assistant (or help in Qt Creator) and read Signals and Slots. Also, run the Qt Demo Launcher (qtdemo) and have a look at some of the examples and their code. You will also need to know some C++ before you will get too much further.

    Start by getting the code to compile
    Add something to declare and define a slot that can change the colour. There are plenty of examples in the documentation for creating slots.
    Connect something to that slot. Again, plenty of examples in the docs.

    As for actually changing the frame colour you could use Qt Style Sheets but there is definitely more than one way to do this.

Similar Threads

  1. glRotetef & 4x4 Matrix
    By wererabit in forum Qt Programming
    Replies: 2
    Last Post: 8th February 2011, 09:39
  2. QGraphicsScene and matrix
    By Artturi.Sakari in forum Qt Programming
    Replies: 3
    Last Post: 18th June 2010, 11:49
  3. need help with creating an m x n matrix
    By Petr_Kropotkin in forum General Programming
    Replies: 3
    Last Post: 3rd April 2010, 15:18
  4. matrix for QBrush
    By navi1084 in forum Qt Programming
    Replies: 5
    Last Post: 5th February 2010, 11:27
  5. Dot Matrix Printer
    By estanisgeyer in forum Qt Programming
    Replies: 3
    Last Post: 18th December 2009, 19: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.