Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Mouser cursor move around when calling qopenglwidget::update.
Forum Updated to NodeBB v4.3 + New Features

Mouser cursor move around when calling qopenglwidget::update.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 336 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    doodle
    wrote on last edited by doodle
    #1

    platform: imx6q cortex-a9 arm based board
    rootfs: fsl-yocto-L4.1.15_2.0.0-ga; fsl-img-qt5
    qt version: 5.6.2

    The code is very simple, a mainwindow containing a custom widget inherits qopenglwidget, and call the qopenglwidget::update 30 times per second, the strange thing is the cursor will move around randomly, if I don't call the update then everything works right. Qopenglwidget::update will call the override paintgl and I have commented it so it will do nothing. But if I run the code on my pc there is no such issue. So I think the problem might come from the rootfs on the arm board writed by qt.
    I have came up with one solution, write a render function calling paintgl, but there will be some work with qopenglcontext and qopenglframebufferobject , how to write

    ====update====

    Or, is there any low level example about how to use qwidget and opengl instead of using qopenglwidget?

    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