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. Weird QComboBox behaviour under Qt 5.5.1 linuxfb platform (Yocto build for imx6UL)

Weird QComboBox behaviour under Qt 5.5.1 linuxfb platform (Yocto build for imx6UL)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    sanityConf
    wrote on 12 Aug 2016, 15:06 last edited by
    #1

    I am getting weird behaviour of QComboBox when using Qt 5.5.1 linuxfb platform on an embedded linux Freescale imx6ul board. I am using a Yocto build for the embedded distribution.
    I need to rotate my application by 90 degrees on the screen, so I use QGraphicsScene and QGraphicsView.
    This is a solution I have found online.
    Relevant code:

    QGraphicsScene *scene = new QGraphicsScene();
    QGraphicsView *view = new QGraphicsView(parent);
    view->setGeometry(0,0,800,480); // actual Display size
    view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    
    view->setAlignment(Qt::AlignHCenter);
    scene->setBackgroundBrush(Qt::blue);
    scene->setItemIndexMethod(QGraphicsScene::NoIndex);
    
    QGraphicsProxyWidget *proxy = scene->addWidget(this);
    view->setScene(scene);
    view->show();
    view->rotate(90);
    

    But then when I press on the QComboBox, the list of items gets displayed in the wrong position.
    When I compile the exactly same code for Qt 5.6 on Ubuntu 14.04 desktop, I do not have this weird behaviour.

    I attach the relevant part of a screenshot to illustrate the problem.

    Any useful comments and solutions would be greatly appreciated.
    Also, if you know a better alternative way of how to rotate an entire Qt5 Qt Widget application on linuxfb platform, that would also be of great use.

    Link to screenshot:
    http://h.dropcanvas.com/1atuf/screen2_edited_2.png

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 12 Aug 2016, 21:42 last edited by
      #2

      Hi, welcome to the Qt forum! Please file a bug report: https://bugreports.qt.io

      1 Reply Last reply
      0

      1/2

      12 Aug 2016, 15:06

      • Login

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