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
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    50 Views
  • Design question for application using two QT timers

    Solved
    3
    0 Votes
    3 Posts
    476 Views
    S
    Hello Eeli K, Thank you very much for your quick reply. I think your answer has solved my query. thanks :)
  • Seperate image into 4 buttons

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    A
    I found the below code that work great. It divide image into 9 parts. By using it you can divide image into 4 parts as well. public Bitmap[] splitBitmap(Bitmap picture) { Bitmap scaledBitmap = Bitmap.createScaledBitmap(picture, 240, 240, true); Bitmap[] imgs = new Bitmap[9]; imgs[0] = Bitmap.createBitmap(scaledBitmap, 0, 0, 80 , 80); imgs[1] = Bitmap.createBitmap(scaledBitmap, 80, 0, 80, 80); imgs[2] = Bitmap.createBitmap(scaledBitmap,160, 0, 80,80); imgs[3] = Bitmap.createBitmap(scaledBitmap, 0, 80, 80, 80); imgs[4] = Bitmap.createBitmap(scaledBitmap, 80, 80, 80,80); imgs[5] = Bitmap.createBitmap(scaledBitmap, 160, 80,80,80); imgs[6] = Bitmap.createBitmap(scaledBitmap, 0, 160, 80,80); imgs[7] = Bitmap.createBitmap(scaledBitmap, 80, 160,80,80); imgs[8] = Bitmap.createBitmap(scaledBitmap, 160,160,80,80); return imgs; } The function takes the original bitmap as a parameter, then using the Bitmap.createScaledBitmap(picture, 240, 240, true); i created a scaled image of size 240 x 240 to split the image into equal pieces, i have created a 3 x 3 by grid, in which each image’s size is of 80 x 80. This can be changed as per your needs, but the width should be kept to 240, because all the normal android phone screens are 240 dip wide. All the bitmaps are stored in a bitmap array, and finally the function returns the array back to the calling function.
  • Licensing for Qt Embedded - Static build

    Unsolved
    19
    0 Votes
    19 Posts
    2k Views
    sierdzioS
    @kshegunov said in Licensing for Qt Embedded - Static build: @JonB said in Licensing for Qt Embedded - Static build: PS. Some related resources if you're feeling curious. Quoting from there: Instructions that refer directly to specific memory addresses sometimes execute faster, and replacing them with equivalent relative-addressing instructions may result in slightly slower execution, although modern processors make the difference practically negligible. Here we are talking about a very weak CPU with very slow memory (104 MHz RAM according to the specification). It may well prefer static builds. I'd still throw in LTO is the compiler for that CPU supports it (see link). You are, of course, absolutely right that a statistical analysis of the results is necessary for proper judgement, though.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    21 Views
  • Using mouse as a relative position device

    Unsolved
    1
    0 Votes
    1 Posts
    275 Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    sierdzioS
    That warning is normal, ignore it. If your app misbehaves, search for the cause elsewhere.
  • ManualFocus on iPad (6th gen)

    Solved
    4
    0 Votes
    4 Posts
    552 Views
    ekkescornerE
    @errollgarner please add the link to the bug issue here and mark as solved.
  • linphone @ VOIP OUTGOING CALL

    Solved
    2
    0 Votes
    2 Posts
    577 Views
    jsulmJ
    @anil_arise I'm not sure how your question is related to Qt? Why don't you ask Linphone project instead?
  • Save qlabel picture, modify and reload to qlabel

    Solved
    5
    0 Votes
    5 Posts
    704 Views
    KutyusK
    Ok, I solve the problem, change the QPicture to QPixmap, and it is copyable with the copy() method :) Thanks
  • Can not play wav file on ios

    Unsolved
    3
    0 Votes
    3 Posts
    451 Views
    P
    The messages within the console output, could not help me yet. Thx!
  • 0 Votes
    6 Posts
    1k Views
    SGaistS
    See the dropping part of the Drag And Drop chapter of Qt's documentation. You should simply refuse the action in dragEnterEvent.
  • QtPurchasing and QML

    Unsolved
    3
    0 Votes
    3 Posts
    576 Views
    U
    @jsulm said in QtPurchasing and QML: Did you install Qt Purchasing as well? @UsrT said in QtPurchasing and QML: Qt Purchasing is installed. Sure
  • loss of packet in QTcpSocket communication

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    JonBJ
    @Phadnis I do not see any relevance to QIODevice::isSequential() in your case. I do not see how adjusting buffer sizes at server/client side has any relevance to supporting robust communication between client/server. Regardless of any buffer sizes, TCP/IP/sockets communicate with a streaming protocol, wherein any sized packet/buffer can be received up to the size sent by the other end, but it can be any amount less than that. Which means that reader must always loop to be sure it has received all desired sender's data. Which you do not have. So up to you if you seem to be happy with your code....
  • Bluetooth Device Discovery

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    A
    Well my solution was not acceptable. I can understand why, as the user would have to manually enter the address and uuid, I did not care for it either. I ran the desktop example, and it found the device. I made two changes and my copy of the original example is now finding the device. I do not think the first one made a difference, I started the agent without arguments. The one that made a difference was a no brainer once I reread the add device function void Device::addDevice(const QBluetoothDeviceInfo &info) { //if(info.coreConfigurations() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) //{ DeviceInfo *d = new DeviceInfo(info); devices.append(d); //} } Anyway, I thought I should update this with the real solution to fixing the example I was using.
  • Device lock

    Solved
    3
    0 Votes
    3 Posts
    598 Views
    Bhushan_SureB
    @raven-worx Thank you , I will go with the native one.
  • No c++11 support for Android

    Unsolved android c++11 library
    14
    0 Votes
    14 Posts
    7k Views
    E
    No need for another thread, I got it working. Here are the android related package versions which finally made it to work in case someone else has troubles: [image: 91e09f5d-3a2a-409d-ae8b-a84076d7a362.png] The latest JDK and NDK didn't work. I hope they fix the name strings for the next beta. It's annoying and confusing to have "GCC" everywhere even though it really uses clang.
  • Apple not process the uploaded IPA because of Non-public API usage

    Unsolved
    3
    0 Votes
    3 Posts
    871 Views
    M
    this happened again because of importing LIBS += -framework JavaScriptCore and resolved after i removed it
  • pin setup Vs Home

    Solved
    5
    0 Votes
    5 Posts
    674 Views
    Bhushan_SureB
    @dheerendra okay sir 😀😀, Thank you.