Results 1 to 20 of 34

Thread: QGLWidget problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QGLWidget problem

    Quote Originally Posted by jacek View Post
    You shouldn't pass "this" to layouts' constructors, because they will call setLayout() on the parent.


    Like it or not, but it would take you only a couple of minutes to set up this widget in Qt Designer.


    Because you should use QPalette::WindowText instead of QPalette::Text and you have to set the changed palette back on the label to see the effect.
    Jacek, thanks on tip on QLabel, it works now. But whenever I create Layouts with "this" parameter or without, result of placing QWIdgetTable is still the same.
    Qt 5.3 Opensource & Creator 3.1.2

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

    Default Re: QGLWidget problem

    Quote Originally Posted by MarkoSan View Post
    whenever I create Layouts with "this" parameter or without, result of placing QWIdgetTable is still the same.
    Is this what you are trying to achieve?
    Attached Images Attached Images

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QGLWidget problem

    Yessssssss! But whatever I do, I get same result: QTableWidget is in upper left corner and therefore this is NOT ok. I want result excatly as on your pic.
    Qt 5.3 Opensource & Creator 3.1.2

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

    Default Re: QGLWidget problem

    That's weird, because I've just uncommented the m_pMerchandizeTable lines (including the one with addWidget()). Run "make clean" and make sure you don't pass any parents to layout constructors.

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

    MarkoSan (8th December 2007)

  6. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QGLWidget problem

    Quote Originally Posted by jacek View Post
    That's weird, because I've just uncommented the m_pMerchandizeTable lines (including the one with addWidget()). Run "make clean" and make sure you don't pass any parents to layout constructors.
    I deleted manually all ..\debug\ files and now it works. I do not get it what was wrong. Jacek, thanks!!!
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Serious problem with QGLWidget
    By al101 in forum Qt Programming
    Replies: 12
    Last Post: 27th April 2007, 13:52
  2. why linking problem with QGLWidget???
    By Shuchi Agrawal in forum Newbie
    Replies: 17
    Last Post: 16th March 2007, 10:45
  3. Problem combining QWorkspace & QGLWidget
    By Nb2Qt in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2006, 21:45
  4. QGLWidget renderText problem
    By mbjerkne in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2006, 21:35
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.