Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • deploy to OSX AppStore

    Solved
    14
    1 Votes
    14 Posts
    4k Views
    M
    @shaan7 more or less yes. Just for codesign command I have also added the Entitlement file, see posts I'm using XCode when uploading iOS apps to AppStore but for OSX I coudn't find a way because of sandboxing. Best, Marek
  • QDateTime:currentDateTime().toString(ISO:Date) does not display time zone

    Unsolved
    2
    0 Votes
    2 Posts
    6k Views
    Christian EhrlicherC
    http://doc.qt.io/qt-5/qdatetime.html#toString-1: "If the format is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, taking the form yyyy-MM-ddTHH:mm:ss[Z|[+|-]HH:mm], depending on the timeSpec() of the QDateTime. If the timeSpec() is Qt::UTC, Z will be appended to the string; if the timeSpec() is Qt::OffsetFromUTC, the offset in hours and minutes from UTC will be appended to the string." http://doc.qt.io/qt-5/qdatetime.html#currentDateTime: "Returns the current datetime, as reported by the system clock, in the local time zone." So I don't see why the timezone should be appended.
  • How to enable the close cross in top right corner of a dialogue under Windows?

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    T
    Hi all, many thanks for all the tips here! @mrjj: That sample I didn't know till now. Will use is for testing in future. Meanwhile I found the reason and a suitable fix for this issue: The ctor call for QDialog was this: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ) As documented this hides the What's this button in the title bar. But unfortunately under Windows it disables the Close button too. The fix is this: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint ) Now the What's this button is hidden and the Close button is enabled. Many thanks again! tkansgar
  • Is this a race condition...?

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    mzimmersM
    @kshegunov nice explanation...thanks. I've re-written the code so that the signal from the button opens the file to be transferred and performs an initial write. A slot catches the ACK and sends another chunk from the file. Much nicer now. As an aside, the purpose of the ACK in this application isn't just to acknowledge receipt of a valid message, but to inform the sender that the receiver is ready for another message. The receiver is an 8-bit AVR device that is saving the file to a slow EEPROM, so the ACK is needed to prevent the sender from overwhelming the receiver's meager resources.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Global image position inside a QTextEdit

    16
    0 Votes
    16 Posts
    10k Views
    S
    @tiho_d Hi Tiho_d could you post the whole code, please?
  • Ubuntu 18.04 QtCreator 4.8.1 missing examples

    Unsolved
    3
    0 Votes
    3 Posts
    817 Views
    aha_1980A
    @fizzychicken How did you install Qt Creator? Do you have a Qt version installed too? How?
  • Can I able to use "setMethod" as a slot also?

    Solved
    4
    0 Votes
    4 Posts
    481 Views
    T
    @VRonin @J-Hilk Thank you.
  • Including plain C code into Qt Project (mobile/desktop)

    Unsolved
    4
    0 Votes
    4 Posts
    475 Views
    K
    @bogong Basically add C code files as you would add any code file in creator. Generally it should work.
  • QSortFilterProxyModel what types can you actually sort by?

    Solved
    7
    0 Votes
    7 Posts
    790 Views
    JonBJ
    @SGaist I am saying that I do not have any custom types! That's the whole point of why I was asking which types QSortFilterProxyModel::sort() intends to handle "out-of-the-box"! If it makes any difference, I have now raised a question with the PyQt group, as I am finding from Python/PyQt it just refuses to do any sorting at all on many column types, I don't know what's going on.
  • pipe console output in a fortran func (inside a QThread) to Qt GUI ?

    Solved
    7
    0 Votes
    7 Posts
    901 Views
    JoeCFDJ
    Hooked it up with a c callback func and a worker class. Able to send fortran output to my GUI for display now. Many Thanks
  • How to get the background colour of a QLineEdit?

    Unsolved
    5
    0 Votes
    5 Posts
    910 Views
    Christian EhrlicherC
    @Vadi2 said in How to get the background colour of a QLineEdit?: how can I find that out programmatically? Then you should take a look at QWidget:palette
  • Defined int parameter[NUM] returned segment fault

    Unsolved
    12
    0 Votes
    12 Posts
    987 Views
    D
    @victor-wang This is possible if the value of the variable is set to an appropriate value before the array declaration is executed. But, I recommend using a vector.
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    4 Views
  • QCanbus on QT5.5

    Solved
    5
    0 Votes
    5 Posts
    817 Views
    V
    @aha_1980 Thanks for your reply. I'm using Yocto 2.0. And it only supports QT5.5 in Yocto version 2.0. This is the reason why I can only use QT5.5.
  • Who can fix problems with bug-reporter user accounts?

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    jsulmJ
    @Stokestack I'm not talking about EMail as user ID. I'm only talking about usage of EMail for password reset. But as I said this is useless discussion. You can contact QtCompany and ask them whether they can reset your password based on your user name and whether they can implement password reset based on user name.
  • Singleton Example

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    kshegunovK
    @SGaist said in Singleton Example: do you really need a singleton for what you want to achieve ? No?! I have not seen even one case where a singleton (as described in the infamous Gang of Four's book) is needed, ever!
  • QThread signals|calls to QChart are blocking the GUI

    Solved qthread qchartview signals event loop
    4
    0 Votes
    4 Posts
    2k Views
    J.HilkJ
    Hi @Md0ngo said in QThread signals|calls to QChart are blocking the GUI: After so much time lost, solved it!! It seemed to be the fault of the default QSeries implementation... Series.append() apparently emit a couple of signals and resize the inner vector which contain the QPoints. This combined to a O(kn²) loop totally messes up the main event loop. It was "as easy" as refractoring the code so the thread builds up a QVector of QPoints, then signals each vector to the chart and it calls to series.replace() instead of append(), that is actually faster and lighter. great that you were able to fix it yourself, and I learned something new and important about QCharts thank you ;-) I was about to give up after trying the moveToThread way without success, but I was lucky enough to get the solution after finding this. So, not a matter of Qthreads after all.. Now I'm wondering whether refracting the code to create a dedicated event-loop was worth it or not. If an actual worker class is now replacing your infinite while loop, that you posted in the op, than yes it is, definitely! Don't forget to set your topic to solved ;-)
  • .py to .exe

    Locked Unsolved
    4
    0 Votes
    4 Posts
    492 Views
    kshegunovK
    @dheerendra said in .py to .exe: Is it not a duplicate of issue you opened three days back ? It is. I'm locking this one.
  • Qt architecture and modules diagram?

    3
    0 Votes
    3 Posts
    3k Views
    JKSHJ
    @GTDev Your link is about architecting models, while the OP is asking about the organisation of Qt modules. This link is closer to what the OP is asking for: https://wiki.qt.io/Qt_5_Structure (although it is outdated)