Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGl crash when using custom StyleSheet

QOpenGl crash when using custom StyleSheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 921 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oncaphillis
    wrote on last edited by
    #1

    Hi,
    When I use
    QApplication::setStyleSheet in my application together with an QOpenGLWidget I get a crash with the following stack trace.

    1 ?? 0x400a1a7f
    2 ?? 0x7fffb9e2d054
    3 ?? 0x7fffb9a18778
    4 QOpenGLFunctions::glDrawArrays qopenglfunctions.h 716 0x7fffef12c181
    5 QOpenGLTextureBlitterPrivate::blit qopengltextureblitter.cpp 200 0x7fffef12c181
    6 QOpenGLTextureBlitter::blit qopengltextureblitter.cpp 361 0x7fffef12caf8
    7 blit qplatformbackingstore.cpp 254 0x7fffef0984bf
    8 QPlatformBackingStore::composeAndFlush qplatformbackingstore.cpp 297 0x7fffef098c0e
    9 QXcbBackingStore::composeAndFlush qxcbbackingstore.cpp 421 0x7fffe1e6ed97
    10 QWidgetBackingStore::qt_flush qwidgetbackingstore.cpp 114 0x7fffef3a895b
    11 QWidgetBackingStore::sync qwidgetbackingstore.cpp 945 0x7fffef3ac0f7
    12 QWidgetWindow::event qwidgetwindow.cpp 255 0x7fffef3fda43
    13 QApplicationPrivate::notify_helper qapplication.cpp 3716 0x7fffef39e05c
    14 QApplication::notify qapplication.cpp 3499 0x7fffef3a3516
    ... <More>

    The minimal StyleSheet that blows up seems to be

    QWidget { color: white; }

    That's under Qt 5.2.1 and Ununtu 16.0.4

    Is that a known issue ?

    Thx

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by mostefa
      #2

      Hi @oncaphillis

      How are you calling QApplication::setStyleSheet? and in which function you are calling it?

      Is it possible to share a minimal sample code that leads to this crash?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        In addition to what @mostefa wrote, are you locked to 5.2.1 ? Current version of Qt 5.8.0 with 5.6.2 as LTS, so it would likely be better to upgrade before trying to find a bug that might have been fixed in a more recent version.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • O Offline
          O Offline
          oncaphillis
          wrote on last edited by
          #4

          I have easy access to Qt5.5.1 and it seems to be gone -- Thx

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved