Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.3k Posts
  • Android - Send a simple notification

    Unsolved
    4
    0 Votes
    4 Posts
    944 Views
    raven-worxR
    @Xasin said in Android - Send a simple notification: How come Qt does not offer a native way of sending system notifications though, independent of the platform the application is being run on? Because its hard to get a common base for notifications (which actually helps in most use cases) Not every notification looks the same, nor is the origin which triggers the notification the same. For example on android normally an app doesn't need to trigger a notification, since it's only guaranteed that your app is running when the user has currently opened it. If the user switches away from your app, the android system might close your app for the sake of resources. So then there is no code to run to trigger the notification. You would need to create a background service to make sure your notification will be shown.
  • How to build emqtt/qmqtt for Android?

    Solved
    3
    0 Votes
    3 Posts
    606 Views
    N
    Hi, Thank you, I used that instead and it worked. :)
  • how to extract the date from string?

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    B
    @JonB thanq for for ur solution.
  • This topic is deleted!

    Locked Unsolved
    2
    0 Votes
    2 Posts
    49 Views
  • Layout of application is broken on Android 8.0

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    M
    I found bug: renderType: Text.NativeRendering Without this line, it works...
  • Footer and right side icons not visible on screen

    Unsolved
    1
    0 Votes
    1 Posts
    177 Views
    No one has replied
  • Compile qt ios project in shell, signature error!

    Unsolved
    1
    0 Votes
    1 Posts
    227 Views
    No one has replied
  • Is there any method for drawing grid on QWidget ?

    Unsolved
    7
    0 Votes
    7 Posts
    5k Views
    J.HilkJ
    @Munkhtamir you have to create it after the other Widget, for it to be on top by default, otherwise you can call raise() on your grid-widget to make it the top most item. But I force a problem for after this, and thatone is because of transparency/opacity inside paintEvent you should call the base implementation QWidget::paintEvent(event); QPainter painter(this); .... That way your widget will react to style sheets, and you can set a simple stylesheet like setStyleSheet(background-color:transparent;); Edit: example: //Custom class .h #include <QWidget> class GridWidget : public QWidget { Q_OBJECT public: explicit GridWidget(QWidget *parent = nullptr); void setGridDistance(int distance); protected: void paintEvent(QPaintEvent *event); int m_GridDistance = 20; }; //Customclass .cpp #include "gridwidget.h" #include <QPainter> GridWidget::GridWidget(QWidget *parent) : QWidget(parent) { setStyleSheet("background-color:transparent;"); } void GridWidget::setGridDistance(int distance) { m_GridDistance = distance; update(); } void GridWidget::paintEvent(QPaintEvent *event) { QWidget::paintEvent(event); QPainter p(this); p.setPen(QPen(Qt::white,3)); for(int i(0); i < width(); i += m_GridDistance){ p.drawLine(i,0,i,height()); } for(int i(0); i < height(); i += m_GridDistance){ p.drawLine(0,i,width(),i); } } //Example main.cpp black widget with GridWidget ontop; int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget *w = new QWidget(); w->setStyleSheet("background-color:black"); w->resize(200,200); w->show(); QHBoxLayout *layout = new QHBoxLayout(w); layout->setMargin(0); layout->addWidget(new GridWidget()); return a.exec(); }
  • Configure Qt Creator to support AVR

    Solved
    7
    0 Votes
    7 Posts
    6k Views
    A
    [image: ce80e241-2691-4a61-9c84-c1189d8904c2.jpg] and now is working... just press run and it will upload hex file to the chip anyway if anyone know how to generate the command line arguments from the .pro file variables...
  • ReactNative calling QNetworkAccessManager on JNI method

    Unsolved
    4
    0 Votes
    4 Posts
    709 Views
    J
    Hi @AndyS I initialized QNetworkAccessManager in my code. Sorry about that. Snippet updated. Hi @TobbY, The crash happens inside the method "get".
  • Running intialization code in MainWindow constructor and displaying message to user

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    S
    Hello @dheerendra, I implemented the solution as you suggested. Thank you :)
  • 0 Votes
    6 Posts
    1k Views
    JKSHJ
    @jongjupark said in Why does not QT Application output the changed resolution when changing the HDMI resolution in real time?: Our company officially purchased the QT license. Is there any place to get help with this? Generally, if you have a commercial license then you can ask for official tech support: https://account.qt.io/support However, support for Qt 4.8.7 ended in December 2015 (http://blog.qt.io/blog/2014/11/27/qt-4-8-x-support-to-be-extended-for-another-year/ ) so you might need to get extended support.
  • Does Qt 5 support CE 6.0?

    Solved
    4
    0 Votes
    4 Posts
    640 Views
    -vix--
    Thanks a lot for the detailed information.
  • Touchscreen Rotation = Video lock-up?

    Unsolved
    1
    0 Votes
    1 Posts
    223 Views
    No one has replied
  • QtMultimedia & rc.local

    Unsolved
    3
    0 Votes
    3 Posts
    663 Views
    B
    @Cleiton-Bueno Thanks, yes, I've gone through and checked that my environment variables are the same. I just discovered that the root of the issue is the environment variable....... export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="rotate 180" When this is set to rotate, the video will lock up immediately. When this is disabled, the video plays fine. I'm going to dig around and see if anybody else has had this issue and see how they resolved it. Regards, -Bob
  • Efficient autoscale chart

    Unsolved
    3
    0 Votes
    3 Posts
    565 Views
    C
    @NachoFly thank you for the suggestion. I suppose I could look into this - I see that the source code can be kept private by dynamically linking the qwt lib... Do you have any good sources for qwt on Android - I would need QML integration also, but I suppose this shouldn't be such a problem. Still, I don't know if there are any performance improvements as opposed to my current solution? Regards, K
  • iPad status bar color settings not working in QT5.11.2 BUG?

    Solved
    5
    0 Votes
    5 Posts
    782 Views
    D
    It is indeed a bug: https://bugreports.qt.io/browse/QTBUG-57062 The given workaround solved it for me. You need to replace return UIStatusBarStyleLightContent; by return UIStatusBarStyleBlackOpaque; [image: 0b592e05-491e-4b06-a357-ddfc0e45a255.PNG]
  • UDP server in QML/JS only

    Unsolved
    6
    0 Votes
    6 Posts
    962 Views
    dheerendraD
    hmmm. Then you must customise. You have no other choice.
  • Updating a QtChart "manually"

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    Gojir4G
    @NachoFly It looks like a good approach. I didn't know that about append(), thanks for notice. The only thing I would try is replacing the data instead of having two series, using void QXYSeries::replace(QVector<QPointF> points). It could be interesting to see which solution is faster.
  • Reading File From Asset file which is in Build folder

    Solved
    4
    0 Votes
    4 Posts
    828 Views
    Bhushan_SureB
    @mvuori You are right, Thank you very much. @J-Hilk Thank you, For some new suggestions, i would like implement this. :)