Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • QCoreApplication or QApplication calls are hanging the executable

    Unsolved
    6
    0 Votes
    6 Posts
    624 Views
    F
    @fcarney As I said it works ok in almost every computer, also I double checked the version of the Qt dlls and it was ok.
  • The most efficient way to filter a huge amount of data. Mentor needed!

    Unsolved
    7
    0 Votes
    7 Posts
    293 Views
    JonBJ
    @Rickz So since from your example your filters are simple sequential and do not need to look at other values, if you wish you can change so you simply read one line at a time and pass it through all the filters. Reading all the lines into memory/an array at the start does not gain you anything. In which case RAM will reduce from (300MB * whatever for each line) to about 100 bytes for one line! Up to you.
  • QWebEngineView loadfinished is too quick

    Solved
    3
    0 Votes
    3 Posts
    929 Views
    C
    I couldn't manage to implement it with runjavascript because pdf.js is way more complex than I can manage at the moment, but your link made me realize that I was ignoring a big part of qwebengine. I think I can use runjavascript to inspect DOM and see if it has already loaded. Thank you!
  • How to make destop panel (e.g. like Plank, Docky,Screenlets)

    Unsolved
    2
    0 Votes
    2 Posts
    284 Views
    mrjjM
    Hi For global hotkeys, you have to use platform API Like http://amin-ahmadi.com/2015/11/14/how-to-use-system-wide-hotkeys-in-your-qt-application/ for windows. For linux, i would inspect something like http://www.nongnu.org/xbindkeys/xbindkeys.html to see how it does. Regarding the stay on the top and stay in background feature. This will depend heavily on the Windows manger if supported/allowed.
  • [Solved] Qt Creator Run button disabled

    9
    0 Votes
    9 Posts
    11k Views
    Qibiron WhoQ
    This Issue seems quite old, for anyone who just wanna bring their Qt Creator back to work, here is some tricks I learned from somewhere else, share with you. Qt Creator Version: 4.11.0 Based on Qt 5.14.0 [quick solution]: right click <sources> folder under project tree, add some random file. After that the "Run" button activated again, this is definitely a Qt Creator bug. The reason I come up with this Bug is: I added created new subproject for unit test, and I delete or remove it somehow, and the run button just not working anymore, even after I restart the Qt Creator, until I found the trick above somewhere in youtube. I hope it helps any single one who is struggling.
  • std::string to QString can't convert properly

    Solved
    19
    0 Votes
    19 Posts
    10k Views
    mrjjM
    @Ketan__Patel__0011 Hi Since its not unicode or UTF8 or real text at all you cannot just store it in the DB as it expects it to be valid text with valid encoding. So do as @Bonnie says and store them in a blop via QByteArray. Like this sample storing images. https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite Note, the type used for creating the table query.exec( "CREATE TABLE IF NOT EXISTS imgTable ( filename TEXT, imagedata BLOB )" ); Then it won't alter your data and it should work. Your output from the encryption is no longer valid text. Treat it as a binary thing and use QByteArray in case it might add a zero in there. std::string and QString is not ok for this sort of data in many cases.
  • Creating double Widgets

    Solved
    5
    0 Votes
    5 Posts
    592 Views
    F
    @mrjj I will definitly give it a try, thank you :)
  • Adjusting Indenting for QTreeView items

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    mrjjM
    @Taytoo Hi Did you try a Delegate to paint it the way you like ? https://stackoverflow.com/questions/55969916/how-to-remove-qtreeview-indentation
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    73 Views
    No one has replied
  • Printing with qt5

    Unsolved
    8
    0 Votes
    8 Posts
    960 Views
    C
    i have found the error. I used a white font color because the text is shown on a grey background. I have now changed the text color to black and now everything looks fine.
  • Scaling Layouts in Layouts (pls help)

    Solved
    4
    0 Votes
    4 Posts
    254 Views
    B
    @jpie You can use a layout stretch as long as it is a box layout or grid layout. And yes, QSplitter also has a similar function: void QSplitter::setStretchFactor(int index, int stretch) Since it actually does is setting the stretch of the widget's size policy, if you want to do it in the ui file, you can just set the HorizontalStretch / VerticalStretch of the sizePolicy in a splitter's child widget.
  • How to Access the Recently created directory to create and save files inside it.

    Solved
    12
    0 Votes
    12 Posts
    791 Views
    R
    Hi @JonB, Thank you for the response. Regards, Rajesh P
  • How to write a Custom Car paint Material supporting Normal mapping in Qt 3D Studio

    Unsolved
    1
    0 Votes
    1 Posts
    89 Views
    No one has replied
  • pumping audio on a background thread, not a timer?

    Solved
    5
    0 Votes
    5 Posts
    566 Views
    D
    a user suggested i make a minimum compileable example. and in doing so, i ironed out my problem. i'm now able to do both push and pull on a background thread if you'd like to see how to properly do audio on a background thread, see the example in this post. note the bug i'm trying to fix in THAT post means the buttons in the UI don't update, but the audio example does in fact work.
  • PyQt5 QTreeWidget Multiple Column Count

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    EmrecpE
    Solved :) Added \t\t Now everything is fine Code: icerik_islemci = QTreeWidgetItem(["İşlemci:\t\t%s"% str(veri.CPU)])
  • Widget class customisation

    Solved
    4
    0 Votes
    4 Posts
    256 Views
    SGaistS
    Then you should configure each of these widgets explicitly. That will make both your code cleaner and clearer.
  • How to decide whether a method should be a slot

    Solved
    10
    1 Votes
    10 Posts
    1k Views
    SGaistS
    In that case, only make slots of what you are actually using as slot. You can change that later on.
  • QSsl different behaviour in Linux and MacOS

    Unsolved
    2
    0 Votes
    2 Posts
    139 Views
    SGaistS
    Hi, Linux and macOS have two different backends hence the possible differences. What version of Qt are you using ? On what version of macOS ? Can you provide a minimal compilable example that shows that behaviour ?
  • Unit Testing with GTest

    Unsolved
    1
    0 Votes
    1 Posts
    639 Views
    No one has replied
  • QTableWidget editing signal

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    VRoninV
    @JonB said in QTableWidget editing signal: Would you mind explaining briefly when you either must or choose to do so, please? Signals can be declared const but it has no material effect. When moc creates the implementation of the signal, sender gets const_casted to lose the const anyway.