Results 1 to 4 of 4

Thread: I dont see any linewidth on a splitter ...

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default I dont see any linewidth on a splitter ...

    I'd want to see a wider selector on the splitter.
    It can be possible?
    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: I dont see any linewidth on a splitter ...

    Have you tried setHandleWidth() ?

    http://doc.trolltech.com/latest/qspl...ndleWidth-prop

    Joh

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I dont see any linewidth on a splitter ...

    I keep on without view something, and I have played with all properties but without success.
    Any idea ?

  4. #4
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: I dont see any linewidth on a splitter ...

    Well that's the default style on your operating system. But you can override that for the splitter with setStyle().

    Qt Code:
    1. #include <QtCore>
    2. #include <QtGui>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication a(argc, argv);
    7.  
    8. QSplitter* s = new QSplitter();
    9. s->setStyle(new QPlastiqueStyle());
    10. s->addWidget(new QTextEdit());
    11. s->addWidget(new QTextEdit());
    12. mw.setCentralWidget(s);
    13. mw.show();
    14.  
    15. return a.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 

    Joh

Similar Threads

  1. setResizeMode for Splitter
    By ropel in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2008, 08:56
  2. Automatic Splitter
    By Katuakina in forum Qt Tools
    Replies: 1
    Last Post: 5th October 2007, 09:29
  3. Splitter?
    By Katuakina in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2007, 09:21
  4. splitter
    By gambr in forum Qt Tools
    Replies: 2
    Last Post: 21st November 2006, 17:06
  5. Image on Splitter
    By moizahamedv in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2006, 14:40

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.