Results 1 to 2 of 2

Thread: How to find the unfindable bug?

  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default How to find the unfindable bug?

    I write a program. Get everything to work... totally happy with the result. Now I need to write the exact same program but for it to load a different image. So I create a new class... copy all the code from the previous program, change the file path to the picture that I now want to display and guess what? Doesn't work... this is all OpenGL mind you... all I get is a window with a white square. If I copy paste the file location of the second image into the old working program, everything works as expected. How the heck???

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to find the unfindable bug?

    "How the heck" - yes indeed. How the heck can we give any ideas when you give us no information except that you have copy and pasted some code.

    Since that is all we have to go on, I will guess that you fail at copy & paste. A possible alternative is that you have some path handling that doesn't make sense from one place but does in the other.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. cannot find -lqt-mt
    By mahe2310 in forum Newbie
    Replies: 5
    Last Post: 4th January 2018, 22:43
  2. Replies: 1
    Last Post: 28th May 2012, 15:06
  3. Qt 4.6.3 where can i find
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 23rd November 2010, 11:28
  4. Help this guy find its way.
    By Dg!Mortal in forum Newbie
    Replies: 3
    Last Post: 12th April 2008, 18:31
  5. Can't find
    By Hz in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2006, 14:15

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.