Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.7k Posts
  • Nokia N8 and the QtSDK

    11
    0 Votes
    11 Posts
    8k Views
    M
    hi, how i can specify the installation drive in run settings,its is configured default already.
  • (Solved)QMenuBar of Qt for Symbian

    4
    0 Votes
    4 Posts
    3k Views
    H
    At last,I put some QPushButton on a widget, and set the QPushButton flat,set the background-color of the button transparent,resize the button,and the buttons combined into a "menu". Thanks all the replies
  • (Solved)The background-color of the QLineEdit

    10
    0 Votes
    10 Posts
    31k Views
    H
    I solved the problem from another aspect....It seems it is not the best way. as I first set the background-image of the widget on the QMainWindow, and put the widget() on the QMainWindow, the background-color of QLineEdit was disable. So I use QPainter to paint the image I use as the background-image on the widget, and then put the widget on the QMainWindow. and put the lineEdit's background-color white: @ lineEdit->setStyleSheet("QLineEdit{background: white;}"); @ It worked.
  • QLineEdit input Problem

    3
    0 Votes
    3 Posts
    3k Views
    S
    Thanks
  • QtOpenGL on Symbian!!

    16
    0 Votes
    16 Posts
    9k Views
    C
    Hi, OpenGL source codes have already exsited in Nokia QT SDK 1.0 C:\NokiaQtSDK\Symbian\SDK\src\opengl I don't think there will be problem of using QtOpenGL for Symbian^3. But the earlier devices which don't have GPU ( or graphic acceleration unit) will have performance problem of running openGl app or QML apps.
  • How to specify Vendor name, size and version

    17
    0 Votes
    17 Posts
    10k Views
    V
    Gerolf, and % 28 % 29 for Parenthesises
  • QAbstractScrollArea: scroll bar style

    2
    0 Votes
    2 Posts
    3k Views
    D
    [quote author="vlad2048" date="1292745900"]Hi all Have anybody noticed that subclasses of QAbstractScrollArea (e.g. QTextEdit, QGraphicsView, etc) incorrectly styling their scrollbars? If you just place a QPlainTextEdit and set its scrollbar polices to ScrollBarAlwaysVisible, and then place a QScrollBar near it, they will be painted with different styles on a real device (the QPlainTextEdit would paint its scrollbars with standard Windows style, but the ordinal scrollbars would be painted with a most likely QMacStyle). Does anybody know how to solve this problem. [/quote] Why are you posting this on the mobile forum? It could have made sense if you used a "mobile" style, but you say you're using a Windows style... Anyway, a simple test "works for me". Can you produce a testcase of the problem? [quote] Also it seems that QAbstractScrollArea implemented assuming a fixed constant scrollbar height and width, and does not take into account the user defined size. When I set the width of vertical scrollbar to a lesser value, the scrollbar remains at the same X coordinate (an unoccupied space left between the right border of scrollbar and the right border of widget). And even move(dx, 0) can't solve this problem. [/quote] This is likely to be a bug.
  • 0 Votes
    9 Posts
    6k Views
    U
    Problem solved by using Qt 4.7.1 for Symbian. The following posts helped me in finding the reason and for setting up Qt 4.7.1: [QUOTE]http://bugreports.qt.nokia.com/browse/QTBUG-5312?focusedCommentId=135858#comment-135858[/QUOTE] [QUOTE]http://labs.qt.nokia.com/2010/12/12/start-with-qt-4-7-for-symbian-today/#more-2740[/QUOTE]
  • How to view Images

    10
    0 Votes
    10 Posts
    5k Views
    ?
    [quote author="Prajnaranjan Das" date="1292591323"]thanks for your reply....Can you please give me a link related to keyPress and mousePressEvent or any example for this....[/quote] you can check the scribble example that ships with Qt SDK also see "this":http://doc.qt.nokia.com/latest/statemachine-rogue-movementtransition-h.html
  • QLineEdit problem in Qt for Symbian

    12
    0 Votes
    12 Posts
    6k Views
    S
    Ok i'll try it. Thanks:)
  • How to create an Image viewer for Qt Simulator ???

    17
    0 Votes
    17 Posts
    9k Views
    J
    You can use QImage and a QWidget subclass create one. It should be very easy. Override the paintEvent in the QWidget subclass to draw the image. To automatically search for images, you should need to implement a recursive function for scanning the file system and finding image files. You should use QFile and related classes. Hope this helps.
  • Error: cannot find -lQtOpenGL

    5
    0 Votes
    5 Posts
    8k Views
    J
    Thank you guys. Today I manage to run my first test Qt mobile app in a Nokia E71 :) I removed QtOpenGL, and put the code directory in the same drive. I also had other error, when installing the sis file throught the Nokia PC Suite, because the phone date has set to 2008. Once I set the correct date, the file installed just fine.
  • How to Use SoftKeys

    6
    0 Votes
    6 Posts
    4k Views
    F
    Its quite simple. You just set softkeyRoles to your softkeys and hope for the best. :) Here are additional details: http://wiki.forum.nokia.com/index.php/TSQ001528_-_Handling_softkeys_in_Qt_for_Symbian (not sure how up to date that is, but you can at least grab the basics).
  • Problem in binding texture

    3
    0 Votes
    3 Posts
    2k Views
    W
    Thanks Fuzz. Will check if the same issues are there at our end. Regards, Wisty
  • [Solved] Qsettings dont save the values

    17
    0 Votes
    17 Posts
    12k Views
    T
    Ok solution is: ulozNastavenia is called on construct, when I call function nastavit nastavenia, because ulozNastavenia is slot called in formchange signal. This is problem, because valuse are saving before I set form values from QSettings. solution: @#include "mainwindow.h" #include "ui_mainwindow.h" #include <QSettings> #include "time.h" #include <QtDebug> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { QCoreApplication::setOrganizationName("MADNESS s.r.o"); QCoreApplication::setOrganizationDomain("madnes.eu"); QCoreApplication::setApplicationName("Ovulačný kalendár"); ui->setupUi(this); this->SettingsLoaded = false; //settings.setProperty(); // nacitame nastavenia bool ok = this->nacitatNastavenia(); // ak nastavenia neexistuju aplikacia je spustena prvý krát if(ok) { ui->but1->hide(); this->nastavitNastavenia(); } else { // nastavia sa predvolené hodnoty do nastavení this->nastavitNastaveniaNaPredvolene(); // prepne sa na option2 nastavenia this->changeToOption2(); } } MainWindow::~MainWindow() { delete ui; } void MainWindow::changeToOption1() { } void MainWindow::changeToOption2() { } void MainWindow::changeToOption3() { } void MainWindow::nastavitNastavenia() { QSettings settings("ovulacnykalendar"); settings.setValue("ovulacny/cyklus",this->cyklus); //int value = settings.value("cyklus").toInt(); //ui->luteal->setValue(value); settings.setValue("ovulacny/luteal",this->luteal); settings.setValue("ovulacny/ciel",this->ciel); settings.setValue("ovulacny/ZaciatokCykluDen",this->ZaciatokCykluDen); settings.setValue("ovulacny/ZaciatokCykluMesiac",this->ZaciatokCykluMesiac); settings.setValue("ovulacny/ZaciatokCykluRok",this->ZaciatokCykluRok); settings.sync(); // nastavime hodnoty vo formulari nastavenia ui->ZaciatokCykluDen->setValue(this->ZaciatokCykluDen); ui->ZaciatokCykluMesiac->setValue(this->ZaciatokCykluMesiac); ui->ZaciatokCykluRok->setValue(this->ZaciatokCykluRok); ui->cyklus->setValue(this->cyklus); ui->luteal->setValue(this->luteal); if(this->ciel == 0) { ui->ciel1->setChecked(true); ui->ciel2->setChecked(false); } else { ui->ciel1->setChecked(false); ui->ciel2->setChecked(true); } this->SettingsLoaded = true; } void MainWindow::nastavitNastaveniaNaPredvolene() { return; // nastavime this hodnoty this->cyklus = 28; this->luteal = 14; this->ciel = 1; time_t cas; tm *str; //vytvorenie pointru typu tm time(&cas); str = localtime(&cas); this->ZaciatokCykluDen = str->tm_mday; this->ZaciatokCykluMesiac = str->tm_mon; this->ZaciatokCykluRok = str->tm_year; // ulozime hodnoty this->nastavitNastavenia(); } bool MainWindow::nacitatNastavenia() { QSettings settings("ovulacnykalendar"); this->cyklus = settings.value("ovulacny/cyklus",24).toInt(); this->luteal = settings.value("ovulacny/luteal").toInt(); this->ciel = settings.value("ovulacny/ciel").toInt(); this->ZaciatokCykluDen = settings.value("ovulacny/ZaciatokCykluDen").toInt(); this->ZaciatokCykluMesiac = settings.value("ovulacny/ZaciatokCykluMesiac",11).toInt(); this->ZaciatokCykluRok = settings.value("ovulacny/ZaciatokCykluRok",2010).toInt(); bool returning = settings.contains("ovulacny/cyklus"); settings.sync(); return returning; } void MainWindow::ulozitNastavenia(int value) { if(!this->SettingsLoaded) return; QSettings settings("ovulacnykalendar"); this->cyklus = ui->cyklus->value(); this->luteal = ui->luteal->value(); if(ui->ciel1->isChecked()) { this->ciel = 0; settings.setValue("ovulacny/ciel",0); } if(ui->ciel2->isChecked()) { this->ciel = 1; settings.setValue("ovulacny/ciel",1); } this->ZaciatokCykluMesiac = ui->ZaciatokCykluMesiac->value(); this->ZaciatokCykluDen = ui->ZaciatokCykluDen->value(); this->ZaciatokCykluRok = ui->ZaciatokCykluRok->value(); settings.setValue("ovulacny/cyklus",ui->cyklus->value()); settings.setValue("ovulacny/luteal",ui->luteal->value()); settings.setValue("ovulacny/ZaciatokCykluDen",ui->ZaciatokCykluDen->value()); settings.setValue("ovulacny/ZaciatokCykluMesiac",ui->ZaciatokCykluMesiac->value()); ui->cyklus->setValue(settings.value("ovulacny/ZaciatokCykluMesiac").toInt()); settings.setValue("ovulacny/ZaciatokCykluRok",ui->ZaciatokCykluRok->value()); settings.sync(); } @
  • Selective UI based on device

    7
    0 Votes
    7 Posts
    4k Views
    A
    The class "QUiLoader ":http://doc.qt.nokia.com//4.7/quiloader.html might be what you are lokking for.
  • Application is Closed

    12
    0 Votes
    12 Posts
    6k Views
    G
    Well, a few notes... You don't need to delete all those classes near the end; since you've created the objects parented to the QMainWindow, it will handle the cleanup of those classes when the QMainWindow is destroyed. Take a look at the example for QSplashScreen in the Qt documentation. You need to call QApplication::processEvents() after splash.show() so that the splash screen is actually displayed, since the application's message loop has not been started yet. You may want to add some breakpoints or qDebug() calls in your LeoGraphicsView class to make sure it is actually getting shown - perhaps in showEvent(), and perhaps also in closeEvent(). If it is getting closed by something, do the same elsewhere in your code to see where/why that's happening. Post a response here if the initial stuff doesn't help any. You also may want to check the console output of Qt; it often displays helpful messages if there are issues at runtime.
  • Problem in Displaying tab Widgets in Qt Simulator

    3
    0 Votes
    3 Posts
    2k Views
    S
    You can create a QTabWidget and set hidden by use "setVisibile(false)":http://doc.qt.nokia.com/4.7/qwidget.html#visible-prop. When the user click a QPushButton you use "setTabText(index,"name")":http://doc.qt.nokia.com/4.7/qtabwidget.html#setTabText for change the name of the tab and setVisible(true). [quote author="Prajnaranjan Das" date="1292306510"]I'm having four push Buttons ,to which I have included a tab widget if the user clicks a push Button.... I want the same tab widget but with different names if the user clicks another push Button... Please Help me .... [/quote]
  • Problem in display while rotating my Qt Simulator

    7
    0 Votes
    7 Posts
    4k Views
    ?
    [quote author="Prajnaranjan Das" date="1292220681"]Its showing setCentralWidget was not diclared in this scope... How to fix it ....[/quote] Prajnaranjan, I think you missed this part ... [quote author="JacquesBaniaque" date="1292064039"]... I used QMainWindow inherited class and made it visible with showMaximized() ... [/quote]
  • Choose QRadioTuner Audio Output: Bluetooth over Wired (Symbian Qt)

    14
    0 Votes
    14 Posts
    9k Views
    A
    I use next item as antenna - "http://pikucha.ru/852752":http://pikucha.ru/852752