Results 1 to 2 of 2

Thread: C++ method equiv of stylesheet border: 0px;

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default C++ method equiv of stylesheet border: 0px;

    All,

    Looking for the method/function for a QWidget which does the same thing as this stylesheet

    QWidget
    {
    border: 0px;
    }

    CANNOT use stylesheets they are waaaaaaaaaaaaaaaaaaay too slow. There has to be a method I can call directly, but I cannot find it.

    Thanks,

  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: C++ method equiv of stylesheet border: 0px;

    A QWidget has no border by default. If you are wanting to turn off a border on a QFrame (or derived class) then you have QFrame::setFrameStyle() (with QFrame::NoFrame) and the various frame and line width properties of that class.

Similar Threads

  1. Replies: 10
    Last Post: 9th September 2013, 15:29
  2. Replies: 2
    Last Post: 21st March 2012, 14:30
  3. Replies: 1
    Last Post: 25th November 2010, 11:37
  4. Replies: 1
    Last Post: 28th July 2010, 17:37
  5. Replies: 3
    Last Post: 28th January 2007, 17:24

Tags for this Thread

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.