Results 1 to 8 of 8

Thread: Model/View weird behaviour - Windows/Mingw

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Model/View weird behaviour - Windows/Mingw

    Quote Originally Posted by incapacitant
    yes warn_on is there
    Then maybe you initialize it to 0 in constructor or you haven't noticed the warning?

    As far as I know even Basic would complain about an undefined variable
    AFAIK it would just define that variable itself (at least VB)

  2. The following user says thank you to jacek for this useful post:

    incapacitant (23rd March 2006)

  3. #2
    Join Date
    Jan 2006
    Location
    Grenoble, France
    Posts
    165
    Thanks
    106
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Model/View weird behaviour - Windows/Mingw

    yes it is defined in the class as private member. Is being a member means be defined and allocated ? If the compiler is able to spot unused variable, why is it not possible to spot uninitialized variables ?

    AFAIK means ??

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

    Default Re: Model/View weird behaviour - Windows/Mingw

    Quote Originally Posted by incapacitant
    yes it is defined in the class as private member. Is being a member means be defined and allocated ? If the compiler is able to spot unused variable, why is it not possible to spot uninitialized variables ?
    Maybe you need to enable some option of the compiler?

    AFAIK means ??
    "As far as I know"

  5. The following user says thank you to wysota for this useful post:

    incapacitant (24th March 2006)

Similar Threads

  1. Weird behaviour of mouse events and QMenu pop-ups
    By Ishark in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2007, 07:46

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.