Results 1 to 2 of 2

Thread: Custom SVG Widget problem

  1. #1
    Join Date
    Aug 2012
    Posts
    30
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Custom SVG Widget problem

    I am tring to make my own custom svg widget. I have used the exapmles of Qt.When I run this program eventhough I have promoted my DisplayWidget I don't get anything on the window where there should be widget with a SVG image. Can somebody help me please?

  2. #2
    Join Date
    Aug 2012
    Location
    Montreal
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 4 Times in 4 Posts

    Default Re: Custom SVG Widget problem

    Ok, so if I understand you correctly (and that was hard because you didn't provide much information), you have a main window to which you added a promoted QWidget in the .ui file, but when you lunch the application nothing is drawn where you would have expected a svg. Did you re-implement your void painteEvent(QPaintEvent*) correctly? Please provide code snippet using [code ][/code] so that we can provide further assistance.

Similar Threads

  1. Problem in using Custom Widget
    By cutie.monkey in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2011, 09:28
  2. Problem with custom container widget
    By MrGarbage in forum Qt Tools
    Replies: 4
    Last Post: 25th August 2007, 04:37
  3. Replies: 1
    Last Post: 25th October 2006, 16:41
  4. Custom widget problem
    By chombium in forum Qt Programming
    Replies: 1
    Last Post: 27th September 2006, 17:41
  5. Problem with custom widget
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 15th March 2006, 12:55

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.