Results 1 to 2 of 2

Thread: Hide private and protected members from autocomplete dropdown

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    36
    Thanks
    1

    Default Hide private and protected members from autocomplete dropdown

    Hello.

    Is it possible to hide the private and protected members when using autocomplete in Qt Creator?

    e.g. If I using a membervariable which is an object I don't care about the private and protected members of this class because I can only use the public ones.

  2. #2
    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: Hide private and protected members from autocomplete dropdown

    I think it would be quite complicated to implement since protected members can be acceessed by subclasses and private and protected members can be accessed by friend functions and classes. So the visibility highly depends on the context. You can work around this by prefixing all your non-public members (e.g. with "m_").
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt Creator using and autocomplete
    By pan in forum Qt Tools
    Replies: 1
    Last Post: 19th September 2011, 12:58
  2. how to do autocomplete with qt
    By wookoon in forum Newbie
    Replies: 3
    Last Post: 19th March 2011, 06:13
  3. Virtual protected and private var
    By maddog_fr in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2010, 16:14
  4. QComboBox autocomplete
    By aekilic in forum Qt Programming
    Replies: 14
    Last Post: 13th May 2009, 15:23
  5. Replies: 2
    Last Post: 1st January 2008, 13:31

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.